6

How are "Lazy Geometries" different from other types of geometries?

I'm an experienced Python/Django developer but am very new to the world of GIS. I've been unable to find the answer on Google.

I encountered the term when reading up on GeoDjango (and it's use of the GEOS library).

1 Answer 1

11

Lazy geometries are not another kind of geometry. This only describes how Geodjango manages to load, instantiate and use geometry objects, and is pretty much like lazy loading in an O/R mapping framework.

If you access a whole bunch of geometry data (lets say from a table), geodjango loads them in text based "Well known text" (WKT) format. If you then pick one of them and want to calculate the area of a polygon for example, Geodjango instantiates a GEOS object for you and calculates the area on it.

So "lazy" refers to GeoDjangos behaviour to do costly things only when they are really needed.

Its also described in the GeoDjango Tutorial

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.