New answers tagged geodjango
The answer is yes, you can name the GeoManager attribute in your class anyway you want. However, I would not recommend it. Here are a few thoughts on what it means if you don't call it "objects". From the Django Documentation: In order to conduct geographic queries, each geographic model requires a GeoManager model manager. This manager allows for the ...
It doesn't appear to matter what you name the variable that you assign models.GeoManager to. I changed it to "objects_geo" and it didn't appear to affect my GeoDjango queries. I was concerned about this because I needed to create another custom manager for the model in question and I was worried that the two might conflict with each other. I was also ...
The proj4text strings have been saved with a single trailing whitespace, which is why your query returns nothing. Use the trim operator: SELECT * FROM spatial_ref_sys WHERE trim(proj4text) = '+proj=utm +zone=51 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs';
Top 50 recent answers are included