A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged

0

This is not how the reshape tool works. Actually, you do not select any node by double clicking: you just create a duplicated point in your new border, hence the green color (try to double click anywhere outside the polygon, you will get the same green cross). To expand your polygon, your first and last point must be inside the orignal polygon Before right ...


0

Thanks, as the answer was csk was just right. The layer I was editing had "avoid intersection" checked under "Advanced Configuration". Unchecked... perfect.


0

There is a standalone utility to fix this kind of problems, and I find it to be very reliable. It is called Shapechk by Andrew Williamson. It can be downloaded from this link: https://gis.stackexchange.com/a/7824/93912


0

It's enough, when I pull my feature alongside the one of the line, keeping it as close as I can. Then I don't need to worry about its path.


1

In QGIS 3.10.1 the developers put clipping of rasters in the Raster toolbar, in the Extraction section, it is now called "Clip Raster by Mask Layer". In the tool window there is an opportunity to select a CRS for input (or leave source CRS) and output rasters. Definitely works with different CRS: I clipped a raster in Projected CRS with a mask layer in ...


1

See my answer here: QGIS changing the attribute input fields order Open the attribute table. Right click the column headings in the attribute table. Select "Organize columns" in drop down menu. Then, just drag the heading to the position you want it to be in (See image of the "organize table columns" box below). Click OK. Headings should have rearranged the ...


1

Open the attribute table. Right click the column headings in the attribute table. Select "Organize columns" in drop down menu. Then, just drag the heading to the position you want it to be in (See image of the "organize table columns" box below). Click OK. Headings should have rearranged the way you want it to be arranged in the attribute table.


2

After much research and communication with GIS team of USDA, and QGIS team. I have found out that the WFS to get soil data of US are: https://SDMDataAccess.sc.egov.usda.gov/Spatial/SDMWGS84Geographic.wfs https://SDMDataAccess.sc.egov.usda.gov/Spatial/SDMNAD83Geographic.wfs But, they are misconfigured and QGIS can't communicate with them. Let's hope that ...


3

I don't know about older versions, but in QGIS 3.10.1 there is a default hotkey for snapping enabling/disabling - "S"


1

You can set the default font for the print composer items in Settings>Options>Layouts: But I don't think there is a way to set one for the rest of QGIS, like labels. But the print composer is the most common place for fonts, so that should help a bit.


4

You need to put the file into: QGIS_BASE_FOLDER\share\proj QGIS uses proj for re-projection, any transformations in there should be automatically detected. Edit: Also to note, I am using QGIS 3.10 and BETA2007.gsb is already included. So upgrading might help as well. Edit 2: In answer to the updated question. You can set default transformations in ...


0

Ok, I found my mistake. I have to import the data to the database, then load this data, change the style and then I can import the style information to my database,too


1

Try save/set as default, the third option from the top when you click the style-dropdown. At least with Geopackage this saves the style directly where the datasource is.


0

The MMQGIS plugin now has an option (added in June 2019) to geocode addresses using an ESRI GeocodeServer. Install the MMQGIS plugin in QGIS. Then, from the MMQGIS menu, select "Geocode CSV with Web Service". (You may need to export your addresses to CSV first.) The server URL should end with "GeocodeServer/findAddressCandidates". More details about the ...


3

Please review the documentation about the Browser Panel. The documentation says: You can import files into databases or copy tables from one schema/database to another one with a simple drag-and-drop. There is a second browser panel available to avoid long scrolling while dragging. It is like opening two file browsers when copying files to make ...


0

You may also use the Snap geometries to layer processing tool: This algorithm snaps the geometries in a layer. Snapping can be done either to the geometries from another layer, or to geometries within the same layer.


2

You could shift the features to their correct locations by using the command line tool ogr2ogr. If you wanted to shift all the features at 8 meters at a 45 degree angle (northeast) then use the following code ogr2ogr shifted_data.shp original_data.shp -dialect sqlite -sql "SELECT ShiftCoords(geometry,5.657,5.657) FROM original_data" Ogr2ogr is part of ...


1

With qgis3 you'll need a different environment: call "C:\OSGEO4W64"\bin\o4w_env.bat call "C:\OSGEO4W64"\apps\grass\grass78\etc\env.bat call qt5_env.bat call py3_env.bat path %OSGEO4W_ROOT%\apps\qgis\bin;%PATH% set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/qgis set GDAL_FILENAME_IS_UTF8=YES rem Set VSI cache to be used as buffer, see #6448 set VSI_CACHE=...


1

Once again, it's better to know the version of QGIS...! I don't think the way you was looking for could right because in this case the scale is controled by the atlas, so the right dialog box it's below. https://docs.qgis.org/3.4/en/docs/user_manual/print_composer/composer_items/composer_map.html#controlled-by-atlas You can't set a ruled based scale in ...


3

Instead of creating the leading lines using geometry generator symbology, try using the Callouts tab in the Label options: You can configure the leading lines with the options shown in the screenshot. It may take some configuring to make them look the same as they were in the geometry generator but doing it this way won't show up in the table of contents or ...


2

Create startup.py file on C:\Users\USER\AppData\Roaming\QGIS\QGIS3, if it doesn't exist. Add next script, change path and projections' "authIDs" and "IDs" as you desire and save. Note: If you run the script in QGIS Python Editor, you'll see that the changes are applied immediately. But to get always same list of projections on starting QGIS, you need to add ...


9

Hover on top of the selection and you'll see a short context help text. QGIS creates new fields by default wide so that attributes have enough space to fit in. When saving it is possible to analyze the attributes and shorten the fields and save some disk space because the .dbf part will be smaller. You can select YES if you know that there is no need to ...


0

In the print composer > legend properties > column Select the number of the column Unclick the option of split layer The item order can be changed using the and or with ‘drag-and-drop’ functionality. The order can not be changed for WMS legend graphics. https://docs.qgis.org/3.4/en/docs/user_manual/print_composer/composer_items/composer_legend.html#...


1

TanDEM GeoTIFFs are of type "Pixel is point" gdalinfo TDM1_DEM__30_N49E010_DEM.tif Driver: GTiff/GeoTIFF Files: TDM1_DEM__30_N49E010_DEM.tif Size is 1201, 1201 Coordinate System is: GEOGCRS["WGS 84", DATUM["World Geodetic System 1984", ELLIPSOID["WGS 84",6378137,298.257223563, LENGTHUNIT["metre",1]]], PRIMEM["Greenwich",0, ...


5

Not a real solution, but a nice workaround I often use: Create a new temporary layer in your project and assign a complete white symbology (or transparent / or the color of your background in print composer) to it. Then add this layer to your legend and remove its label. Now you can use it as "dummy placeholder" to create gaps and e.g. move it right on top ...


2

I'm offering you a solution that isn't elegant, but it works. You can add 2 legends in your print composer: one with the layers gonsbach and landbedeckung with 2 columns. a second one with the layers Messtationen and area with 2 columns too.


0

Individual layers in the legend can be easily updated by right click on the layer and "set back to presettings". the English term is probably not 100% accurate but somethin like that.


1

In QGIS 3.4, the SAGA provider is already a core plugin. Therefore, you can also change the SagaAlgorithmProvider.py file directly, by: sudo nano /usr/share/qgis/python/plugins/processing/algs/saga/SagaAlgorithmProvider.py then change the REQUIRED VERSION from 2.3. to 7.3. This worked for me.


2

Convert from DWG to DXF to SHP: Download and open ODA File converter: https://www.opendesign.com/guestfiles Convert DWG to DXF (Choose lastest year - mine was 2018 - ASCII DXF) Use QGIS Plugin 'Another DXF Import/Converter' to add from folder to new folder (Don't forget to click 'Save as shapefiles') Loads in QGIS in layers 2020/01/19


2

Or is this the intended behavior of QGIS upon export to GeoJSON and I'm thinking about this wrong? I don't know what the intended behaviour of QGIS is, but if the intention is to write GeoJSON according its specification (https://tools.ietf.org/html/rfc7946) or just RFC7946 for short. Then yes. Section 4 of RFC7946 tells us that The coordinate ...


0

Just use Vertex-Tool and SHIFT-Doubleclick to add vertices at any place. This feature was reintroduced in 3.6 or 3.8 and backported to the LTR (3.4.13):


0

In the menus above go to raster-->miscellaneous-->build virtual raster This will create the desired merge you want. Then save it to a "real" file.


4

In QGIS you can do that combining buffer (for highway layer), single sided buffer (for fence layer) and difference (by using both buffers) methods from Processing Toolbox. I tried out my approach with layers of following image where buffer of highway layer has 10 m in EPSG:32612 projection. In following image it can be observed single sided buffer of fence ...


0

You can open the attribute table of your intersection layer and create a new double or integer field and enter the expression sum($area). This will sum up all areas of all features of that layer in the CRS units (so make sure your layer is projected to a metric system, then the result will be in m²). If you want to sum the areas up by groups, use the ...


2

You can create a proximity raster directly using the Proximity (raster distance) processing tool. No need to burn coordinates as new rasters... If your coordinates are lon, lat then your data is in a geographic (lon, lat) CRS and the horizontal units are degrees which are not a good choice for distance measurements. I suggest reprojecting to a projected ...


1

You can solve it putting lines above mentioned in add_action method instead run method. To exemplify this, in my test plugin, I added a QTabWidget object and, inside first and second tabs, a QLabel object; as it can be observed in following image (only for first Tab). Afterward, I modified plugin code as follows for changing default text in Qt5 Designer ('...


0

I did something similar - need to draw 5km circles around a set of points meeting some criteria. I solved the problem using styles: Create a Symbology rule for the layer (in my case ": "field" is not null For the symbol, define a 'Simple Marker" Size 10000.0 (the size is diameter, not radius Units, select "Meters at Scale" Fill color: Transparent Voila! A ...


3

I will describe 2 possibilities, the first is more easy and elegant but works only from QGIS 3.10. The second also works for older versions. Possibility 1: Use the geometry generator for labels. It is new since version 3.10 but very powerful. The expression will be convex_hull(collect ($geometry, "id")) this will build a convex hull around buildings with ...


0

It looks like I managed with it. Since our layers are merged, to make sure, that all of them are moved we must select from the main toolbar the "Select All features" option. Afterward, our merged polygons should appear as yellow. If this is so, you can use advanced digitalizing tools without a problem.


6

Tested on QGIS 2.18 and QGIS 3.4 I can suggest using a "Virtual Layer" through Layer > Add Layer > Add/Edit Virtual Layer... Let's assume there is a polyline layer called "polylines" (blue lines). With the following Query, it is possible to create a point at the end of each line. SELECT st_endpoint(geometry), * FROM "polylines" The output point ...


2

Tested on QGIS 2.18 and QGIS 3.4 I can suggest using a "Virtual Layer" through Layer > Add Layer > Add/Edit Virtual Layer... I have tried to recreate your example. There are two overlapping polygon layers called "layer"(yellow) and "grid_layer"(blue) accordingly, see image below. All features of "grid_layer" squares have 10.000 m² area. With the ...


0

A simple solution could be: Using Vector ‣ Geometry Tools ‣ Extract verticas. Afterwards simply delete all points but thoose which were generated at the end and beginning.


-2

There are two types of coordinates system: Geographic coordinate system Projected coordinate system What you need is a coordinate system in meters, which means a projected coordinate system. Also, you don't want a local coordinate system but a global one. So I suggest you to use a global coordinate system in meters. An equivalent is better (it conserves ...


8

In the Processing Toolbox use the Extract Specific Vertices tool, for the Vertex indices use 0 for the first vertex and -1 for the last vertex. Which one you need will depend on the direction of the line. EDIT: Apologies, I didn't read your question properly, you said automatically. If it's just for display purposed you could use a geometry generator ...


0

You need an INSTEAD OF trigger to handle / ignore length attribute.


0

As seen in DATUM Enumeration - Blue Marble Geographics: The following is a list of the datums built in to Global Mapper and the transformation parameters used to convert those datums. All parameters are given with respect to transforming from the given datum to WGS-84. Those parameters correspond with NAD27 to WGS 84 (18) datum transformation. ...


3

I've changed names of variables to be more eligible/legible for other readers. def getPointFromFeature(self, featureID, layer): expr = QgsExpression("Id = '"+featureID+"'") selection = self.selectionByExpr(layer, expr) geom = selection[0].geometry() # removed asPoint() return geom def getDistances(self, point_geom, river_geom): d = ...


2

I guess the following solution will solve your problem. It uses the QGIS 3.x Atlas Export feature to build terrain profiles together with the corresponding maps: There's no need to install any Plugin, because HTML/Javascript (Highcharts) will generate the terrain profiles. Python GDAL is reponsible for fetching the elevation data from the DEM file. I ...


1

if you look at your attribute table, you will see if the two polygons were actually merged. if they are merged there will only be one feature, if not, you will see multiple features. If you want to move them all, select them all before using the move feature tool. If you actually want to merge them before moving, then select them all and use the merge ...


2

I figured it out - under the Advanced Digitizing Tools, I activated the "Delete Part" tool and then clicked on the sliver. All fixed!


Top 50 recent answers are included