Compare commits
No commits in common. "e2b0120f93fd9d8dffe48c799ddeae5d68020d4a" and "5551a513e9fcad8a75986e8c16a0d28cc2d89260" have entirely different histories.
e2b0120f93
...
5551a513e9
@ -318,7 +318,7 @@ class Geometry(BaseResource):
|
||||
geom = self.geom
|
||||
if geom.srid != srid:
|
||||
geom.transform(ct=srid)
|
||||
polygons = [p for p in geom]
|
||||
|
||||
geojson = {
|
||||
"type": "FeatureCollection",
|
||||
"crs": {
|
||||
@ -330,9 +330,8 @@ class Geometry(BaseResource):
|
||||
"features": [
|
||||
{
|
||||
"type": "Feature",
|
||||
"geometry": json.loads(p.json),
|
||||
"geometry": json.loads(geom.json),
|
||||
}
|
||||
for p in polygons
|
||||
]
|
||||
}
|
||||
return geojson
|
||||
|
Loading…
Reference in New Issue
Block a user