Reputation: 183
I am new to geodjango. I am using a geodjango model for my application. in one of my geodjango model class I am using a location field of type PointField() . I want to store the location for each entry into that model class Table. Could anyone please help me how to insert values into that field, Or could anyone please suggest a reference model for making an understanding of geodjango.
Upvotes: 0
Views: 307
Reputation: 19145
You need to use WKT format. Some examples:
POINT(14 15)
POLYGON((1.0 1.0, 0.0 0.0, 1.0 0.5, 1.0 1.0))
You can also use OSMGeoAdmin
or GeoModelAdmin
as a replacement for ModelAdmin
to get a map that you can draw your data on.
Upvotes: 1