Re: [gdal-dev] Converting KML data with styles to GeoJSON output

2021-02-09 Thread Richard Duivenvoorde
Hi MRRAJESH, GeoJSON does not contain style information, it is pure data. KML indeed can contain both data AND styling. But if you convert KML to GeoJSON, you only get data, because... GeoJSON does not define style/colors. You need to style/color your geojson in your client. In clients like: h

Re: [gdal-dev] Converting KML data with styles to GeoJSON output

2021-02-09 Thread Mateusz Loskot
On Tue, 9 Feb 2021 at 08:05, MRRAJESH wrote: > > I am trying to convert a kml-file with styles to a GeoJSON. Observed that > only data is converted but styles information is missing. How to get the > Geojson data along with styles? Does GeoJSON support styles? 1. https://tools.ietf.org/html/rfc7

Re: [gdal-dev] Converting KML data with styles to GeoJSON output

2021-02-09 Thread MRRAJESH
Below are the input sample KML, out GeoJSON, and missing values. *Sample KML:* http://www.opengis.net/kml/2.2";> Building 41 #transBluePoly 1 relativeToGround -122.0857412771483,37.42227033155257,17 -

Re: [gdal-dev] Converting KML data with styles to GeoJSON output

2021-02-09 Thread bradh
What are you getting for the GeoJSON, and what else are you expecting? In particular,  how are you expecting the style information to be represented? On 9 Feb 2021 6:05 pm, MRRAJESH wrote:Hey, I am trying to convert a kml-file with styles to a GeoJSON. Observed that only data is converted but

[gdal-dev] Converting KML data with styles to GeoJSON output

2021-02-08 Thread MRRAJESH
Hey, I am trying to convert a kml-file with styles to a GeoJSON. Observed that only data is converted but styles information is missing. How to get the Geojson data along with styles? I have tried with org2ogr. Below is the KML file - http://www.opengis.net/kml/2.2";>Building 41#transBluePoly1re