<div dir='auto'>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? </div><div class="gmail_extra"><br><div class="gmail_quote">On 9 Feb 2021 6:05 pm, MRRAJESH <rajeshreddy82@gmail.com> wrote:<br type="attribution" /><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hey,
<br>
<br>
I am trying to convert a kml-file with styles to a GeoJSON. Observed that
<br>
only data is converted but styles information is missing. How to get the
<br>
Geojson data along with styles?
<br>
<br>
I have tried with org2ogr. Below is the KML file -
<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><kml
<br>
xmlns="http://www.opengis.net/kml/2.2"><Document><Placemark><name>Building
<br>
41</name><styleUrl>#transBluePoly</styleUrl><Polygon><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><outerBoundaryIs><LinearRing><coordinates>
<br>
-122.0857412771483,37.42227033155257,17-122.0858169768481,37.42231408832346,17-122.085852582875,37.42230337469744,17-122.0858799945639,37.42225686138789,17-122.0858860101409,37.4222311076138,17-122.0858069157288,37.42220250173855,17-122.0858379542653,37.42214027058678,17-122.0856732640519,37.42208690214408,17-122.0856022926407,37.42214885429042,17-122.0855902778436,37.422128290487,17-122.0855841672237,37.42208171967246,17-122.0854852065741,37.42210455874995,17-122.0855067264352,37.42214267949824,17-122.0854430712915,37.42212783846172,17-122.0850990714904,37.42251282407603,17-122.0856769818632,37.42281815323651,17-122.0860162273783,37.42244918858722,17-122.0857260327004,37.42229239604253,17-122.0857412771483,37.42227033155257,17</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark></Document></kml>
<br>
<br>
<br>
Regards,
<br>
Rajesh
<br>
<br>
<br>
<br>
--
<br>
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
<br>
_______________________________________________
<br>
gdal-dev mailing list
<br>
gdal-dev@lists.osgeo.org
<br>
https://lists.osgeo.org/mailman/listinfo/gdal-dev
<br>
</p>
</blockquote></div><br></div>