Tag Info

New answers tagged

0

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 ...


0

I would have thought you could convey more detail by keeping the data in a vector format. Regardless, QGIS now has an option or a plugin to export a referenced raster direct from the map canvas view. So you need only make the map (sounds like you have done that) and use the plugin. You need to enable experimental plugins and install GeorefExport. Once ...


0

In QGIS 2.4 (not sure about previous versions), when you right-click on the layer and choose "Save As...". On the "Save vector layer as..." dialog, be sure to change the CRS dropdown from "Layer CRS" to "Selected CRS" and then browse to "WGS 84 / Pseudo Mercator (EPSG: 3857)". Everything else should work the same and give you the output you expect.


0

I believe you are on the right path. The stumbling block that you are facing is that you can have only one event handler. You need two functions. One function adds your layers as you intend. You need another function to register an event handler for each layer. In OpenLayers there is a setup for one event. That's what you are using. You need to use the ...


2

This seems to be a long running bug in QGIS: How to convert KML to shapefile without losing attributes? I am pretty sure it worked some time, but QGIS 1.8 and 2.2 show the same behaviour you mention. Add vector Layer is using OGR/GDAL in the background, and that has two drivers for kml reading (KML and LIBKML), but LIBKML is not included in OSGEO4W builds. ...


0

You can't consume GEE services with ArcGIS. You can build GEE resources from shapefiles and then symbolize in google fusion. GEE does not provide conversions to/from kml files. Use Esri tools for that. Assuming you are using an Esri reference when you ask about an "image service", the answer is no.


0

Two ways to minimize the size of each request. 1 - Make sure the polygon shapes are smoothed to the resolution. I.e. you don't need to show all the minute bends in the lake if you are viewing it at country level. So if you are going the JSON route, have different JSON files for different zoom levels. I found that having 3 different simplifications worked ...


0

Based on your question title and your tag, I'm not sure if you want to use GDAL or ArcGIS do perform this conversion. The GDAL ogr2ogr option would be this command: ogr2ogr -f "ESRI Shapefile" C:/Temp/myshp.shp C:/Temp/mykml.kml More examples may be found here: OGR2OGR Cheatsheet


0

If you're going to use it in ArcGIS, I assume you have ArcGIS installed already. Use: ArcToolbox > Conversion Tools > From KML > KML to Layer I believe this has already been answered for use of Gdal/OGR2OGR: How to convert between KML and Esri's shapefile (SHP) format?


0

Solved it. When I was creating my new zip/kmz my code was creating various folders within the zip/kmz. Changed: NewZip.write(addedfile) to: NewZip.write(addedfile, newfl)



Top 50 recent answers are included