Skip to main content

Questions tagged [geometry]

(1) abstract geometry; (2) storing geographic data in projected coordinates; (3) a generic ESRI term for vector features; a class for "geometry" objects.

Filter by
Sorted by
Tagged with
1 vote
1 answer
56 views

Summing equal geometries with identical columns in QGIS

I have two vector layers with line geometries which share column names. The one is a subset of the other, and even though they share the same columns, they differ in their values. I would now like to ...
i.i.k.'s user avatar
  • 1,753
0 votes
0 answers
38 views

Rough conversion in SQL for decimal degrees to square meters/meters

I'm dealing with a database (Teradata) that doesn't have any support for anything other than decimals/decimal degrees. As a result I can't use any of: ST_Area (can't get area in square meters) ...
Yndigo Dream's user avatar
2 votes
2 answers
55 views

Finding overlapping line geometries (including subsets) in QGIS

I have a vector file with ~4000 line geometries. Some of the lines are overlapping, or more precise, it seems, that some lines are subsets of the longer geometry. How can I find all overlapping lines ...
i.i.k.'s user avatar
  • 1,753
0 votes
1 answer
16 views

Sentinel-1 query throws error: Collection.geometry: Unable to perform this geometry operation. Please specify a non-zero error margin. (Error code: 3) [closed]

I am trying to pull Sentinel-1 data via GEE for my master thesis and have found the following code to simplify things: https://github.com/adugnag/gee_s1_ard/tree/main/python-api It works perfectly, ...
Manu's user avatar
  • 1
0 votes
0 answers
40 views

Connecting two lines based on their value in ArcGIS Pro

In ArcGIS Pro 3.3 I have a layer of non-continuous lines that I want to connect based on depth values. Each line has a depth field (e.g., 0.3, 0.5, 0.8). I need to connect each line to the next one ...
Itamar Kadosh's user avatar
0 votes
0 answers
24 views

QGIS 3.34 Calculate area in curved geometries

I want to calculate the cartesian area of a curved geometry, a circle, with a radius of 2500 m. First, I buffered a point with 2500 m radius and used the function "Convert to curved geometries&...
Kevin_S2021's user avatar
0 votes
0 answers
39 views

QGIS Cannot reopen GeoJSON file after saving

I've recently encountered an unexpected issue with QGIS. When creating and editing a new GeoJSON file (collecting polygons), everything goes smoothly until I try to save. Occasionally, I receive the ...
ReutKeller's user avatar
  • 2,169
0 votes
0 answers
16 views

Storing OSM relations correctly as geometry in BQ

I am looking at the best/efficient way to decompose OSM relations and store as geography, currently I am using: https://raw.githubusercontent.com/tyrasd/osmtogeojson/gh-pages/osmtogeojson.js to ...
ebad malik's user avatar
0 votes
1 answer
40 views

ST_GEOGFROMTEXT Multipolygons converted to Polygons in BigQuery

I've stumbled upon an intriguing issue while working with MultiPolygons in BigQuery. When utilizing the ST_GEOGFROMTEXT function to parse a MultiPolygon containing multiple polygons, the output ...
ebad malik's user avatar
0 votes
0 answers
18 views

Setting map extents in print composer using a polygon layer?

I have a group of data points that need to be encapsulated within different polygons. I have used the geometries by expression tool to generate a layer of these polygons. I'm trying to feed the ...
user243940's user avatar
0 votes
2 answers
66 views

How to clip multipart polygons in ArcGIS Pro using editing tools

I have numerous multipart polygons running along corridors that I am trying to "split" at intersections. The polygons may or may not be present at the intersections, but there are always ...
Barbarossa's user avatar
  • 5,807
3 votes
1 answer
94 views

Draw line and calculate distance from each no adjoining side polygons to perpendicular nearest side polygon

From a polygon geometry layer representing building boundaries, I show a screenshot: I would like to calculate, for each building polygon, the distance from each side of the polygon that has no ...
Ingrid Ingravida's user avatar
1 vote
0 answers
44 views

Defining filter of QgsMapLayerComboBox as layer without geometry with PyQGIS

How to define the filter of a QgsMapLayerComboBox as a layer without geometry with PyQGIS? Below I share examples of how to filter points, lines, polygons and raster layers. But layers without ...
Aloísio Ângelo's user avatar
5 votes
2 answers
248 views

Difference between datatypes GEOMETRY and GEOMETRY(GeometryZ, 32618) in PostGIS

I have just started working with PostGIS, Just curious which is the correct format to store 3D data in PostGIS, Although both are giving same results: CREATE TABLE buildings_3d ( id Int ...
Shoaib's user avatar
  • 85
1 vote
1 answer
38 views

Geometry still set as point when creating lines in QGIS Geometry Generator

I'm using QGIS to analyze coastal erosion and have come across an issue with geometry type. I have a vector layer of about 150 control points along the shoreline and used a geometry generator to ...
Aubree's user avatar
  • 11
1 vote
0 answers
19 views

Is there an established mapping from longitude-latitude to the face of a icosahedron?

Given a longitude and latitude, I’d like to map that to the face of an isocahedron projected onto the sphere (earth). The orientation of the isocahedron doesn’t matter so if there is a convenient or ...
gph's user avatar
  • 111
1 vote
0 answers
50 views

Dividing Voronoi polygons into sectors

I have a point dataset and I'm trying to create Voronoi polygons and then divide the polygons into three sectors of 120 degrees. I'm using QGIS so creating the Voronoi polygons is the easy part. I've ...
GMcS's user avatar
  • 11
0 votes
2 answers
125 views

Algorithm for point to polygon distance calculations in shapely

I want to calculate the distance from a point to a polygon. If I run point.distance(polygon) Will it: Search the points that compose the exterior boundary of the polygon, select the closest point ...
Sophie Kolston's user avatar
0 votes
1 answer
46 views

Getting geometry and only a few properties with a WFS request

I'm using a web feature service to get point features from Belgium with Python. Each point (monitoring wells location) contain several attributes of which only 2 are relevant for what I need. I also ...
stray_dog's user avatar
0 votes
0 answers
28 views

Creating two connected arcs

I am using a 2D mapping application and I want to create a shape like this on the map: where the red arc and blue arc would be two separate arcs that I need to create and connect them. Here is the ...
pfinferno's user avatar
  • 101
2 votes
1 answer
59 views

Changing geometry column data type in all tables of a schema

I have a database of almost 500 tables. For most of them, the type is set to 'GEOMETRY'. I need to switch the type to be POINT, LINE or POLYGON. Using this query : select f_table_name, ...
Abigail's user avatar
  • 81
0 votes
1 answer
59 views

Fill holes in polygon that does not connect with surroundings

I have created a vectorization from a raster of a sea model of Denmark as suggested here https://gis.stackexchange.com/a/478370/240539 using QGIS. I get this vectorization: I wish to fill the holes in ...
Lukas Eliassen's user avatar
0 votes
0 answers
47 views

Reading shapefiles: Can only read the geometry

I have a function which reads various shapefiles as follows: def read_gdf(file:str,crs:str,current_crs:str)->gpd.GeoDataFrame: collection = list(fiona.open(file,'r', encoding='iso-8859-1')...
bravopapa's user avatar
  • 485
3 votes
2 answers
151 views

How to extract the integer-based geometry type code from an OGR feature

Main question Using OGR in Python, how can I extract the integer-based geometry type code for a specific feature? I know how to do this when dealing with a whole layer. For example, reading a layer ...
Felipe D.'s user avatar
  • 2,699
0 votes
1 answer
54 views

Different area values for same polygon in ArcGIS Pro 3.2.2 vs QGIS 3.28.4

When I calculate the area of a polygon in QGIS using the area($geometry) function in the field calculator (and also when using the "add geometry attributes" function in the processing ...
Nostromo426's user avatar
0 votes
1 answer
40 views

How to discard midpoints or only get borders of polygon

I have a List of LatLng objects that I use to make a polygon to represent a road with a buffer, but sometimes exist returns as next image: shared typescript implementation: The points in this area ...
tracking Systems's user avatar
0 votes
0 answers
12 views

Adding an extra series to chart Google Earth Engine

I need to perform the same analysis for different geometry points and plot it. Actually I have the plot for each point and when I click on the map creates a chart for the point where I clicked it but ...
Paula Torres's user avatar
0 votes
1 answer
37 views

Add (only) geometries to table without geometries from other layer based on common field

I'm looking for a processing tool or virtual layer to do this: I have a table without geometries with lots of fields (mssql), including a cadastral reference. There is a database (with geometries) ...
E. P.'s user avatar
  • 1
0 votes
1 answer
45 views

Using gdal's python library to generate Esri JSON

I have the need/requirement to use Esri JSON to query some services. I noticed that there is a CreateGeometryFromEsriJson but I can't seem to figure out how to take the new geometry object and convert ...
JabberJabber's user avatar
1 vote
1 answer
52 views

Generate points along geometry and avoid polylines

I am trying to generate preliminary sign poles location with the QGIS function points along geometry. I was able to generate points in respect of distance requirements. I would like to know if there ...
sdl24's user avatar
  • 11
0 votes
0 answers
16 views

Can I use GeoSPARQL without importing the ontology

I am building my ontology and i defined the data property :hasGeometry in my ontology and mapped it to geom column in the database. I didn't import the GeoSPARQL ontology. Can I in this case use ...
BHH's user avatar
  • 21
0 votes
0 answers
26 views

How to create a field with a list of neighboring residential lots in QGIS?

I need to create a field with a list containing the 'name' information of the geometries that intersect each of the existing geometries. They are residential lots, and I need to list the adjacent ones....
Victor Diniz's user avatar
0 votes
0 answers
59 views

QGIS geometry definition x field y field drop down menu not working?

I am trying to create contours with QGIS. This is my first time and I'm following this video: https://www.youtube.com/watch?v=L4Rp318vM1Y&ab_channel=Geocarto I got to 3:05 where I am to put the x ...
FirstTimerHelp's user avatar
2 votes
1 answer
91 views

Iterating over the features of a vector layor then performing zonal statistics algorithm on each feature in PyQGIS

I composed this script in PyQGIS to perform the zonal statistics on a vector layer as for all its features at once, it works perfectly, when the script is finished, I inspected the attribute table and ...
Khaled's user avatar
  • 287
1 vote
0 answers
63 views

Removing the split between merged polygon in QGIS

I merged two polygons within one shapefile and then aligned all the vertices so that they were adjacent, but how do I remove the former edges that bisect the polygon so that the geometry is continuous?...
MapDeath's user avatar
  • 341
1 vote
0 answers
74 views

Converting Leaflet polygon to GeoJSON?

I have the following piece of code of my Leaflet application (Typescript): getPolygonMarker(): GeoJSON { let itemShape: any = [ wktToGeoJSON(item['contour'],) ]; const p = new ...
smartmouse's user avatar
0 votes
1 answer
47 views

Query polygon layer by geometry size

This is something I know I can do with ArcGIS but I don't know how to perform on QGIS. I have a layer containing multiple polygons of size x. I want to query the layer to remove every polygon of size ...
Char's user avatar
  • 1
1 vote
0 answers
35 views

How to write GeoSPARQL query when hexadecimal representation of a binary encoded geometry

I am trying to write a GeoSPARQL using the geometry column of a layer imported from QGIS to PostGIS. The format of the geometry column is hexadecimal representation of a binary. When I try to use geo:...
BHH's user avatar
  • 21
1 vote
1 answer
74 views

Importing vector layers where geometry is WKT in PostGIS

I am trying to import the layers in QGIS to PostGIS. However, I want the geometry imported to be WKT and not WKB. How can I do that?
BHH's user avatar
  • 21
3 votes
1 answer
88 views

Display point with heighest value in group of points

I have a point layer with some points to be aggregated by a field named "NumeroNom" (only a substring of it) and I want to display only the point with the highest value of another field ...
dmjf08's user avatar
  • 1,293
1 vote
0 answers
57 views

How to update the Z value using an UpdateCursor

I'm trying to update the Z value using UpdateCursor, the problem is the update is not working. import arcpy from collections import defaultdict import random from statistics import StatisticsError, ...
sam's user avatar
  • 11
0 votes
0 answers
46 views

How I can know if a point is inside of polygon from Android using Java

I have an app that use osmdroid and previously I make a polygon that is represented as array of points latlng. I would like know if a point is inside of my polygon from Java Android. Any option for ...
carlos vazquez's user avatar
0 votes
2 answers
78 views

Segment lines by given divider

I a trying to segment lines with specific values that are stored in a field. For example, I need my line 1 which is ~84m long, to be segmented into two segment that are 31m and 53m long. I have a ...
basile's user avatar
  • 69
0 votes
0 answers
59 views

Convert WKT varchar(max) representation in SQL Server to geometry in QGIS

I have a varchar(max) column in a SQL Server table that contains WKT that I want to display in QGIS. I can't change the database, so can this be rendered as polygons in QGIS? I have seen this thread ...
Feargal Hogan's user avatar
0 votes
2 answers
62 views

GEE Error: .setGeometry is not a function

I am trying to replace the geometry of a feature with another geometry: var new_feature = old_feature.setGeometry(g); //g is a geometry When I get : "old_feature.setGeometry is not a function&...
Sina NAKHOSTIN's user avatar
2 votes
1 answer
47 views

GEE Classification Error Multiple Geometry types

I came to the issue of Out of Memory Error when I tried to do a supervised classification of an image using a shapefile polygons as underlying featureCollection in GEE. It turned out that some of the ...
Sina NAKHOSTIN's user avatar
0 votes
0 answers
25 views

GeoServer WFS does not find a point with mixed geometry

I created a layer with mixed geometry. This layer contains ring and point geometry. When I click on the ring geometry, it returns object data, but if I click on the center point, there is no data. ...
Vladimir's user avatar
0 votes
1 answer
57 views

Why the buffer geometry column in the GeoDataFrame is in point form although it's actually in polygon form?

I wanted to create a 1.5km buffer for each geocoded point. Here's the screenshot of the geocoded points dataframe. So I overwrote the geometry column using the code below: shopping_centres['geom'] = ...
mfirdaus_96's user avatar
2 votes
1 answer
140 views

How to identify holes of missing geometry enclosed within a polygon in QGIS?

I want to locate or highlight all the holes (invalid interior rings that do not connect at all vertices and edges) and redundant geometry in a polygon shapefile in QGIS so that I can go back and ...
MapDeath's user avatar
  • 341
3 votes
0 answers
110 views

FME PostGIS reader results in a data set with no geometries

Using FME(R) 2023.0.0.1 [build:23288] (the same behaviour occurs on 2023.1.1.1 [build:23636]) at the time of writing, I'm facing a severe bug(?) with a PostGIS reader. Indeed, when connecting to a ...
swiss_knight's user avatar
  • 10.5k

1
2 3 4 5
38