master #307
@ -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,8 +330,9 @@ class Geometry(BaseResource):
 | 
			
		||||
            "features": [
 | 
			
		||||
                {
 | 
			
		||||
                    "type": "Feature",
 | 
			
		||||
                    "geometry": json.loads(geom.json),
 | 
			
		||||
                    "geometry": json.loads(p.json),
 | 
			
		||||
                 }
 | 
			
		||||
                for p in polygons
 | 
			
		||||
            ]
 | 
			
		||||
        }
 | 
			
		||||
        return geojson
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user