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

How to import CSV (downloaded from Google Drive) with polygonal geometry data, into QGIS?

I formerly used Google Fusion Tables but due to the product downturn I had to bulk-download a backup copy of my data. Right now I have them all saved in CSV format. I have attribute columns in these ...
1
vote
1answer
21 views

Creating heat map based on attribute from another layer in QGIS

I have a layer showing different trails in a nature areal. For each trail, there is an attribute with the usage of the trail (no. of people passing a trail counter). I now want to create a new layer ...
1
vote
1answer
29 views

Zonal histogram processing and invalid geometries

In QGIS 3.4, when I try to get a zonal histogram it returns an error related to invalid geometries in the vetor layer. I had already set "Invalid features filtering" to "Do not filter&...
1
vote
0answers
36 views

Determine if a great circle is on the left or right from a point defined by latitude, longitude and bearing

Given A point coordinate on the map specified by latitude and longitude. Shown as "C" on pictures below. Direction where this point is moving, specified by bearing in degrees (0-359), where ...
5
votes
2answers
160 views

Align existing points along a line with even spacing

I have a number of existing points which are snapped to a line, however they are unevenly spaced along the line, like this: How do I align them so they are evenly spaced out along the line like this: ...
1
vote
0answers
37 views

Transforming polygon geometry across antimeridian in QGIS

I am working on a Python script in QGIS 3 that creates buffers around points in Web Mercator (EPSG:3857) and transforms the buffers into WGS84 (EPSG:4326). I have a problem with geometries that cross ...
0
votes
0answers
39 views

Merging features which share geometry but not features

I'm trying to create one vector layer out of two, one of which overlies the other. I've merged the two layers but now I just have a load more polygons which share no attributes. How do I merge the ...
1
vote
1answer
54 views

Fix/Repair invalid Geometry

I'm loading a shapefile in an app through a frontend with OpenLayers and trying to save the geometry to an Oracle Database with Hibernate Spatial. The shapefiles that have valid geometry (validated ...
1
vote
0answers
26 views

Determine if two geometries are similar in shape and location

Suppose I have two geometries that have almost identical location and shape. I say almost on purpose here, since one or the other might have an extra node, or the order of coordinates in GeoJSON might ...
0
votes
0answers
11 views

@turf/boolean-contains reports false, even though one geometry is fully contained in another

I have the following FeatureCollection: { "type": "FeatureCollection", "features": [ { "id": 47306, "type": "Feature", ...
0
votes
0answers
12 views

How to use KML as an ee.Geometry

I'm using Google Earth Engine through the Python API and I would like to define my boundary area for the processing on the basis of a kml file I have. The kml basically describes the boundaries of a ...
1
vote
0answers
40 views

Maintaining exact geometries with st_subdivide of PostGIS [closed]

I have noticed that when I use st_subdivide() function in PostGIS, the resulting area of the polygons can be different than the input. Is there anything I can do to avoid this happening?
2
votes
0answers
13 views

Generating equidistant Points inside box which also contains MultiPolygon [duplicate]

I have a box bounded by min_x, min_y, max_x, max_y, I also have a multipolygon = poly contained in that box. I'm trying to equidistantly scatter points throughout that box, outside of that ...
1
vote
0answers
15 views

Dividing region in 9 sub-regions in Google Earth Engine

I am studying the spectral response of PV plants in GEE. I need to divide a polygon (geometry), which is shaped like the plant, in 9 sub-polygons, to investigate how each corner of the plant reacts. ...
4
votes
1answer
190 views

Measuring compactness in Python [closed]

I have set of polygons whom I would like to check their compactness. I'm working in Jupyter Notebook and my geometry is GeoPandas. I would like to try Polsby-Popper test and Schwartzberg test (and ...
1
vote
2answers
24 views

How can I display a polygon layer after joining it with a point layer using the polygon geometry saved in the table of attributes?

I joined a polygon layer to a point layer using a common field and then exported as a new layer. Just in case I first saved the geometry of the polygon layer (shape and area) in the table of ...
0
votes
0answers
13 views

Geometries associated to attribute table features not displayed (QGIS 3.4)

I'm having this problem with some data downloaded from a Brazilian prefecture, and don't understand why this is happening. When uploaded to the platform, QGIS displays the undefined CRS message. After ...
1
vote
1answer
20 views

Use ogr2ogr to filter GeoPackage by geometry type

I have a GeoPackage that has features of different geometry types (Point & Polygon, see below) on the same layer. How can I filter all polygons from the file and create a new GeoPackage using ...
1
vote
0answers
22 views

Speed up colouring of contour lines by creating new layer?

Related to my previous question: Colouring contour lines differently when they are inside polygons of another layer I would like to create a new layer based upon the result of the geometry generator ...
1
vote
0answers
21 views

Open only part of a GeoPackage layer with a certain geometry type in GeoPandas

I have a GeoPackage (743 MB, zipped) that has one layer, but two geometry types inside that layer (Point and Polygon). When I open the file in QGIS 3.10, QGIS presents a dialogue to me that lets me ...
4
votes
1answer
184 views

Creating centroid inside of polygon [closed]

I want to get the centroids of my multipolygons using Python and GeoPandas. But when viewing the polygons and the centroids points on QGIS, the centroids are not inside the polygons. Here is the code ...
1
vote
0answers
32 views

Is a SRID an attribute of geometry or geometry column? [closed]

I'm not an expert. Yesterday I found out that SRID in PostGIS is property of the column - an actual constraint that is even stored in pg_constraints table and then retrieved through geometry_columns ...
0
votes
1answer
35 views

Validating network geometry

I have 2 sets of data: A network data and I want to validate it with another B network geometry which is a moving van trace data Since the trace data is very raw without any attribution, is there a ...
0
votes
0answers
25 views

Inserting/Update a polygon into a field with null geometry in Oracle

How can I copy a previously created polygon that is in a temporary layer, to a field with null geometry in Oracle? I can view the field in the table, use the "Add Part" tool to create a new ...
1
vote
1answer
57 views

Discrepancies in reading geopackages between ArcMap and ArcGIS Pro

I have a GeoPackage database with a few layers inside of it. One layer, which has about 1000 records, some complex geometry, but no relationships, would not open correctly in ArcMap (specifically ...
4
votes
1answer
145 views

Creating a new custom PostGIS function

I'd like to create a new, custom PostGIS function that would return a point geometry from a polygon that I can use for generating label points from a polygon, but I am not sure how to go about ...
0
votes
0answers
49 views

Extract longitude and latitude coordinates into separate columns with GeoPandas geometry

I am currently working on an Exploratory Data Analysis for the NYC taxi dataset. Since the new datasets had location ID's instead of long and lat coordinates. sf = gpd.read_file(r"shape/...
2
votes
0answers
32 views

Invalid geometry type after clipping

I have two files (.xyz) with point data from a terrain. I'd like to create contour lines of said terrain but in a smaller area (limited by a polygon). After importing the points in two layers, I merge ...
0
votes
0answers
48 views

160180: The junction has invalid geometry (i.e., non-point or invalid location)

I made the following In ArcGIS Pro: I created a point layer from elevation lines (every 10 meter, in total there is 5.5 million points). TOPO TO RASTER- When I run this tool with the point layer from ...
3
votes
1answer
61 views

How to calculate area of polygon using ArcGIS system tools?

I like "Add Geometry Attributes" tool, it has some great options, e.g. centroid inside. Documentation states that: This tool presents an easy and efficient way to automate the task that can ...
1
vote
0answers
61 views

Unique constraint on Geometry to resolve INSERT conflicts

I have a simple table with a geometry column like so: CREATE TABLE geomtable ( gid serial, geom geometry, trip_count integer ); I want a unique constraint on the geometry column, such that ...
0
votes
0answers
17 views

ArcGIS automatically converting Z units when no 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
23 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 ...
1
vote
1answer
23 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
0answers
41 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 ...
1
vote
1answer
44 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
1answer
22 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('...
2
votes
1answer
57 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
1answer
42 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
0answers
32 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 ...
0
votes
1answer
22 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 ...
2
votes
1answer
68 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
45 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 ...
0
votes
1answer
44 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
0answers
37 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
2answers
64 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 ...
3
votes
3answers
310 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
34 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 ...
3
votes
3answers
101 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 ...
1
vote
0answers
36 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. ...

1
2 3 4 5
27