Thanks !<br><br><div class="gmail_quote">On Wed, Sep 1, 2010 at 1:54 PM, Frank Warmerdam <span dir="ltr"><<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">Sebastian E. Ovide wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi All,<br>
<br>
I have MapInfo mixed geometry files. As MapServer doesn't support layers wityh mixed geometry, Is it possible to use gdal for extracting its points, its polygaons etc... and save them in different files ?<br>
</blockquote>
<br></div>
Sebastian,<br>
<br>
You can do something like:<br>
<br>
ogr2ogr your_points.shp mixed.tab -where "ogr_geometry='point'"<br>
<br>
ogr2ogr your_lines.shp mixed.tab -where "ogr_geometry='linestring'"<br>
<br>
ogr2ogr your_lines.shp mixed.tab \<br>
-where "ogr_geometry='polygon' or ogr_geometry='multipolygon'"<br>
<br>
Note that MapServer can draw from a mixed file, but you would need<br>
to define a layer for each type of geometry you want to draw and<br>
there are inefficiencies since the other geometries are discarded<br>
after some expense reading for the layers they don't apply to. So<br>
splitting things, as above, is best for large files.<br>
<br>
Best regards,<br><font color="#888888">
-- <br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush | Geospatial Programmer for Rent<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Sebastian E. Ovide<br><br><br><br><br>