<div dir="ltr"><div><div><div><div>Hi list,<br><br></div>I am using postgis to split a multipolygon feature by a linestring. Both feature are geojson inputs. <br><br></div>However the outputs returns a geojson that is a geocollection of two polygon features. In fact this is correct, but for consistency I would like to keep the the splitted features into a single Multipolygon (even if there is only one linear ring in it). Is it possible?<br>
<br></div>This is my query: <br><br>SQLQuery = '''SELECT ST_AsGeoJSON(ST_Split(ST_GeomFromGeoJSON('%s'),ST_GeomFromGeoJSON('%s')))::json As f''' % (feature,blade)<br><br></div>-Max Demars<br clear="all">
<div><div><div><div><div><div><br>-- <br><div dir="ltr"><div><div><div>Stack Overflow: <a href="http://stackoverflow.com/users/1914034/burton449" target="_blank">http://stackoverflow.com/users/1914034/burton449</a><br></div>
</div>GIS Overflow: <a href="http://gis.stackexchange.com/users/14426/burton449" target="_blank">http://gis.stackexchange.com/users/14426/burton449</a><br></div>LastFm: <a href="http://www.lastfm.fr/user/burton449" target="_blank">http://www.lastfm.fr/user/burton449</a><br>
</div>
</div></div></div></div></div></div></div>