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
2answers
242 views

Invalid geometry after gdal.polygonize

After converting a raster file to a vector file using gdal.polygonize, I cannot carry out further commands (e.g. Clip) because the vector is produced with invalid geometries (as determined by the QGIS ...
0
votes
0answers
6 views

ArcGIS Automatically converting Z Units when not Vertical CRS is defined

I have seen this on several tools, but it was most obvious to me when using calculate geometry in the attribute table. I have a Point dataset that has Z values, but no VCS defined. I then used ...
0
votes
0answers
21 views

QGIS Transfer Geomerty from Shapefile (loaded in QGIS) to PostgreSQL Table

I have seen a few postings relating to this question but the solutions are described with minimal detail, so I am looking for a MORE descriptive response. The solution I desire is via QGIS. My ...
2
votes
2answers
59 views

Artifacts when rendering TopoJSON geometries on Cesium

I am rendering a TopoJSON document, created via mapshaper.org from a shapefile, on Cesium. That works fine for all geometries except one. I have tried re-creating the TopoJSON document and re-editing ...
1
vote
1answer
20 views

Can I store both a Point and a Polygon in GeoJSON format for a single feature?

I've generated a GeoJSON file using ogr2ogr from an ESRI Shapefile for UK Protected Wrecks provided by Historic England - the standard format for the outputted GeoJSON is: { "type":"...
1
vote
1answer
34 views

ArcPy converting polygons to polylines without Advanced license

I am trying to convert polygons to polylines in ArcGIS Pro using ArcPy. I do not have the license so I cannot use the tools that do the job. Due to the way things are set-up for now I cannot use QGIS ...
1
vote
0answers
32 views

Why is editting in QGIS producing invalid geometry in PostgreSQL database?

I am editing a boundary in QGIS(3.10.8-A Coruña) and facing an issue when writing the back to PostGIS (10.13). The workflow I am following is: Download data from PostGIS connection in QGIS Edit a ...
0
votes
2answers
300 views

Add geometry attributes tool in ArcMap successfully runs but no fields are added to attribute table

I am attempting to add a line bearing attribute column to my shapefile in ArcMap. I'm using the Add Geometry Attributes tool to accomplish this. Running this tool is successful, however when I inspect ...
3
votes
1answer
242 views

Creating planar rectangle about points of interest in Google Earth Engine?

If I have a list of points of interest in Google Earth Engine, e.g. var pointList = [ ee.Feature(ee.Geometry.Point(-73.96, 40.781)), ee.Feature(ee.Geometry.Point(6.4806, 50.8012)) ]; var ...
19
votes
3answers
6k views

How to calculate the angle at which two lines intersect in PostGIS?

I want to calculate the angle between two lines where they intersect in PostGIS. The starting point for angle calculations in PostGIS seems to be ST_Azimuth - but that takes points as input. My first ...
1
vote
1answer
19 views

SetAttributeFilter Issue [closed]

I am following the book "Geoprocessing with Python" and I have encountered an issue with my code: from osgeo import ogr shp_ds = ogr.Open('path/to/data') volcano_lyr = shp_ds.GetLayer('...
3
votes
1answer
49 views

Calculate the distance between two points on a sphere (earth) going through the earth?

I can see the formula and name of the term for the distance between any two points on a sphere when going around the surface of the sphere is the great-circle distance, or orthodromic distance. What ...
1
vote
2answers
37 views

Can ST_BUFFER and ST_WITHIN be used for linestrings within a linestring?

I am working with MariaDB and trying to get data based on the condition of linestrings that are within another linestring. To allow linestrings not having to be exactly within (due to GPX variability ...
0
votes
1answer
24 views

Unable to insert geometry point using TypeScript and MassiveJS

I am trying to simply trying to validate a point before I actually insert it into the db. I am using the following: TypeScript: 3.5.2 MassiveJS: 6.4.0 PostgreSQL: 11 PostGIS: 2.5 const ...
1
vote
1answer
38 views

Finding line equation (on Earth) using two GPS coordinates

Assuming I have two GPS coordinates, how can I find the equation of Earth horizontal line that passes between them? I tried searching for a method of finding a line on a sphere that passes through two ...
0
votes
1answer
19 views

Adding a property while converting a table into a list in GEE

Is there a way to add a property when converting from a table to a list? I have a table of lat and long points uploaded from a .csv (locTable), and found a GEE code that changed the format of my table ...
0
votes
0answers
17 views

How to convert the shapefile of google drive to geometry of GEE in Colab?

I uploaded district's shapefile into google drive, and then read it from google drive using the below method: import geopandas as gpd shapefile = gpd.read_file("shapefile.shp") But I want ...
2
votes
0answers
35 views

Matching and aggregating data between two overlapped layers using QGIS [duplicate]

I'd like to know how a vector layer can take and aggregate attributes of a field, of another vector layer which is overlapped. For example, a layer T1 has not overlapped records while on the contrary ...
2
votes
1answer
137 views

Error while exporting geometry to CSV with MMQGIS

I am importing a DIVA-GIS shapefile into QGIS. It has a lot of polygons on it. My aim is to group different groups of polygons together and dissolve their internal boundaries so that I end up with ...
3
votes
3answers
81 views

Getting ST_IsSimple reason and detail similar to ST_IsValidDetail in PostGIS?

How can you get ST_IsSimple reason and detail similar to ST_IsValidDetail in PostGIS? When validating geometries I can use these handy functions to not only check if geometry is valid, but also the ...
0
votes
1answer
37 views

How can I create multipolygon using shapely?

I am going to create polygon, but it produce invalid polygon form this data: [[ 0 438] [ 0 428] [ 0 427] [ 6 428] [ 9 434] [ 11 439] [ 7 443] [ 3 446] [ 0 448] [ 0 452] [ 0 452] [ ...
2
votes
1answer
54 views

Group geometry points and create a linestring for each group

I have a table of points at a Postgres database that have two main columns (geom geometry, time timestamp). I need a query to retrieve as linestrings or as array of the geometries the points that are ...
1
vote
1answer
39 views

Get all geom points that are more than 3 meters from the linestring, at big scale

With the help of Osmosis i was able to import all the data of a Open Street Map city, (Nodes, ways, etc...). In another table at same db, i have Millions locations in that city, these locations are ...
1
vote
1answer
531 views

Testing for polygon orientation using GeoTools

I want to merge multiple geometries with Geotools (starting off with one geometry) but the result is a polygon that has a clockwise orientation. This gives an invalid geometry. This is my code for the ...
3
votes
1answer
134 views

Invalid geometry in point layer when running 'Count points in polygon'

I have a persistent problem I can't seem to fix. I'm trying to run Count points in polygon. I keep getting this error: Feature (747) has invalid geometry. Please fix the geometry or change the ...
3
votes
3answers
285 views

Error transforming geometry into lat-long coordinates

I'm trying to transform some geometries from the postgis database into lat long coordinates: This is the query: SELECT st_x (geometry) as lng, st_y (geometry) as lat FROM final and this is the error ...
2
votes
0answers
33 views

Feature is visible in a layer but geometry is None in QGIS using Python

I am using the feature's geometry in a layer to get the centroid point of the polygon. One particular feature is visible in a TOC layer and also able to select a feature. But, while reading that ...
1
vote
0answers
31 views

QField Create Geometry

I use QField for tree surveys. I use Geometry generator to create the crown (canopy) spread based on crown radius taken at N, S E and W. This works, but the crown is 'virtual' and cannot be edited. ...
0
votes
0answers
17 views

Calculating bearing of a line

When the bearing of a line is calculated using the "Add Geometry Attribute (LINE_BEARING)" tool, is the bearing referenced to Grid North or True North?
0
votes
0answers
21 views

How do I set the type of geometry when creating a SQL table?

The table I am trying to recreate has these properties Data Type File Geodatabase Feature Class Feature Type Simple Geometry Type Polygon <<<< WHAT I WANT TO RECREATE My target ...
1
vote
1answer
46 views

QGIS3.10, Find all points that are located on a line

Inside my .shp there are two simple layer: "Points_Example" (Type: Point, EPSG:25832) "Lines_Example" (Type: Line, EPSG:25832) Some of the points are located exactly on the line ...
1
vote
1answer
940 views

Arcpy creating Polyline from dictionary values

I am attempting to do the final project for the open source Penn state class https://www.e-education.psu.edu/geog485/node/144. The task is to parse a CSV file containing rhino coordinates and create a ...
0
votes
1answer
38 views

GeoPackage to Shapefile export

When creating a GeoPackage vector layer in QGIS 3.10.x, it provides the following geometry types: Point, Line, Polygon, Multipoint, MultiLine, MultiPolygon, CompoundCurve, CurvePolygon, MultiCurve, ...
0
votes
0answers
26 views

Condition with using geometry OLD and NEW

Is there a posibility to use a condition with OLD and NEW parameters? Using postgres 12, and pgAdmin Geometry in Qgis Trigger CREATE TRIGGER abc_trigger AFTER INSERT OR UPDATE OR DELETE ON "...
4
votes
1answer
3k views

How to use ST_Union with polygon and multipolygon geometry types?

I am attempting to combine the geometries for multiple records using the following: INSERT INTO schema.boundary (name, geom) SELECT 'Name' , ST_Union(geom) FROM schema.boundary WHERE id = 0; This ...
1
vote
1answer
624 views

How to rotate rectangle which fits in a circle in leaflet

I have a circle (in code its called "cyc_166_1") located at a certain angle with regard to another point. I would like to draw a rectangle which both fits in that second circle (bounds within it), ...
0
votes
0answers
17 views

Earth Engine - Calculate area (km2) from geometry (multi-polygon)

First off, I am pretty new to Earth Engine, and no coding background. I am working on a historical land use change study and have uploaded an old air photo to Earth Engine (it has been orthorectified -...
1
vote
2answers
45 views

Finding geometry anomalies using ArcGIS Pro

Is there a simple way (could be hard as well) to find geometry (polygons) anomalies. For example polygon should be nice rectangle, but doesn't always look so (like in example). I am talking about ...
1
vote
0answers
60 views

(DSAS) Baseline won't Transect Appended Shoreline

I am trying to Transect my "Baseline" with my appended shoreline using DSAS in ArcGIS version 10.3. But this message window keep popping up every time I transect ( see attached first photo). Its ...
0
votes
0answers
38 views

Find polygon geometry of a place

I am reading in a shapefile of Metro areas in the US and then select the metro area of interest. # Read shape file px_shp = 'data/map/az/cb_2018_us_cbsa_500k.shp' geodata = gpd.read_file(px_shp) ...
0
votes
1answer
46 views

Data matching between 2 layers which do not overlap

I would like to know how a vector layer can takes attributes of a field, of another vector layer which is not overlapping. For example, there are 2 vector layers, test_1 (2 records A,B) and test_2 (3 ...
0
votes
2answers
468 views

Using ST_LINE_INTERPOLATE_POINT in OGR and Python

I'm interested in finding the midpoint on a linestring using OGR and Python. This can be a line with more segments. Could I use the ST_LINE_INTERPOLATE_POINT in Python using the ExecuteSQL() method? ...
0
votes
0answers
20 views

Update attribute table by values from other layer

let's imagine that I have 2 different layers with geometry. Some objects from the first layer are "within" the second layer's objects. I'd like to update firstLayer_value in attribute table ...
0
votes
1answer
158 views

ST_SnapToGrid doesn't work properly, e.g. 41.94186153740355 -> 41.941861499999995

I'm using ST_SnapToGrid: ST_SnapToGrid(somePoint, 0.0000001) and I get strange result on many points, such as: - POINT (21.619820510769063 41.94186153740355) -> POINT (21.6198205 41....
2
votes
0answers
47 views

Creating line geometry from latitude/longitude dictionary

I want to create LineString geometry between points, based on a latitude/longitude dictionary. My code worked in QGIS 2.x but in QGIS 3.x, my new shapefile is empty. I have replaced QgsPoint and ...
0
votes
2answers
32 views

Writing to text file using geometry tokens of ArcPy

I am trying to write into a text file using geometry tokens but they're not being called upon. open(infile, "w") cursor = arcpy.CreateFeatureclass(fc, ["OID@", "SHAPE@",...
2
votes
2answers
1k views

Getting line geometry out of two points using QGIS?

I have one input point layer and out of that, I want to create an output LINE vector layer. For each feature in my output line vector layer, I define a geometry which takes 2 point geometries. ...
0
votes
0answers
36 views

Getting vertices of geometry that type is not known?

I am using a WFS service that serves Polygon and Multipolygon geometries. But I do not know ehich ones. So I am converting the wfs response to feature. this.http.get(url, { responseType: "text&...
1
vote
1answer
113 views

PostGIS create table with multiple geometry

I want to create a table with a geometry field in it. e.g.: CREATE TABLE ptgeogwgs(gid serial PRIMARY KEY, geog geography(POINT) ); In my case, this geometry field can either be a POINT, a ...
2
votes
0answers
43 views

Geom and ST_AsText(geom) gives different intersection results for same geometries [duplicate]

I am working to get the count of points intersecting with a convex hull. When I use the query in 1 it gives a count different than count in query 2. Only difference is that in query 1 I am using ...

1
2 3 4 5
27