python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Annotate GIS Intersection in Nested Subquery
I am trying to execute a complex Django query involving a nested subquery. Starting with the Stick model, I want to annotate the ownership_pct from the StickOwnership model (which is straightforward g...
Jeff Stewart
Votes: 0
Answers: 0
Geodjango Querying geometry returns pointer instead of geometry
I am trying to get a single MultiPolygon geometry in a Queryset from this model:
class local_administrative_unit(models.Model):
lau_id = models.IntegerField(primary_key=True)
lau_name = models...
MightyRavendark
Votes: 0
Answers: 1
Saving centroid of a (multi)polygon as point geometry in a model
I have two tables, one with multipolygon geometries, the other with a column for point geometries. I want the centroid of the selected polygon to be saved as the point geometry for the other table.
cl...
MightyRavendark
Votes: 0
Answers: 1