|Version 8 (modified by 12 years ago) ( diff ),|
For portability, the default storage for Features is the normal database via Web2Py's DAL.
In order to support Lines & Polygons we need to store as WKT
- DAL can be bypassed to allow other ORMs to be used:
Since we store features in Lat/Lon then we need to use the geography_columns, which stay updated automatically :)
geog GEOGRAPHY(Point) geog GEOGRAPHY(Polygon) ST_Distance(geography, geography) returns double ST_DWithin(geography, geography, float8) returns boolean ST_Area(geography) returns double ST_Length(geography) returns double ST_Covers(geography, geography) returns boolean ST_CoveredBy(geography, geography) returns boolean ST_Intersects(geography, geography) returns boolean
Q: integrate FeatureServer?
Q: use GeoAlchemy?
Q: copy GeoDjango?