All Questions
161,661
questions
0
votes
1
answer
30
views
Raster polygonization and number of classes
I created 4 height classes on a raster:
( "diff_2019-2016@1" <= 0) *0 +
("diff_2019-2016@1" > 0 AND "diff_2019-2016@1" <= 0.5) *0.5 +
( "diff_2019-...
0
votes
0
answers
32
views
Client interactive web map [duplicate]
i am new to gi’s and i have been using your app for a couple of weeks. I want to ask how i can make a webmap were the client can add points and details about them. I have used the qgis2web plugin ...
0
votes
0
answers
16
views
ST_ValueCount for multiple bands
Given a multi band raster, I would like to summarise the distinct combinations of values found, in a manner similar to ST_ValueCount, but across all the bands rather than a single band at a time.
...
1
vote
0
answers
41
views
Extracting Latitude and Longitude Coordinates from PBF Files
I aim to retrieve and handle PBF files sourced from an online map. The provided link exemplifies a PBF file:
https://tiles.raah.ir/tiles/low/16/42122/25807.pbf
Upon loading this file into QGIS, the ...
1
vote
0
answers
40
views
Separating intersecting lines in QGIS
I have a project in QGIS where multiple cables follow different paths using specific points as vertices, and sometimes the cables end up crossing over each other.
I would like to perform a ...
0
votes
0
answers
16
views
How geolocalisate a new image with a polygon (JSON file)
I am new using QGIS. I got an Sentinel-1 image from Copernicus I downloaded it as TIFF. I did Python code to detect water so now l have a new plot. I would like this plot gets the same coordinate than ...
0
votes
0
answers
13
views
Some metadata doesn't show up in manually created .shp.xml in QGIS?
I'm creating shapefiles in Python using geopandas from processed climatological information. This a simplified version of the code I'm using to generate the shapefiles:
import geopandas as gpd
from ...
0
votes
0
answers
25
views
Precautions that should be taken to calculate the difference between two digital terrain models
I use a digital terrain model.
I want to calculate the difference between the two rasters,
like this with the raster calculator:
"raster1@1" - "raster2@1"
However, I realize that ...
0
votes
0
answers
7
views
Values in second columns of GPValueTable Parameter reset after tool is ran
I am trying to create a .pyt python toolbox tool in arcGIS pro and the issue I'm running into is that Values in second columns of GPValueTable Parameter reset after tool is ran.
The parameter created ...
1
vote
0
answers
43
views
How to merge sample points that are within a certain distance of each other and calculate mean attributes values for merged points in QGIS?
I have a data set like the following in .csv:
sample
latitude
longitude
variable1
variable2
variable3
A
37.18
-115.85
1
0
0
B
37.18
-115.85
1
0
0
C
37.18
-115.85
1
0
0
D
39.44
-117.66
0
1
0
E
39....
0
votes
1
answer
31
views
OS Error CURRENT using ArcPy in ArcGIS Pro
I am relatively new in Python.
I have a project that I need to adapt to work with ArcGIS Pro. This code runs in FME PythonCaller using Python 2 working with ArcMap. Now I need to migrate to Python 3 ...
1
vote
0
answers
20
views
Direction of lines in relation to coastline
In ArcMap 10.7, I would wish to calculate an orientation of some linear off shore features in relation to the coast line. I don't really want to create a classic wind/rose diagram in relation to North/...
-1
votes
0
answers
24
views
Looking for a DEM file for Europe or Italy
I am looking for a DEM of Italy (or at least of Europe). I already tried to search in Copernicus website as well as Italian national data catalogue, but I didn't find anything.
I also looked at the &...
5
votes
1
answer
140
views
Using Conditional branch algorithm in QGIS Graphical Modeller
I have a question regarding using the Conditional Branch algorithm in the Graphical Model Builder.
I am building a rather complicated model with many branches but not every branch needs to be used ...
1
vote
0
answers
26
views
Using data points lying within certain isochrone to model walking routes in QGIS
I am trying to model the routes students take to university on foot using QGIS. I have the student data in point form, but this is the student data for the whole city. I also have an isochrone which ...
0
votes
1
answer
38
views
Using Regular Expression with Select by Attribute in ArcPy
I want to select featurs from a Feature Class by using "arcpy.management.SelectLayerByAttribute" with a built-in Regular Expression.
The expression should follow this scheme: Select all ...
0
votes
0
answers
30
views
Saving a GeoJSON file with UUID [closed]
I would like to save a .geojson file with a geometry information as well as uuid column.
The .geojson file is saved successfully when it has no uid column but when I add a uid column i get an error (...
2
votes
0
answers
68
views
Change layers names in existing layout legend only
I am currently working on a QGIS plugin with QGIS version 3.34.0-Prizren and Python version 3.9.5.
I have a QGIS project containing several layers (the sources are tables from a Postgre database) ...
0
votes
0
answers
18
views
How to merge two KML files of different sizes (one is continent scale and other is small catchment) and then convert it to shapefile
I am using geological map of South America (source: https://www2.sgc.gov.co/MGC/Paginas/gmsa_google_earth.aspx) to extract the geological map for a small catchment. Initially I converted the KMZ file ...
2
votes
0
answers
20
views
Repair MapInfo Tabfile
QGIS has a tool called Repair Shapefile
Does anything like that exist anywhere for MapInfo tab files?
I.e if either your .dat or .map or .id file isn't playing nice, is there a repair option specific ...
3
votes
1
answer
28
views
Simple OSM Raw Query Filter
I have a simple raw OSM query that I am using in QGIS model designer (Build Raw Query):
[out:xml] [timeout:25];
(
node["highway"]( {{bbox}});
node["building"]( {{bbox}})...
2
votes
1
answer
75
views
Generating offset line from MultiLineString in QGIS
I have a MULTILINESTRING in my CSV file, and I want to generate a copy of it offset to the right by a few meters. I've run Single Sided Buffer, and Offset Lines, and neither of them seem to generate ...
0
votes
1
answer
40
views
Setting the background color when plotting in GeoPandas
I am wondering if there is an easy way in GeoPandas to change the background color of a plotted map. Here is my code; I can't figure out how to change the white background color to any other color. ...
0
votes
0
answers
10
views
Converting HSV raster to RGB in R
Problem:
I want to convert a Hue, Saturation, Value (HSV) raster to the RGB color space. I have already successfully converted from RGB to HSV, but I'm having trouble with the reverse.
I'm using the ...
-1
votes
0
answers
29
views
How to obtain county parcel layer [closed]
My organization is constantly looking at different counties' GIS parcel data to keep track of owners, purchases, etc.
Is it possible to copy this layer using ArcGIS API for JavaScript or some other ...
1
vote
0
answers
11
views
OpenDataCube / cube-in-a-box Installation Problem using PowerShell, Windows 10 [closed]
435.8 ERROR: Package 'deafrica-tools-2.3.2' requires a different Python: 3.8.10 not in '<3.12,>=3.9'
failed to solve: process "/bin/sh -c cd /tmp && git clone --depth 1 https://...
0
votes
0
answers
26
views
Do Digital numbers come in units? If so, where do I look for them? [closed]
I recently did a Ratio image with Iron Oxide as an index and was then asked what units the Digital Number values are in the Ratio Image. I'm not sure where to look. Is it the LUT (Look up table)? the ...
0
votes
0
answers
18
views
How to add to Mapbox GL JS ArcGIS Map Service REST API
I am working on adding an ArcGIS Map Service to an automatically built map by QGIS2Web plugin for the web using MapBox GL JS. I would like to find a resource or snippet that actually works for ...
0
votes
0
answers
38
views
Counting coins in polygon not working in QGIS on Mac [closed]
I tried using counting in the polygon option and it is counting but the results are wrong. The files are good, since I am using it for some Uni exercises and other colleagues do not have that problem.
...
0
votes
0
answers
14
views
Creating QTiles in QGIS
I am trying to follow the directions to create a base map with QTiles in QGIS. Here is the link with instructions for reference:
<https://astuntechnology.github.io/qgis-tutorials/html/en/docs/...
2
votes
2
answers
42
views
Make QGIS report use raster rather than vector images in its PDF export
QGIS reports appear to produce vector images for displayed maps when exporting to a PDF document. This is presumably an equivalent of exporting an atlas or single map to a PDF. This provides good ...
0
votes
0
answers
11
views
Address validation for ESRI World Geocoder in Survey123 Connect
I use a few expressions to validate addresses entered by citizens using our custom geocoder and a handful of pulldata functions. I need the same functionality to work with the ESRI World Geocoder, but ...
0
votes
0
answers
26
views
QGIS 3.22.10: Automatic increment ID with Year from Date Field in PostGIS
In QGIS 3.22.10, I'm working with a PostGIS database layer containing two columns: a Art_ID column (not the primary key) and a date column in the format (yyyy-mm-dd). I need to generate an ID for each ...
0
votes
0
answers
19
views
Display url thumbnail generated by GEE in python
I am trying to generate a thumbnail image from GEE using python, but when I try to do so, it only returns the object and not the image. I am following the code here.
Here is the relevant code.
import ...
1
vote
1
answer
40
views
Highlight polygon in Leaflet?
How can I hide(opacity) all polygons, and only show the one with id 73
[click example code]: https://jsfiddle.net/etrv684u/1/
HTML:
<div id="map"></div>
<button id="...
0
votes
1
answer
24
views
ArcGIS Pro will not display symbols on map
Using ArcGIS Pro with an imported data file of state plane UTMS. The file imports nicely, but I can not get symbols to display. I have applied simple black circle symbols, but they do not display. ...
0
votes
1
answer
10
views
Using REST API of RUIAN dataset with CORS disabled
I have a problem with using the RUAIN REST API from Čúzk in the Czech Republic.
RUIAN description link.
The problem is the inability to use querying on web pages, when the problem is the CORS setting ...
-1
votes
0
answers
25
views
I have a raster file of one land use cover and shapefile contains number of polygons [closed]
I have a raster file of one land use cover and shapefile contains number of polygons. Now I want to extract each polygon of landuse cover and save separate polygon files in R
library(raster)
library(...
0
votes
0
answers
12
views
Preserve categorical raster values when converting to spatial polygons dataframe in R [closed]
I have been sifting through previous questions and I do not think this has been asked. I am working with a binary raster of habitat patches for a species. For each patch, I would like to calculate ...
1
vote
2
answers
85
views
QGIS: Prevent numbers and their units being split across rows [closed]
The correct convention for displaying measurements in text is to have a space between the number and the unit such as 10 m. Personally I don't like it but its what I have to work with. When presenting ...
2
votes
0
answers
45
views
Creating mutually exclusive group using PyQGIS
When I create a group of raster layers in QGIS GUI I can toggle a checkbox to determine if this group will be mutually exclusive or not.
When I create the same group using the Python's API like:
from ...
1
vote
0
answers
17
views
GeoServer log in issue by localhost link
We have upgraded GeoServer version to 2.23.2; Tomcat 9.0.60 and Java 11.0.20
The server is externally facing. After the upgrade GeoServer application can be accessed by an external link from another ...
0
votes
0
answers
21
views
My while loop in ArcMap using ArcPy is not giving what I want
I have revised my code I am trying to get cumulative catchments from a table in arcmap using a table, I am using four fields namely CatName(cid), Area(Load) and DS(Downstream Node) , I want the ...
2
votes
1
answer
95
views
Creating GeoJSON from GeoDataFrame with integer feature ids
I have an example GeoDataFrame:
import geopandas as gpd
import shapely.geometry
s = gpd.GeoSeries([shapely.geometry.Point([10,60])])
gdf = gpd.GeoDataFrame.from_dict(dict(geometry=s, col0=['val0']))
...
1
vote
1
answer
24
views
Select by Location on Virtual layer works but not on MS SQL Server layer
I have point data within an MS SQL Server.
I can add it as a layer to QGIS by creating a DB connection under MS SQL Server and double clicking the table listed.
I also have a polygon layer again added ...
0
votes
0
answers
61
views
Calculating from GPS time duration of a linestringM within a polygon
I am analyzing trajectories from GPS points, including timestamp (Linestring M).
I need to clip trajectories that cross polygons, and calculate time spent within those polygons.
However, I have 2 ...
-1
votes
0
answers
17
views
Road with more lines needs to represented as thick and with less lines need to be thin [closed]
I have a bus route map that I want to represent as thick and thin lines based on number of routes on a road stretch. Line thickness is controlled by number of bus routes along road, for example with 1 ...
7
votes
2
answers
146
views
Defining raster extent to limit labeled area in QGIS
I have a road layer and "NAME" field. I activated labels, but I don't want to show the labels outside the raster in map canvas (not layout). The raster area is my study area (you can see a ...
0
votes
1
answer
29
views
Can't visualize ImageCollection using Map.addLayer()
I was trying to retrieving chlorophyll-a levels using Landsat9. After processed it using this function :
//Clorophyll-a Levels
// Coefficients
var a0= 0.341
var a1= -3.001
var a2= 2.811
var a3= -...
0
votes
0
answers
37
views
QGIS-Merging raster to get altitude lines
I am still a beginner when it comes to the functions in QGIS. However, I would like to create my own topography map and my research has shown that this is easy to do using raster data. I have already ...