0

This question is an exact duplicate of:

Is it possible to generate a styled KML using ogr2ogr (ie pen width and colour?) I cannot seem to find anything in the ogr2ogr documentation.

My code so far is;

ogr2ogr.exe -f "KML" prow-kml.kml "C:\prow.shp" 

Unfortunately this just gives me a default colour line when viewing in Google Earth.

marked as duplicate by PolyGeo Nov 22 '17 at 3:23

This question was marked as an exact duplicate of an existing question.

  • 1
    The KML page for OGR (gdal.org/drv_kml.html) says: "Limited support is available for fills, line color and other styling attributes. Please try a few sample files to get a better sense of actual behavior." So that is the limit of the guaranteed behaviour. In addition, there isn't interoperable line colouring in shapefile variations, so you'd need to say what specific source you're using. – BradHards May 26 '15 at 7:33
  • 1
    see this thread : gis.stackexchange.com/questions/123710/… – julsbreakdown May 26 '15 at 8:32