Opened 12 years ago
Last modified 12 years ago
#19339 closed Bug
Spatial Query in geodjango — at Initial Version
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | GIS | Version: | 1.4 |
Severity: | Normal | Keywords: | geodjango |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I am newbie in using geodjango, I need to check whether a point is present in a multipolygon layer. For trial I used
x = '640744.97964'
y = '2498614.18957'
p = Point(float(x), float(y), srid=32645)
pt=layer.objects.get(the_geomcontains=p)
but I got the error NoneType object has no attribute 'group'
Note:
See TracTickets
for help on using tickets.