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
38 views

Filter shapefiles - keeping inside parts only

I'm quite new to GIS so sorry if this is a daft question - is it possible to filter out non-overlapping parts of a shapefile? I have a boundary shapefile which I would like to cover with small areas ...
user avatar
4 votes
1 answer
43 views

Feature without geometry in Geopackage layer

I am working on a QGIS project where I have a layer called "Developments" within a Geopackage document. The layer is a polygon layer where I add all renewable energy projects within my ...
user avatar
0 votes
0 answers
13 views

Bringing in another layer in the Geometry Expression coding

Im looking to create a output triangle using the Geometry by expression tool. I have two layers, layer 1 is a viewpoint and central location and layer two is a collection of locations. I want make a ...
user avatar
  • 33
0 votes
0 answers
26 views

Calculate angle between two furthest points

I need a way of automating this whole process rather than measuring the angle manually. I want to calculate the largest viewing angle from each of the viewpoints (red dots) in relation to the ...
user avatar
  • 33
0 votes
0 answers
32 views

Postgis 3.0: How to convert liblwgeom to librttopo? [closed]

We want to upgrade from PostGIS 2.x to PostGIS 3.x and take over a self-written library (.so). This library was compiled with liblwgeom of PostGIS 2.x. liblwgeom seems to be not part of PostGIS 3.x ...
user avatar
  • 177
3 votes
1 answer
26 views

How can I get the closest linestring in my database to the linestring drawn by some user, following a path?

I have to take a geometry drawn by an user and return the geometry in my database that represents the drawing. I tried in PostGIS In my database I have a column 'way' with the geometry that I want to ...
user avatar
1 vote
0 answers
34 views

Creating random points along polylines using ArcPy

I'm trying to draw random points along the polylines. The polyline layer and the number of points to create are given as input. My problem is that the points are being created for every single line ...
user avatar
  • 11
1 vote
0 answers
21 views

How to identify upper left point from column of points? [duplicate]

I have a column that contains points (all they make one tile) and I need to extract the upper left point based on point coordinates. Is there any built-in function in PostGIS to find? Otherwise, I am ...
user avatar
2 votes
1 answer
26 views

Preserving None values in GeoPandas when dissolving (by="id", aggfunc="first", as_index=False)

If I dissolve two geometries with the same id and tell to aggregate the other attributes from the first geometry, I get the attributes values from the second geometry because the first is None. ...
user avatar
1 vote
0 answers
17 views

Read CSV file with geotools library Java

I found in the geotools documentation this code for reading CSV file and extract geometry seems not working for me even with the data test they have in the web site. feature.getDefaultGeometryProperty(...
user avatar
0 votes
0 answers
49 views

Writing from file geodatabase to SQL Server 2017 instance using ogr2ogr

I'm attempting to import a large feature class from a file geodatabase to my SQL Server 2017 instance using GDAL. I have tried many different options on the ogr2ogr command and nothing seems to work. ...
user avatar
  • 437
2 votes
0 answers
34 views

Languages to represent ellipse geometry (WKB/WKT)

I am new to the idea of representing vector geometries in a text markup language. I am looking into different representations for geometries consisting of smooth curves and three dimensional objects, ...
user avatar
  • 21
2 votes
1 answer
83 views

How use QGIS Geometry Checker classes in python?

I write myself plugin for QGIS with Python3 API. For my plugin logic I need write my self geometry checker because of difficult logic and different actions when I find some of geometry errors. In ...
user avatar
1 vote
1 answer
34 views

Script to extract start and end of polyline coordinates

I am writing a plugin and I need to extract the x1,y1,x2,y2 coordinates for a chosen Polyline. The GUI loads all the available layers, the user selects the layer and the GUI is populated with the ...
user avatar
  • 127
3 votes
1 answer
52 views

Read xml with CurvePolygon with Geopandas / Fiona

I am trying to use the Dutch BGT Api via https://api.pdok.nl/lv/bgt/download/v1_0/ui/ with the following code: # Native import requests from requests.structures import CaseInsensitiveDict import json ...
user avatar
  • 115
2 votes
1 answer
36 views

Iterating over each pair of coordinates in Multipart geometry using Shapely

This question is related to Access each (x, y) within Multipart gdf.geometry.interiors. With a MultiPart geometry.interiors: from shapely.geometry import Polygon exterior = [(2, 8), (7, 8), (7, 3), (...
user avatar
  • 111
0 votes
0 answers
22 views

Construct ST_GEOMETRY rectangle from two vertices: lower-left and upper-right

Oracle 18c SDE.ST_GEOMETRY 10.7.1 EGDB: I have two vertices of a rectangle: Lower-left: 10,10 Upper-right: 100,100 I want to construct a rectangle polygon from those two vertices using ST_GEOMETRY ...
user avatar
  • 798
0 votes
0 answers
28 views

Receiving Infinity in LineString using shapely and pyproj

I am try get linestring so I can measure the distance and time. Here in this linestring I am getting nan distance and time. data: path = [[29.87819, 121.54944999999998], [24.23111845, 119....
user avatar
  • 1
-1 votes
1 answer
27 views

Transferring XY coordinates of point from one feature class to point in second feature class using ArcPy

I have a small list of points, testingPoints, that need their geometry (x and y points) transferred to points within a larger dataset, baseCentroids. The datasets share a common field POINTID to help ...
user avatar
0 votes
0 answers
44 views

Unsupported geometry type 'Unkown type' in Layer - Unable to load project in QGIS

This is a seemingly simple issue but I can't seem to fix it. When I load my project in QGIS, I get an error message that says: "Unsupported geometry type 'Unknown type' in Layer ''. When I click &...
user avatar
  • 79
4 votes
1 answer
109 views

Convert bytea to geometry column with PostGIS

I am trying to create a geometry column from bytea. I imported OSM data using ogr2ogr using the command ogr2ogr -f PostgreSQL -nln bahamas_multipolygon PG:"dbname=openstreetmap user=postgres ...
user avatar
2 votes
0 answers
21 views

Style rule based on feature adjacent edges and ignore vertices

I have a set of square tiles which I want to show in a different colour when the tile to the north, south east & west are present in the same way as below with the links I want in black. I have ...
user avatar
  • 21
0 votes
0 answers
11 views

Setting to the same ViewPoint yields different result ESRI C#

I'm trying to implement some zoom-in/zoom-out feature in my program, for this I'm using two ViewPoints with WGS84 projection, one is default and other one is current, when I return to the default one ...
user avatar
  • 101
0 votes
0 answers
24 views

QGIS: unable to get geometry from WFS

I try to add bicycle lanes (TRASY_ROWEROWE) from a WFS layer from this server: https://wfs.um.warszawa.pl/serwis. After connecting and loading, the layer appears only as an attribute table, but with ...
user avatar
  • 1
0 votes
0 answers
50 views

How to smooth the Linestring after adding additional point?

Actually I am tracking vessel, where I am already having path, and current position. Now the trouble is, obviously the vessel will not be on same coordinates as provided in the path.So I want to ...
user avatar
  • 1
1 vote
1 answer
34 views

Set point geometry of a list of points in PYQGIS

I want to create a temporary point layer from a list of points. The point list is: arr_error = [[547162.6286000004, 187063.95659999922]] vl = QgsVectorLayer('Point', 'Error_point', 'memory') pr = ...
user avatar
0 votes
1 answer
61 views

Clip lower value polygons with larger value polygons in shapefile

I have a dataset of circular polygons that correspond to tree crowns. Many polygons overlap with each other, and some are even completely covered by larger polygons (or larger polygons covered by many ...
user avatar
1 vote
0 answers
37 views

Issues splitting a polygon layer by line

So we have a problem, and we can't a find solution. if feat_L.geometry().intersects(feat_P.geometry()): success, splits, topo = feat_P.geometry().splitGeometry(feat_L.geometry().asPolyline(), True)...
user avatar
11 votes
4 answers
544 views

Deleting small holes in polygons specifying the size with PostGIS

I have a big MultiPolygon layer in which I want to delete holes smaller than 100m². QGIS do it well and fast with the algorithm "native:deleteholes", but I need to use it as part of a SQL ...
user avatar
  • 634
0 votes
0 answers
24 views

Finding Maximal lines from multiple parallel lines

I have a lot of parallel lines in a list, and I am looking for a way to get the maximal lines that include individual lines. For example, let's say I have 10 lines. l1 = LineString(((0, 0), (8, 8))) ...
user avatar
  • 101
0 votes
0 answers
21 views

Geometry error with QGIS

I create rectangles from the tool "Rectangles, ovals, diamonds" on a layer (shapefile) of type point that I created before. Because I need to create rectangle with specifics dimensions then ...
user avatar
0 votes
0 answers
26 views

Getting an geometry error while creating a table in database from Python using SQLAlchemy

I am trying to create a table in PostgreSQL from Python using SQLAlchemy. The data is an GeoPandas data frame that has the below dtypes, when I am trying to create an table using the below code, it ...
user avatar
  • 11
0 votes
0 answers
23 views

Making line thickness based on the sum of overlapping lines in QGIS [duplicate]

In QGIS 3.22.2 I have used the ORS distribution calculation tool to work out the number of vehicles that go from one origin to multiple destinations. I am trying to represent this number as a line ...
user avatar
  • 1
3 votes
1 answer
62 views

Finding change between two sets of polygon data in QGIS

Say that I have two sets of polygon data: one depicting world borders in 1990 one depicting world borders in 2020. I have ensured that both data sets are under the same projection. Both sets of data ...
user avatar
  • 131
3 votes
1 answer
141 views

"Has no attribute geometry" error when creating polygon with Shapely

In Shapely I am getting an error: "has no attribute geometry" when I try to create a Polygon from a list with QgsPoint: from shapely.geometry import Polygon points = [<QgsPoint: PointZ ...
user avatar
  • 79
0 votes
0 answers
27 views

Fix geometry to run pgr_createTopology which is very slow and fails

I'm trying to create topology in PostgreSQL using pgr_createTopology but it's very slow and fails after processing 4000 nodes. There are 300,000 nodes. I tried the same query with another road table (...
user avatar
2 votes
0 answers
37 views

How to make a projection of a linear layer on an another layer

I'd like to know how to make a projection of a complex linear layer on an another layer, overlapping their geometries perfectly and considering the extremities of lyr_1; using geoprocessing of QGIS. ...
user avatar
  • 661
1 vote
1 answer
54 views

OpenLayers GeometryCollection styling issue

With some help, I am able to draw some custom shape on my OpenLayers project with the following code. geometryFunction = function (coordinates, geometry) { const center = coordinates[0]; ...
user avatar
0 votes
3 answers
195 views

Remove the intersecting parts in a set of polygons [closed]

I have a set of (~200k) polygons showing deforestation in the Amazon. Each polygon is associated with a date when the deforestation happened. Some of them are intersecting with each other, ie. one ...
user avatar
  • 636
0 votes
1 answer
55 views

Forced to work with a Geometry with too many edges in GEE

I want to perform an unsupervised classification on a feature collection that has many small geometries. I know it will create problems for GEE to work on such many small geometries but I cannot find ...
user avatar
  • 451
1 vote
0 answers
23 views

How to assign point feature values to line features?

I have two datasets, one being a point feature dataset and the other being a line feature dataset. Each point feature contains a traffic count value that I want to assign to the corresponding line ...
user avatar
0 votes
0 answers
13 views

Point features do not emerge after applying st_intersection on two line features

The aim is to create a point at each intersection of roads via st_intersection. Before applying the function st_intersection, I dissolve the line features based on the road number (via ref). The ...
user avatar
3 votes
1 answer
78 views

Add angle of point from road as seen from left to right?

I have a layer of trees (purple points) that I want to add a column that equals the order of trees by angle if seen from left to right. For example, with the property with three trees, you would stand ...
user avatar
0 votes
0 answers
16 views

SQL Server WKT crosses antimeridian - sqlgeography looks normal, sqlgeometry does not

I have a WKT that crosses the antimeridian and is stored in SQL Server as a geometry. But when I read it back out it is stretched/skewed. If I take the WKT from the geometry, and create a geography ...
user avatar
3 votes
1 answer
97 views

Converting multipart polygon geometry with true curves to single parts loses true curves using ArcPy with ArcGIS Pro

I ran some test code below which creates four feature classes in a test geodatabase using ArcPy geometries in ArcGIS Pro 2.9.2: MultiPartPolyGeom has one multipart polygon with two parts (one a 3-...
user avatar
  • 63.8k
1 vote
0 answers
23 views

Removing glitches from edges of a polygon

Code: https://colab.research.google.com/drive/12gi6TDNLaYkz3qNkATryW_d-8QysH60L#scrollTo=xvNP-erJHlcP As you can see, there are glitches at each corner. And I would like to remove those glitches to ...
user avatar
1 vote
1 answer
47 views

Calculate MBR area, length and width with Python program in QGIS

I am trying to find MBR area, height, and width for polygon in QGIS. I have tried the below code. coordinate-system is geographic. As per my research for the correct value, I need some QgsPointXY but ...
user avatar
1 vote
0 answers
48 views

Creating a Point with SRID - MariaDB

I have a table containing a longitude and latitude (as doubles) in MariaDB. What I'm trying to do is create a point with a specific SRID - 4326. The current way that I create a point is by using the ...
user avatar
0 votes
1 answer
43 views

Geo search MySQL table for rows that are within proximity

I have an sql table that has some data on retail locations with lat, long coordinates. My application queries the table to pull the data using python. Here's some sample data: table1 id name lat ...
user avatar
  • 345
1 vote
1 answer
52 views

Attribute rule works in Pro 2.9.2, but not in Pro 2.6.8

I have a calculation attribute rule that works in Pro 2.9.2 (in a 2.9.2 FGDB). It updates the M-values of the polyline’s geometry: function pythagoras(x1, y1, x2, y2) { return sqrt(pow(x2 - x1, 2) ...
user avatar
  • 798

1
2 3 4 5
34