<div dir="ltr">XML and JSON formats do not adhere to the simple feature model of GDAL/OGR that is reminiscent of a flat file or a relational table. And GDAL is one of the base pillars for QGIS.<div>These are more similar to other storage models, say hierarchical or graphs, so they enable a complex data structure that requires a pre-flight and asks for some decisions to correctly represent their structure as a simple feature or exceed it, delivering a complex relational system (if you can guess some) or something other.</div><div>Maybe that's the new frontier for GDAL more than an opportunity for a plugin. The same challenge is available for other formats like GPX, geo/topoJSON, etc.</div><div>QGIS may implement much thoroughly the relevant options, but I think this is work for GDAL.</div><div>c</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 9, 2018 at 6:01 PM, C Hamilton <span dir="ltr"><<a href="mailto:adenaculture@gmail.com" target="_blank">adenaculture@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>The challenge with KML imports is that its free form nature makes it difficult to conform to a table. I have large KMLs with nested folder structures. I find that these large KMLs crash QGIS if I try to import the entire thing and then each point gets rendered as a separate layer.<br><br></div>It wouldn't be hard to write a script that just pulls out all the placemarks and writes them to a point layer, lines to a line layer, and polygons to a polygon layer. What I would loose is the folder structure and styling, but I could easily process large KMLs. I could consider a field in the layers that would be a string of the nested folders that each point, line, polygon were in.<br><br></div>Would this be of interest as a plugin? Is anyone doing this already? There doesn't appear to be anything in the plugin repository.<br><br></div>Thanks,<br><br></div>Calvin<br></div>
<br>______________________________<wbr>_________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">--------------------------------------------------------------------------<br>Carlo A. Bertelli<br>   Charta servizi e sistemi per il territorio e la storia ambientale srl <br>          Dipendenze del palazzo Doria, <br>          vc. alla Chiesa della Maddalena 9/2 16124      Genova (Italy)<br>          tel./fax +39(0)10 2475439  +39 0108566195  mobile:+39 393 1590711<br>   e-mail: <a href="mailto:bertelli@chartasrl.eu" target="_blank">bertelli@chartasrl.eu</a>      <a href="http://www.chartasrl.eu" target="_blank">http://www.chartasrl.eu</a><br>--------------------------------------------------------------------------<br><br><br><br></div>
</div>