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
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 ...
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
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 ...
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
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
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
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 ...
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 ...
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 ...
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
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
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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
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 "...
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
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 -...
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
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 ...
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
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
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
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&...
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
vote
1answer
34 views

Convert SDO_Contains in PostGIS?

I have a longitude and latitude values and need to convert Oracle SDO function to PostGIS. My Oracle query is below: SELECT geoid FROM tract WHERE SDO_Contains( 'GEOM',SDO_GEOMETRY( ...
2
votes
1answer
56 views

QGIS Hide symbols which overlaping others

I have a layer with points located close to each other. Symbols which I have to set for each of point are overlapping. I would like to hide (or remove) those points which overlap (in other words I'd ...
2
votes
0answers
80 views

North polar projection OpenLayers + GeoServer

I'm trying to visualize some geometries in OpenLayers using a north polar projection. The data comes from the GeoServer and I have defined my projection in 949918=PROJCS["...
2
votes
0answers
14 views

Problem with the correct calculate of the bisector of the angle

I have a problem with the correct calculate of the bisector of the angle. I use WGS84 projection. I have a bisector's bearing (azimuth), coordinates of start point and line length as input. Some ...
1
vote
1answer
26 views

Invalid geometry objects in Shapely list

I have a creating a list of shapely polygons. While I am trying to create a geodataframe from that list it gives an error: intersec_ls = [poly1, poly2, poly3] cu = cascaded_union(intersec_ls) differ =...
0
votes
0answers
24 views

Intersections between two Linestrings - SpatiaLite

I have two LineStrings and would like to draw the point of their intersection. The two lines are similar to this: LINESTRING(445798.43 6153379.87, 445892.89 6153340.08, 445987.35 6153300.3, 446081.82 ...
2
votes
1answer
31 views

.sjoin Geopandas returns too many results

I have two dataframes, both containing geometry columns. The first dataframe contains MULTIPOLYGONs while the second one contains POINTs. My aim is to join the dataframes so each POINT will be ...
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 ...
2
votes
1answer
89 views

QGIS: no geometry in virtual layer

In QGIS 3.12.2. I created a virtual layer to use for the sort-order in a print layout as described here: Sort attribute table by hidden column in Print Composer That works, but I have a problem with ...
0
votes
0answers
50 views

Copy tables from Server Database to a Geopackage with no geometry and with geometries using PyQGIS

I am making an application in PyQGIS that uses tables that are on an SQL server. I want to make a copy of all those tables in a local Geopackage, because I want to use my application in my laptop ...
0
votes
0answers
22 views

LineString Heatmap with Open Layers 3

I need to make a heatmap with a bunch of linestrings using AngularJS and Open Layers 3. I didn't find any examples, just a question answered here but that don't worked for me. In the question he do a ...
1
vote
1answer
24 views

GeometryCollections do not have coordinate lists

I have code that suppose to break multipart geometry into single part by generating list of coordinates for each polygon. The code works perfectly for small amount of polygons, but today when I tried ...
0
votes
0answers
43 views

Load a layer from SpatiaLite database, using Python

I'm new to SpatiaLite and PyQGIS. I would like to upload a layer from SpatiaLite database. To do this, I tried with this code: database = r"C:\sqlite\db.sqlite" uri = QgsDataSourceUri() uri....
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, ...
2
votes
2answers
57 views

What's the name of the area between two geographic coordinates?

Is there a name for the shape of the area defined by two sets of geographic coordinates, for example by a northwestern and southeastern corner? In other words, the shape bounded by two degrees of ...
1
vote
1answer
29 views

Rename Layers based on geometry type (line, area, point) [closed]

I have numerous in memory layers that I need to export as shapefiles. The problem is, many of them have the same names; for example I have "railway_station" 3 times... as a point, line, and polygon. ...
0
votes
0answers
16 views

Spatially constrained multivariate clustering

What's the current methodology for clustering geospatial data by features? Not in ArcGIS - rolling my own in a different framework. Example: I have some demographic dataset. Let's say this contains ...
0
votes
1answer
44 views

Exporting a single feature out of featureCollection as shapefile in Google Earth Engine

Does any one know, how to export a single feature out of featureCollection in Google Earth Engine? I am using below code to export every features separately. The fetureCollection has 33 different ...

1
2 3 4 5
27