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 sug开发者_运维知识库gest a reference model for making an understanding of geodjango.
The tutorial is a good starting point.
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.
精彩评论