[gdal-dev] Does "OGR_STYLE from rivers" mean it will read rivers.ofs ?

積丹尼 Dan Jacobson jidanni at jidanni.org
Sat Jul 2 20:56:25 PDT 2016


I finally gave up and stipped the KML data into a .csv and finally
was able to (according to ogrinfo) successfully attach styles to it with
this .vrt file:
<OGRVRTDataSource>
  <OGRVRTLayer name="road">
    <SrcDataSource>road.csv</SrcDataSource>
    <GeometryType>wkbLineString</GeometryType>
    <LayerSRS>WGS84</LayerSRS>
    <GeometryField encoding="PointFromColumns" x="Longitude" y="Latitude"/>
    <SrcSQL>SELECT *,'PEN(c:#FF00FF,w:10px)' AS OGR_STYLE FROM road</SrcSQL>
  </OGRVRTLayer>
</OGRVRTDataSource>


More information about the gdal-dev mailing list