Tag Info

Hot answers tagged

3

It is trivial with ogr2ogr and SQLite SQL dialect. Next examples write 10 first lakes into one KML file and next 10 lakes into another KML file ogr2ogr -f kml batch_1.kml lakes.shp -dialect sqlite -sql "select * from lakes limit 10" ogr2ogr -f kml batch_2.kml lakes.shp -dialect sqlite -sql "select * from lakes limit 10 offset 10"


2

I was able to reach the author of Shp2kml 14 September 2014 and reported the problem with the "The the license for this tool has expired" message (something I first ran into several months ago). On 15 September 2014, he uploaded a newer version of the file and the expired license error no longer exists. The program's "About" screen shows the following, ...


2

If you use the Openlayers plugin inside QGIS, you have to set the project CRS to EPSG:3857, not EPSG:3003. 3003 is for Italy only, but the Openlayers plugin is worldwide. The other layers may still have other CRS.


2

The ogr2ogr example is probably the most efficient, but if you prefer to do it without commandline you can just open the attribute table of the layer you're saving as KML, order the table on ID and starting from the top you select a number of records which you think will be within the limit (if the file is 150 megabytes, maybe select half of the records?) ...


1

Run Arctool box KML to Layer conversion tool and then export layer to shp file.


1

GeoPandas relies on the Fiona library (http://github.com/toblerity/Fiona) for the from_file() implementation. At this time Fiona, and therefore GeoPandas, does not support CSV or KML input. If you can convert them to GeoJSON or Shapefiles, then GeoPandas should be able to read without a problem.


1

SOLVED: I was convinced that the raster was in EPSG:3003, but actually it was not! The raster layer was coming in as EPSG:4326 from the map server, even though I had set it to 3003 in the layer property (see screenshot). This is where the problem came from and all my other layers had the same problem. So I have now specified a new layer source, being sure ...


1

You can disable a popup on a layer or layers by passing null to layer.setInfoTemplate(). Once you've got the array of feature layers that are used for displaying features from you KML (the lyrs var in your example page, around line 110), loop and clear out the info template like so: lyrs.forEach(function(l) { l.setInfoTemplate(null); });


1

It depends on how many files you need to convert. If you have a lot, a simple solution is to install the free GeoServer and publish all the shapefiles as WMS or WFS (depending on use-case). Geoserver handles the delivery and you do not need to no any conversion. This will allow you to overlay them in most web map scenarios without overloading your client ...


1

I have been able to resurrect the code from the gadget, and get it working again: http://www.nearby.org.uk/blog/2014/09/16/resurrecting-the-google-kml-embed-and-tour-gadgets/



Only top voted, non community-wiki answers of a minimum length are eligible