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
0 votes
0 answers
7 views

Mapping Post Codes from form records Survey123

I'm a student with little experience in ArcGIS generally and used Survey123 to create a questionnaire and collect responses for my Geography Coursework. I accidentally published the survey with the ...
Archie's user avatar
  • 1
0 votes
0 answers
16 views

How to fix the error in GML: non-planar polygon distance

I have validated the GML data in the CityDoctor. It found the error "GE_P_NON_PLANAR_POLYGON_DISTANCE_PLANE" in nearly all of the buildings. Is there a short way to fix such an error?
Gülce's user avatar
  • 13
3 votes
1 answer
85 views

From Geodataframe to PostGIS

I have a geodataframe which I am trying to save to a postgis database. I have already created a connection to postgis in pgAdmin (username, password, localhost and table) from geoalchemy2 import ...
bravopapa's user avatar
  • 409
-1 votes
0 answers
13 views

TypeScript packages that can help validate a geometry object before saving in MySQL database [closed]

Currently, I use the booleanValid function from turf to validate a geometry object before inserting it into the database. Upon testing, I found scenarios where it doesn't correctly check if a loop is ...
Karim Fayed's user avatar
6 votes
5 answers
418 views

Finding overlapping polygons within the same layer in QGIS

I have a polygon layer and want to check if there are some polygons overlapping within the same layer. How can I do this? In ArcGIS, I could run the Intersect tool only by adding the layer I want to ...
Motti's user avatar
  • 414
0 votes
0 answers
20 views

Error in projecting a shapefile from CRS of ArcMap to a Proj4 string

I am trying to export the outputs of the National Water Model (https://github.com/NOAA-Big-Data-Program/bdp-data-docs/blob/main/nwm/README.md) inside of a basin using Python. With this code I called ...
ssaa's user avatar
  • 1
1 vote
0 answers
30 views

ST_COVEREDBY passes using geometry but fails with geography

I have a table of points and a table of polygons in PostgreSQL 11.18 and PostGIS 2.4.4. Both use Geography SRS 4326. CREATE TABLE my_points ( id integer generated by default as identity, geom ...
narmaps's user avatar
  • 665
1 vote
1 answer
45 views

Reading single feature as dict into GeoDataFrame with GeoPandas

I have a Leaflet map where a user can select a feature and be able to download some data for that feature. I'm getting the object like this to pass to Python: data = { "type": "...
MKF's user avatar
  • 531
0 votes
1 answer
67 views

Read GeoJSON object in a CSV file column and transform it to geometry

I have a column ('geo_shape') that contains GeoJSON object type of linestring geometry and, so far, I didn't manage to read and transform it to a GeoPandas/shapefile type of geometry. Here is a way ...
SKSLH's user avatar
  • 1
4 votes
1 answer
83 views

PostGIS: Convert geometry type from MultiLineString back to LineString

I am working with a PostGIS database where I want to alter the geometry type from MultiLineString to LineString. My table used to be a LineString, so I know that all lines are simple, single line ...
e-shirt's user avatar
  • 659
0 votes
1 answer
41 views

Generate lines from given azimuth and points in GeoPandas

I am reading a points shapefile containing the azimuth information in the attribute table, and I want to generate lines from these data. I have tried to use shapely.Point as a tool, however it can't ...
台師大洪偉豪's user avatar
1 vote
0 answers
64 views

Calculating the surface area of the ocean at each latitude

I am trying to get the surface area of the ocean at each 1° latitude slice. However, for some unknown reason, region -61 which is at latitude -61 has a negative number, and am not sure why that is the ...
Lilnet Cloud's user avatar
0 votes
0 answers
27 views

Transformation needed for placing cartesian coordinate rectangle on map using geographical coordinates

I have come across a requirement to convert rectangle image with specific width and height to geographical coordinates so that it can be placed on map. I have all the four geographical vertices for ...
OnDWay's user avatar
  • 1
3 votes
2 answers
110 views

Unifying touching polygon within polygon geometry in PostGIS

I have a polygon geometry with 100+ polygons originally converted from a raster table - see the below image Zoomed view of one of the polygons I would like to unify the touching polygons (i.e. ...
rm167's user avatar
  • 459
0 votes
1 answer
72 views

Alternatives to Compute Pole of Inaccessibility in Python?

I discovered the other day that Shapely's current implementation of the polylabel algorithm for approximating a polygon's pole of inaccessibility does not always produce a point within the polygon. ...
Chris's user avatar
  • 151
0 votes
1 answer
71 views

Import JSON file as table in Excel and visualize polygon geometry using ArcGIS plugin for Excel

I have a quest where I have to visualize the polygons in my local disk in Excel using ArcGIS plugin. Based on what I understand, I can only import it as a JSON file from the get data panel, but the ...
Ashmitha Nihar's user avatar
3 votes
1 answer
143 views

Smoothing corners in polyline using PyQGIS

I have an array of QgsPointXY that makes a line with lots of vertices. How can I round the corners? Here is what I mean: The code is: def __round(line: list[QgsPoint], radius: float) -> ...
Alexander Petrushyn's user avatar
4 votes
1 answer
66 views

Deleting NULL geometries and duplicate nodes from table using PostGIS

I run the command to delete null geometry from a table: delete from table where geom is null And delete duplicate nodes by running the command: update table set geom = ST_Multi(ST_Simplify(geom,0)); ...
Paul P's user avatar
  • 51
1 vote
0 answers
50 views

How to find the coodinates of a new bounding box from four circles present with known radius around the vertices of an existing bounding box [closed]

I have a bounding box which I have created. I know the lat lon of the four vertices of the box. On these vertices I have created a buffer circle of radius 10m and now I want to calculate a new ...
sneha_jerin's user avatar
1 vote
0 answers
43 views

Viewing source query/code of the plugin "Check Geometries" in QGIS

I am running a plugin "Check Geometries" to determine the topology errors. It's running smoothly. But I want to have a SQL or Python query out of the executed process. For all other tools ...
SA_417's user avatar
  • 11
0 votes
0 answers
24 views

Landsat 8 geometry of image

I'm trying to find actual geometry of the Landsat 8 image. I retrieve Landsat data from ONDA service using EODAG. Onda provides Landsat 8 images in TIF files in epsg:4326. And it looks so: Also, in ...
Nikita's user avatar
  • 1
0 votes
1 answer
36 views

DISJOINT and TOUCH between Polygon and LineString not working as expected in Oracle Spatial

I have the following 4 geometries in an Oracle Spatial table: A) POLYGON ((-100 40, -100 44, -96 44, -96 40, -100 40)) B) LINESTRING (-99 37, -99 40) C) POINT (-100 41) D) POLYGON ((-96 41.5, -95 42, -...
Yndigo Dream's user avatar
1 vote
1 answer
53 views

Can I use WGS 84 and geometry calculations to check if a point is inside a polygon?

I'm storing polygons in a PostGIS database. The shape of the polygons is stored in a field of type geometry(Polygon,4326). From time to time, I need to check if a point (of type geometry(Point,4326)) ...
JPFrancoia's user avatar
-1 votes
1 answer
152 views

QGIS new versions 3.28, 3.30... One part can not be selected, vertexes too, can't work with multi polygons, One part is "Hole lies outside shell"

I am currently stuck on working with polygons with QGIS versions from the new patches with the new styles (3.28, 3.30, maybe 3.26 too etc...) When I used previous versions of QGIS, for instance 3.16 ...
Viktor's user avatar
  • 9
1 vote
0 answers
45 views

QGIS: multipolygon vector shapefile -> problem to correct latitude

I am currently working with QGIS for my master thesis (without much previous experience). I was provided with a shapefile containing MPAs (marine protected areas: see picture below). The latitude is ...
Débora Carmo's user avatar
0 votes
1 answer
74 views

Adding polygon geometry to numpy array to plot it with background

I'm trying to plot image I treated in dataframes. I need to add geometry to it in order to plot it with a background. I should have used GeoPandas and geodataframes in the first place. I have arrays ...
sam's user avatar
  • 33
-1 votes
1 answer
97 views

Get "geometry column" error when importing my csv file on Google Earth Engine through asset tab

I want to localize my plant specimens on Google Earth Engine map by importing a CSV file with two columns, including longitude and latitude, which belong to Quebec province, Canada. After I select my ...
Mobina's user avatar
  • 9
2 votes
0 answers
51 views

MultiPolygon - removing polygons intersections in PostGIS [closed]

Having a MultiPolygon, I would like to get a MultiPolygon where each polygon has no 'holes' and there are no polygons intersecting with each other. How to achieve this in PostGIS? To give you an ...
Marcin K's user avatar
4 votes
1 answer
59 views

Grouping features with identical values in two fields and deleteing the geometry with the lowest value in the third field using QGIS

I've got a shapefile with three fields: "X", "Y" and "Z" they are the geometries as well but I also have them as field values. Every line geometry in the shapefile has a ...
sistema's user avatar
  • 41
1 vote
2 answers
74 views

Create a longer line segment from a shorter one?

I do not believe my math is incorrect. This is seems like it could be a projection issue. I start with the following two coordinates ( lon, lat in degrees ) a: [37.821055535000085, -46.84417083099993] ...
Eric G's user avatar
  • 113
0 votes
1 answer
65 views

Geometry of recently created point

Description I am currently working on a project that requires the creation of default values in certain fields when attempting to insert a new feature. This operation is illustrated in the figure ...
Diogo Barros's user avatar
0 votes
0 answers
26 views

Geometry calculation in ArcMap

I am using ArcMap 10.8. I have many point (i.e. off-scale) bridges for which it is necessary to calculate the strike azimuth of the symbol. How can I do this? I know about the "line bearing" ...
Ярослав Вингард's user avatar
2 votes
0 answers
82 views

Geometry comparisons in SQL

Newbie to GIS here. Equality can be defined on a geographic value by seeing if they have a collection of the same points. For example, something like: -- The equality -- `LINESTRING(1 1, 2 2) = ...
David542's user avatar
  • 131
6 votes
3 answers
230 views

Unable to use the tool "difference" after the tool "clip"

I have stumbled on an error and I would like to have an external point of view to maybe help me figure it out. When I clip layerA as input with layerB as the overlay, and then make the difference of ...
Elyum's user avatar
  • 63
4 votes
1 answer
100 views

Removing duplicates geometry rows in PostGIS

I am maintaining a table which has geometry datatype and it's possible that the table can contain duplicate geometries. If I want to remove duplicate rows or select only non-duplicate one, will both ...
postgis-user's user avatar
4 votes
3 answers
207 views

Changing orientation of all polygons at once with numeric value in QGIS

I want to change the orientation of the raster/polygons with a numeric value around the centroid of the total grid. I have tried rotate($geometry, 45) in the Field Calculator but nothing happened.
N_LLC's user avatar
  • 605
-2 votes
1 answer
94 views

PostGIS: ST_LineMerge can make LineString from MultiLineString [closed]

I am trying to convert MultiLineString to LineString with PostGIS: This is my query: SELECT (st_astext(ST_LineMerge( geometry ))) AS shape FROM public."Cities" where id = 364087; but the ...
Cyrus the Great's user avatar
0 votes
1 answer
40 views

PyQGIS - draw a line between start- and endpoint using tracing to fit into another line

I have 2 vector layers, "pipes" and "fibres". The lines in the pipes layer are already drawn. Now i want to draw a line in the fibres layer from a start point to an endpoint, but ...
André's user avatar
  • 357
2 votes
1 answer
72 views

PyQGIS - modify Z-values for Polyline

I have a GeoJSON file that I have loaded into QGIS as a LineString, and draped over a DEM using Drape (set Z value from raster) I now want to round the Z-values to 4dp before exporting the modified ...
Tom Brennan's user avatar
  • 2,465
2 votes
0 answers
46 views

Selecting geographically identical (underlying) line segments and offset them in QGIS

My project has three lines representing three routes along town streets. All three routes lie on the same street for part of their lengths; two of them lie on the same street for another part of their ...
Catlike's user avatar
  • 1,076
2 votes
0 answers
92 views

QGIS: Calculate distance between two point layers based on matching ID

I have two point vectors in QGIS. One contains several coordinates, which are grouped geographically by a reference in the field name PID. I also have a point vector of the centroids from each group ...
MrBeardo's user avatar
0 votes
0 answers
386 views

Generate WKT from geometry type in SQL Server

I have a bunch of polygon data in a SQL Server database. Most of the data was created in Google Earth and exported as KML, then imported to SQL Server as WKT before conversion to geometry. Each record ...
Feargal Hogan's user avatar
2 votes
1 answer
140 views

Refreshing/using active geometry bounds using Google Earth Engine app-side for data export

This is my first time posting here, so bear with me. This is a continuation of the response to this question, but I don't have enough reputation to comment. I am working on this GEE Web App where the ...
Virgil Alfred's user avatar
0 votes
2 answers
410 views

Check geometry type of shapefile with GeoPandas

Using GeoPandas, how can I check the geometry type of a shapefile (i.e. Point, LineString, Polygon etc). I can use the following to check the geometry type of each feature but this is unnecessary, I ...
user35594's user avatar
  • 545
1 vote
0 answers
15 views

Reconstruction of a geometric graph: link only vertices with no vertices in-between [closed]

I'm a mathematician who got lost here looking for the name of a graph construction. Sorry if my question is silly/out-of-topic, but it seemed like a good place to ask. I hope my notations are going to ...
thibo's user avatar
  • 111
10 votes
1 answer
131 views

Merging layers and excluding some of the products in QGIS

When merging two layers of polygons so that they produce a third layer where no polygon contains another polygon, I find that the product contains some very small polygons, almost too small to see. ...
Lee Goddard's user avatar
6 votes
2 answers
202 views

Categorising data points along transect using QGIS

I have data on the latitude and longitude of several locations in Europe (blue). So far I have been able to read this data into QGIS but not more. I would like to plot a transect (red) and then ...
qgisquesls's user avatar
4 votes
1 answer
157 views

How to join geodataframe itself

My goal is to calculate the distance from a point and the nearest point, so I thought of using geopandas function sjoin_nearest. Using this function I get all the distances to zero, which is quite ...
Adil Blanco's user avatar
0 votes
0 answers
88 views

Calculate point line distance for a geolocation with altitude

I'm trying to calculate the coordinates (Latitude, Longitude, Altitude) of a point on a line at the minimum distance with another point. I was able to calculate the distance using the formula here: ...
Emanuele Fumagalli's user avatar
4 votes
2 answers
149 views

Consolidating overlapping and fragmented line into a single line geometry

I have a circular hiking trail. It was digitized in a way that I cannot reproduce. It is apparently a circular path, but it consists of many individual parts that overlap completely or partially. Also,...
MartinMap's user avatar
  • 8,196

1
2 3 4 5
36