New answers tagged

0

You could use something like the following to get the coordinates of your extent: xmin = layer2.extent().xMinimum() xmax = layer2.extent().xMaximum() ymin = layer2.extent().yMinimum() ymax = layer2.extent().yMaximum()


0

The ListBookmarks function documentation includes: ListBookmarks example 3 This sample will convert each bookmark in a map document to a feature. A copy/paste of that sample with some minor edits to match your environment should enable you to draw the extents of all your bookmarks in Data View (and Layout View).


1

WMS cannot handle properties of the features displayed in a bbox (it can only fetch properties of a feature given a point, read the docs for WMS's getFeatureInfo). What you might want to do is using a different approach, like doing a WFS request to geoserver, which will return the geometries and properties of all features inside a bounding box.


1

Use the Rasterize (Vector to Raster) tool in QGIS. Go to Raster -> Conversion -> Rasterize. Assuming your vector file and the reference raster (g) are in the same coordinate reference system (CRS), do the following: Browse the input file (shapefile). Define which attribute from shapefile to assign in the raster cells. Choose path and name for the output ...


2

If you are talking about ArcMap, you can constrain the scale levels (sort of, by controlling zooming) viewed in an MXD by doing this:



Top 50 recent answers are included