<div dir="ltr">I tried to insert the 'feature name', but could not. Can some one correct it?<div><br></div><div><div>field_defn = ogr.FieldDefn("Name", ogr.OFTString)</div><div>field_defn.SetWidth(32)</div><div>feature.SetField("Name", name)</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 11, 2014 at 6:33 AM, Jukka Rahkonen <span dir="ltr"><<a href="mailto:jukka.rahkonen@mmmtike.fi" target="_blank">jukka.rahkonen@mmmtike.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Kyle Shannon <kyle <at> <a href="http://pobox.com" target="_blank">pobox.com</a>> writes:<br>
<br>
><br>
> Style is usually dictated by the application.  You can set them in the<br>
> app, or for some formats/drivers you can use the OGR style API:<br>
><br>
> <a href="http://gdal.org/ogr_feature_style.html" target="_blank">http://gdal.org/ogr_feature_style.html</a><br>
><br>
> AFAIK, shapefiles do not support styles<br>
<br>
</span>As you said, style is dictated by application. If you create an "OGR_STYLE"<br>
column into shapefile and populate it with OGR feature style strings some<br>
programs can utilize them. I know that Mapserver can do it as well as GDAL<br>
when it writes PDF files.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Jukka Rahkonen-<br>
</font></span><div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br></div>