Hot answers tagged

6

Go to Layer -> Add Layer -> Add Delimited Text Layer. You should be able to find the csv file you have, give it a layer name, and choose file format as CSV. In the Geometry Definition, you will have to use Well known Text (WKT) by ticking that box. Set the Geometry field to the column you want, and you might want to set the Geometry type as Polygon. See ...


5

You can create a collar using data frame or map frame within the layout view, as follows Set the data map position for both X and Y to 0 (Zero) Increase the thickness of the frame to desired value (I used 20 mm), The thickness increased from the center of the line (both outside and inside of the line), that is why I set the X and Y position to 0 to exclude ...


5

You can just go to Legend items and right-click the subgroup that you want to hide and click on Hidden. This will do what you are asking for.


5

I'm not really sure but maybe check if you meant EPSG 4326 instead of 3857.


4

You put the attribute table into a dock widget in settings => options => data sources. Docks can easily be stacked as tabs. There is still a manual process to it to stack the two tables. As far as I know it's not possible to do this automatically (yet).


4

Rendering can use multiple cores: Most processing/analyses are still single-threaded but devs are working on it, see How to enable multithreaded processing in qgis 2.2


3

Some people uses QGIS 2.8.x others the versions 2.10.x, 2.12.x and 2.14.x and some want to use the new version 2.16.x. Unfortunately, it is not yet available for Mac OS X and you have some solutions... Wait for William Kyngesburye version ( Kyng Chaos) Wait for Homebrew Mac OSGeo version Compile yourself QGIS (Mac OS X is an Unix System and you have all ...


3

Settings - Options - Tab Locale - Override system locale.


3

TESTED USING THE LRS PLUGIN VER 0.3.6 Your problem may be that you need to update your plugin/QGIS version This is from the changelog of the LRS plugin: changelog: 0.3.6 - Fixed issue #6 (PostGIS data types not supported by memory provider) Your point files needs to have an attribute for distance along the line. It also needs a route ID field. Your line ...


3

'Vector > Research Tools > Regular Points'. Allows for an input boundary layer and various ways to space your points.


3

Plugins are 3rd party contributions to QGIS. As such, it is not possible for the core team to guarantee for their quality. A review process for plugins in place but this cannot catch every possible problem with or threat from plugins. While this may be clear for many, for a lot of users this distinction is not clear. To prevent the core QGIS project from ...


3

If you have some python skills, you could just fix the processing module. It should not be hard at all. locate it on your harddrive Replace the whole block dealing in complicated ways with geometries with a simple return QGis.singleType(wkbType) Test Optional extra step: make a processing test case for it Make a pull request on github so it's fixed for ...


3

You can do both: At Using customized Coordinate System for Archaeological site data I have explained how to set up a local CRS based on the origin of the local system. The data in the local CRS remains untouched, and can still be edited. Or you can use the affine transformation plugin to shift the data into real world coordinates. This has the disadvantage ...


2

As of QGIS 2.16, Globe now works on Windows as well, see: The plugin is installed by default. It only needs to be activated in the plugin manager.


2

To select different years you need to use OR rather than AND between your years. "st" = 'CA' AND "yr" = '1995' OR "yr" = '1996' Using AND tells it to select each individual record that has a year 1995 AND 1996 AND 1997 etc., where each record only has a single year against it.


2

Using OSGeo4W64 setup might be the best solution for you. You have to select QGIS and GRASS (which is GRASS7). Make sure you delete C:\users\<username>\.qgis2\python\plugins\processing if you still have that.


2

The proper way to dealing with this is to use an alias. You can use addAttributeAlias for this (as usual, check the documentation for this) This way it will not only be used in python-preprocessed forms but also in the attribute table and other places.


2

The following approach is simple to use and avoids duplication of styling rules: QGIS allows to define custom fields: "Layer Properties" -> "Fields". The best result is achieved by defining a new field for each style using expression. For example style_colour is defined as case when "roadtype" = "path" then 'black' when "surface" in (0,1) then 'red' ...


2

I think this recently fixed issue is related to your post: Long term release installer 2.14 installs 2.16 and makes 2.16 default version


2

Thanks to the answer by @ahmadhanb, it led me in the right direction to find what I was looking for. Step-by-Step instructions: Add a rectangle shape that represents the "frame" that you want your map to sit within. The default will be a polygon with simple fill. Change its style to transparent fill and dark border. Adjust border width and style as ...


2

Categorized symbols and graduated symbols are applied in pretty much the same way. The only difference is that graduated symbols are taking into account certain ranges, whereas, categorized is simply taking in the actual field value. Quite honestly, you could literally replicate the code given from the PyQGis cookbook site: http://docs.qgis.org/testing/...


2

From QGIS 2.14 and on: Create attribute and fill with field calculator with expression: z ($geometry) Screenshot from my data. Version QGIS: 2.16.0 EPSG:28992


2

Sorry for answering my own question. After browsing the API I found the solution is to cast the QgsPaintEffect to QgsEffectStack and edit the existing effects, maybe someone can benefit from this code: QgsPaintEffect* oldEffect=p_Symbol->symbolLayer(0)->paintEffect(); QgsEffectStack* stackEffect=(static_cast<QgsEffectStack*>(oldEffect)); ...


2

Due to the drop of ftools, there is no chance to merge a whole folder of shapefiles from the GUI anymore. It should be possible with ogr2ogr on the commandline: http://www.northrivergeographic.com/ogr2ogr-merge-shapefiles , but you have to be sure only merging files of the same geometry type. The Merge Vector layers algorithm only deals with loaded layers ...


1

You can add the folder containing your svg files in Settings > Options > System in SVG paths. To select the svg file, right click on your layer, go to Properties > Style and change the symbol layer type to SVG Marker (Default is Simple marker) like shown in the screen shot. You should then be able to select your symbol. Edit: In newer versions ...


1

The following is a 4-step approach with standard QGIS functions which might get what you want. Here's the TLDR: Buffer the fences Split the buffers along all boundaries Extract the overlap areas Remove the parts of the river that fall within the overlaps Here's a more detailed explanation: 1. Buffering the fences "Vector --> Geoprocessing Tools --> ...


1

What I would try: Densify river lines. Draw perpendicular lines on vertices. Split perpendicular lines by riverlines. Classify perpendicular lines left / right with sidebuffer. Analyse linecrossings perpendicular lines with fencelines. Join results to vertices. Check where left and / or right did not cross fencelines. I would use FME Desktop (build ...


1

If you want to change the version that is started by double-clicking on projects, navigate to C:\Program files\QGIS Essen\apps\qgis-ltr\bin\ double-click on qgis.reg, and .qgs files will be opened with the ltr version. Afterwards, you can safely delete the apps\qgis path where 2.16.0 has been installed.


1

Bit of a convoluted process but this should work (make dbf layer vector layer, convert dbf to csv, then convert csv to delim layer, and finally convert delim layer to shp): DBFlyr = QgsVectorLayer(myDBFPath, 'anyName', "ogr") myCSVPath = 'C:/Temp/myCSV.csv' QgsVectorFileWriter.writeAsVectorFormat(DBFlyr, myCSVPath, "utf-8", None, "CSV") uri='file:///'+ ...


1

This would be extremely simple in PostGIS: SELECT line.unique_name, line.geom, COUNT(circle.geom), SUM(circle.attribute_name) FROM line JOIN circle ON ST_Intersects(line.geom, circle.geom) GROUP BY line.unique_name, line.geom; In QGIS 2.14 there is the option of creating a "Virtual Layer" which might work for this. But the performance is not as good with ...



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