Wael,<br><br>There is no support for style information in shapefile format. However, you can store the style info as a regular attribute value. Using OGR's SQL you can extract the style string from the kml data and then store it in the shapefile. Please go through the OGR SQL page[1]. You can get the style from the special field named "OGR_STYLE".<br>
<br>[1]: <a href="http://www.gdal.org/ogr/ogr_sql.html">http://www.gdal.org/ogr/ogr_sql.html</a><br><br><div class="gmail_quote">On Mon, Oct 22, 2012 at 2:25 PM, Wael Tarhouni <span dir="ltr"><<a href="mailto:waelinsat@gmail.com" target="_blank">waelinsat@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi All,<div><br></div><div>I'm using Ogr2Ogr to convert kml file to shapefile but the color of the shape output file is unique, i 'm always loosing the colors of my polygons in the shapefile...</div>
<div><br></div><div>is there any way to solve this problem ?</div><div><br></div><div>Best regards;<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div dir="ltr">Wael Tarhouni<br>Élève ingénieur en Réseaux informatiques et Télecommunication à l'INSAT<br>
</div><br>
</font></span></div></div>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>
<br>+91-9494447584<br>17.2416N 80.1426E<br>