Hi all,<br><br>I tried to use <i>geometries to points</i> but Sextante won't accept my multipoint layer which I created in gvSIG.<br>While Antonio was answering I found the follwing "not so complicated" workaround:<br>
-export multipoint shp to PostGIS<br>-use this SQL-Statment:<br>"SELECT ST_X(geom) As x, ST_Y(geom) as y<br>FROM (SELECT (ST_Dump(mpt.the_geom)).geom<br> FROM multipointtest mpt)AS mpt;"<br>this will explode the multipoints into points (function ST_Dump) and create the coordinates columns (functions ST_X and ST_Y)<br>
-Export the results as csv<br>-Add csv as Event Layer in gvSIG<br>- be happy ;-)<br>see screenshot<br><br>Best,<br>Johannes<br><br>PS: I still use 1.1.2<br><br><br><div class="gmail_quote">2009/8/28 Antonio Falciano <span dir="ltr"><<a href="mailto:afalciano@yahoo.it">afalciano@yahoo.it</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Wolfgang Qual ha scritto:<br>
<div class="im">> Hello Jean,<br>
> hm. right. I would suggest to write a feature request to this list. I<br>
> could imagine that it is not that complicated to write a function for<br>
> this purpose.<br>
> However, I am not a developer. Therefore, I would be very glad, if one<br>
> of the developers could comment this issue - ...<br>
> gvSIG allows to create new multipoint features, but will it allow to<br>
> convert multipart shapefiles to singlepart? Will it be possible to<br>
> write a nice script for this purpose once the new 2.0 is available?<br>
> Maybe it is more complex than I think. ogr2ogr does not allow the user<br>
> to do this conversion...<br>
> Any comments would be great.<br>
<br>
</div>Hi all,<br>
you can try with "Geometries to Points" tool of Sextante.<br>
<br>
Best regards,<br>
Antonio<br>
<div class="im"><br>
> Best,<br>
> Wolfgang<br>
><br>
><br>
> Jean Hemmi schrieb:<br>
>> Hi Wolfgang,<br>
>> The Sextant option you've proposed does not change the shapefile type from<br>
>> multipoint to point...<br>
>> It explose the points in many shp files.<br>
>><br>
>> Has anybody an idea to change MULPOINT to POINT ?<br>
>> ogr2ogr refuse... Gvsig ?<br>
>><br>
>> This thread is not about Sextant on 1.2 and 1.9...<br>
>><br>
>> Thanks for your help.<br>
>><br>
>> Jean<br>
>><br>
<br>
--<br>
</div><font color="#888888">Antonio Falciano<br>
<a href="http://www.linkedin.com/in/antoniofalciano" target="_blank">http://www.linkedin.com/in/antoniofalciano</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Gvsig_internacional mailing list<br>
<a href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a><br>
<a href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional" target="_blank">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</a><br>
</div></div></blockquote></div><br>