Tag Info

New answers tagged

0

Use the tool "Multipart to Singlepart"


1

You can use model builder for this type of operation. In this example, I created a separate variable "out_workspace" that is used to define the output path in Copy Features: %out_workspace%\fc_%Value%.shp


0

I've had this this situation, and came up with a novel solution: use the WMSGetFeatureInfo instead of the SelectFeature control, because it is able to return multiple features associated with a click event. Even though the WMSGetFeatureInfo is not supposed to be used with vector layers, it is possible to trick OpenLayers into thinking it is interacting with ...


2

using arcgis editor for OSM, you can auto extract features and symbolize it, also it allows you to extract information to table. http://www.esri.com/software/arcgis/extensions/openstreetmap


0

if you use arcPy, create 2 rasters (need both to have same shape), new_raster and old_raster. Assume a value of zero is non-wetland and one is wetland in arcPy, convert both new_raster and old_raster to numpy arrays and: in_new_but_not_in_old = np.ones(new_raster.shape) * -9999 in_old_but_not_in_new = np.ones(new_raster.shape) * -9999 ...


2

Leaflet's map.fitBounds has an option padding which you can use like so: map.fitBounds(polygon.getBounds(), { padding:[50,50] } ); JSFiddle demo: http://jsfiddle.net/1vjqjx6h/


2

This should work for a polygon layer (I've tested it in the QGIS Python console, QGIS v.2.8.1): from qgis.gui import QgsRubberBand from PyQt4.QtGui import QColor rbDict = {} # We need this to store the rbs we'll create layer = iface.activeLayer() # Create rubber bands for f in layer.getFeatures(): fId=f.id() rbDict[fId] = ...


0

The re-render of the map should be automatic, I think it's becasue the feature is still selected. Try to clear the collection of features selected before you remove the feature from the vectorSource like this: if (features[i].getProperties().id == selectedFeatureID) { singleClick.getFeatures().clear(); vectorSource.removeFeature(features[i]); }


0

You can access the number of features in the cluster strategy object. If there were no more strategies added to the layer, the correct path to the array is the following: mylayer.strategies[1].features


0

I think I figured this out. Let's first say that you need to keep a Definition Query. Then you go to edit that layer, but get nothing. No problem. Look at this graphic below: Use Editor to open your layer. In the "Create Features" window, click on Organize Templates. In the Organize Feature Templates windows, chose the proper layer (left-hand side). In ...



Top 50 recent answers are included