Tag Info

Hot answers tagged

3

From the comments, it became clear you were instead trying to remove the overlapping portion of the smaller polygon from the larger polygon. You should use the "Difference" tool instead of the "Clip" tool.


3

You can use the Interpolation function (Raster > Interpolation > Interpolation) to create a raster map based on multiple classes: You can choose various settings such as which interpolation method you prefer, how fine a resolution you want the output etc. Note that this is a plugin which I think should already be enabled by default. Hope this helps!


2

Here is one approach that I think would work for you. 1.) Add a unique field to each of the input polygon layers. 2.) Populate each field with an identifier you can easily associate to that species. 3.) Iteratively run the Union tool for each layer union-ing to a master polygon layer. Now all of these unique fields will be included in your output polygon ...


2

I think I'd probably look to download the data into Postgres using ogr2ogr then look at TileStashe for serving the vector tiles. Docs for ogr2ogr WFS driver: http://www.gdal.org/drv_wfs.html @underdark wrote about using ogr2ogr: http://anitagraser.com/2012/09/26/wfs-to-postgis-in-3-steps/ There are some pointers for configuring TileStashe here: ...


2

You can use the Rasterize function (Raster / Conversion / Rasterize) that will convert a vector file (shapefile) to raster. Just be sure to select the attribute field with your classifications. It's important to note that the attribute field must be numeric. Also, when creating the new raster, you have to set either the raster size (width / height) or pixel ...


2

To set the color of a vector layer feature depending on the feature attributes with PyQGIS is necessary to change the QgsSingleSymbolRendererV2 default object in a, for example, QgsGraduatedSymbolRendererV2 object. To test this I created the 'random' field name in a Polygon Vector Layer and this field was filled with aleatory values between 1 and 24. These ...


1

Here an example of the 'magnifying glass' I was referring to in the comments last night. It is actually known as zoom lens, and I just realized it does much more than zooming, but it can also display a different map, which is exactly what you are looking for, right? I am really amazed that this works, and luckily for you it has all been done with Mapbox, ...


1

As indicated in my answer to How to compute parameters for QGIS Affine transformation?, you can do it after you recognize the different parameters of the matrix. Parameters are: a: Scale X e: Scale Y d: Rotation X b: Rotation Y c: Translation X f: Translation Y So, you should be able to move your layer by setting c and f parameters with your x and y ...


1

Based on both this blog post and the answer to How can I specify the CRS of a raster layer in pyqgis?, you can achieve what you want this way: settings = QSettings() # Take the "CRS for new layers" config, overwrite it while loading layers and... oldProjValue = settings.value( "/Projections/defaultBehaviour", "prompt", type=str ) settings.setValue( ...


1

The following code should allow you to add a vector layer without the CRS popup window from appearing (atleast it doesn't appear for me): from qgis import * from qgis.utils import * #replace "shapefile_path" with your layer's path; replace "Layer_name" with whatever name you want to give the layer in the TOC ...


1

I found that ST_SetValues can work with a collection of geometries and values as an aggregated array. So my SQL solution is this: UPDATE empty_raster SET rast = ST_SetValues(rast, 1, geomval) FROM ( SELECT array_agg((geom, (ST_Area(ST_Transform(intersected_geometry, 3400)) / 1000000))::geomval) as geomval FROM ( SELECT geom, ...


1

You can save a group as Layer Definition File, but this feature is available only in the master version (which will be soon QGIS 2.8.0). If you are using this version: Right click on the Group and choose "Save as Layer Definition File" From the Layer, menu choose "Add from Layer Definition File" Repeat the step number 2 all the time you need.


1

You need to update your paths in the zoomed function. The original example does this on line 68. The simplest thing to do is to use the counties variable store a reference to the selection of paths: counties = topojson.feature(us, us.objects.barrios); counties = svg.selectAll("path") .data(counties.features) .enter() .append("path") ...


1

Not to toot my own horn, but https://github.com/spatialdev/PGRestAPI is a project I've been working on that hosts .mbtiles vector tile exports from Mapbox Studio. Still needs lots of documentation, but basically, drop your .mbtiles files into /data/pbf_mbtiles and restart the node app. It will read thru that folder and offer endpoints for your vector ...


1

I would do the job with OpenJUMP and the Noder tool. Open your line layers into OpenJUMP Combine the layers for further processing This tool will transform all the attributes from the source layers and add a new attribute "LAYER". That will be useful later. Next use the Noder tool from the menu "Tools - Edit Geometry - Noder.." Lines will be ...



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