Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
24 views

Delete vertices on polygon feature class, based on the intersection with point shp with python

I need to delete some vertices from some polygon fc that are unnecessary for the geometry. I have a point shapefile that contains all unnecessary vertices as points - but how can I access the vertices ...
1
vote
1answer
145 views

Invalid geometry vs. no geometry

Looking at the QGIS API Documentation: bool QgsFeature::hasGeometry Returns true if the feature has an associated geometry. Is invalid geometry different from a feature having no associated ...
0
votes
1answer
43 views

Using centroid point to generate polygon using ArcPy? [closed]

Is this possible to generate polygons from points (which are centroids of future polygon)? I got shapefile with ~250 points + they have got two attributes: length and width. I don't need complete ...
3
votes
1answer
104 views

Merging lines (with and with no overlaps) in QGIS

I have two layers ("Layer_1" and "Layer_2") of lines where they sometimes overlap and follow each other for a bit and then takes another route (see the image below). "Layer_1": Red line "Layer_2": ...
2
votes
1answer
38 views

Method to convert all 'overlapping' points to exact same geometry in QGIS 3.4

I have a point vector layer with approximately 2.5 million points, many of which share the same or a very similar geometry (within 1 m of each other). I would like to know if I can bulk amend the ...
2
votes
1answer
40 views

PostGIS geometry to GEOS geometry without lwgeom dependency?

I've been looking for ways to convert PostGIS to GEOS geometries without linking to or dependency on lwgeom/liblwgeom. The closest thing I can find is a mention of the pointcloud approach here: ...
4
votes
1answer
91 views

Automatic polygon placement from trail

I have a shapefile with >300 points that correspond to the points where vegetation survey plots were carried out 10m from the road on both sides. Plots have the dimensions 20mx50m. The attributes ...
0
votes
0answers
21 views

Exporting feature's geometry coordinates to readable file

I'm new to ArcGIS and I'm am trying to export the coordinates on the bottom to a human-readable file, see example below. How can I accomplish this?
0
votes
1answer
29 views

How to get the Z values of existing lineStringZ with pyqgis?

I can get the values of 3D QgsPoints with mypoint.get().z() When I iterate through a layer to get a specific polyline and then iterate through the polyline to get the start and end points- start_point ...
0
votes
2answers
58 views

Multipoint to point tool in Qgis

I have a multipoint adress layer creating problems with set-returning function cannot be used. I tried : Converting multipoint layer to point using PostGIS? Multipoint vs point PostGIS I tried ...
1
vote
1answer
42 views

Projecting shapefile of point geometries?

I am trying to creating a point shapefile that lies within polygon(a feature layer). By creating point geometry objects and filtering the ones that fall within the polygon(feature layer), I created a ...
0
votes
1answer
37 views

Converting from Boolean to point features using ArcPy?

I used geometry objects and da.searchCursor to check if randomly created points fall within polygon. Now I get True and False of each points that falls within or outside of the polygon. I made a list ...
2
votes
1answer
88 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. ...
3
votes
0answers
30 views

Change from LineString to MultiLineString when saving layer edits in QGIS

In QGIS, when a user creates a new single part line in an open editing session for a “Multi-Line” SpatiaLite dataset, the QGIS data type is initially a “LineString”. But, when the user commits the ...
3
votes
1answer
83 views

Line width and labels based on blended values of features sharing same geometry in QGIS

I want to appropriate line segments that share the same geometry with a particular line width and labels based on the aggregated values of one field "GIS@BUS_5_Min". My attribute table and polyline ...
1
vote
1answer
24 views

Selecting features with same geometry within one shapefile

I am working on a public transport network in one shapefile (polyline type). Certain bus routes share the same path, means that one line-part can repeat more than once. For instance, if I select a ...
2
votes
1answer
38 views

Seeking ArcGIS Pro SDK equivalent to geometry.measureOnLine(point) of ArcPy?

I am looking for a method in the ArcGIS Pro SDK 2.2 that will return the measure distance along a given polyline geometry. Here is the python method measure = polylineGeometry.measureOnLine(...
1
vote
1answer
137 views

Create geometry from point data - QGIS 3.4.1

Is there an efficient way to produce geometry from point data using QGIS? Each point represents a feature that may require one or more geometric primitives such as circles, curves or polylines (open ...
2
votes
2answers
42 views

PostGIS MakeLine issue

I am using GPS coordinates and I am trying to create lines (routes) from lon,lat. I create a geography column from my point and then I create the line as following: ST_MakeLine(point_geom order by ...
1
vote
2answers
42 views

Show change in location for points

I have a list of points showing the locations of some planned site investigations. Due to practical issues some of the locations were changed during the field work. The new locations was surveyed with ...
-1
votes
0answers
16 views

Displaying Geometry in descriptive format

I have a SQL view that displays polygon geometry in this format. When I query the view, it displays in this format, and also gives me tab for viewing the spacial results. How can I query the view to ...
1
vote
1answer
34 views

How can I merge two geometry columns of different tables to a single column in another table

I have many tables with geometry attribute which is saved in Postgis database. These tables are basically from more than one shapefiles which is stored in Postgis using geotools. Now I want a common ...
0
votes
1answer
42 views

Google Earth Engine - Remove geometry fields from FeatureCollection for export to table

How do I remove the geometry fields from this feature collection? They are not necessary and give me a messy table in excel. // Add reducer output to the Features in the collection. function ...
1
vote
1answer
28 views

Add geometry line to the map

I'm trying to test the code example on the page http://docs.geotools.org/stable/userguide/tutorial/geometry/geometrycrs.html I copied this example into eclipse Transaction transaction = new ...
2
votes
1answer
23 views

Area between two longitudes? [closed]

I am trying to compute the area between two longitudes (using the angle between them) but am having a hard time. I can do that more easily between latitudes but longitude reveals to be tricky. Anyone ...
1
vote
1answer
74 views

How to edit geometry of multiple layers simultaneously in QGIS 3?

I have several line layers (route, pipes, cables) that share the same geometry and would like to edit them simultaneously. Is there a way to easily snap the geometry of the pipes and cables layers ...
2
votes
1answer
105 views

Finding Square Polygons using ArcGIS Desktop? [closed]

Anyone know of an ArcGIS tool (or trick!) to determine square polygons? This is sort of a - find the geometric shape of a polygon, if all lines of a polygon are equidistant then YES (select) Seems ...
0
votes
1answer
49 views

Get a bounding box of a geometry that crosses the antimeridian using OGR

I'm trying to get a bounding box of the geometry that crosses the antimeridian using OGR: from osgeo import ogr geom = ogr.CreateGeometryFromJson('{"type":"MultiPolygon","coordinates":[[[[-180.0,-40....
0
votes
0answers
39 views

Is there a way to linear reference a line in QGis [duplicate]

Iv'e seen a number of plugin's that do things like create grids of points and such like, but what I need to do ideally is to create a line of points that follows a line geometry, and then drop those ...
3
votes
2answers
66 views

FME geometry conversion from string?

I have an xlsx file that has incorrect X, Y location. Essentially the false northing is out 5000000 and there's no decimal point. As you can see in the image below the current file format is on the ...
0
votes
0answers
23 views

Creating Tile Layer for ArcGIS Online using ArcPy?

I'm trying to generate tile layer out of shapefile in Python script. Is there a good sample script to do it with ArcGIS API or ArcPy function ? When I upload shapefile to ArcGIS online, I see ...
2
votes
0answers
19 views

Rasterizing arbitrary geometry to GeoTIFF in Python? [closed]

Say I have a list of points like so: [([11.36119, 48.296505], 0.0001402984), ([11.883914, 48.215576], 7.610937e-05), ([11.599947, 48.125195], 0.000109944136), ([11.699542, 48.005215], 4.153407e-05)...
1
vote
1answer
39 views

24412: Not valid because the interior of a polygon with rings (2) and (1) is not connected

I've got geography in sqlserver that is invalid. Running IsValidDetailed() I get the reason as 24412: Not valid because the interior of a polygon with rings (2) and (1) is not connected. But I don'...
1
vote
1answer
52 views

Automatic cleaning of polygon overlap based on attribute in QGIS

I have a shapefile with overlapping polygons. I need to clean these overlaps based on an attribute: in case of polygon overlap, the polygon with the lowest value of a given attribute needs to be ...
1
vote
1answer
90 views

Calculate geometry not working in ArcGIS Pro?

I have a set of points whose x and y coordinates I would like to add to the attribute table. The points are stored as a feature class in a geodatabase and I have ensured that they have the proper co-...
0
votes
1answer
32 views

Comparing each geometry of shapefile with all geometries of another shapefile using ArcPy?

I want to compare each polygon from one shapefile with all the polygons from another shapefile. When one polygon is geometrically identical to a polygon on the other shapefile, I want to copy the ...
0
votes
1answer
87 views

Performance of joining tables on a geometry column with SQL Server

I had a shapefile that I needed to integrate into my SQL Server DB. To do so, I used the very useful Shape2Sql.exe with which I chose 'Set SRID 4326' in the settings. I now have a table that contains ...
1
vote
1answer
62 views

Creating Polyline shapefile from text file using ArcPy?

I'm trying to create a polyline shapefile from a text file which provides Name, coordX, coordY. I've created the following script, which I feel will work. However, I can't seem to get it to read the ...
0
votes
2answers
38 views

Z-value from database? QGIS

I have a merged shapefile with line geometry. Every line has a Z value written in the database. I want to write this value from the database to the geometry as Z-value. The basefiles are S-57 DEPCTN ...
0
votes
1answer
60 views

Compute convex hull of points in a feature collection

I uploaded an asset (which was originally a shapefile of points) and imported it into my script as a feature collection. I would like to compute the convex hull of the points, but it seems this ...
0
votes
0answers
23 views

How to fix: JTS TopologyException: Found null DirectedEdge

How can I fix a: TopologyException: Found null DirectedEdge? Initially (sadly), the geometry is invalid. But then when applying a geom.buffer(0) st_valid(my_geom) returns true. Still there are ...
2
votes
1answer
57 views

Why QgsFeature.geometry() returns an empty geometry in PyQGIS?

I am a new for QGIS, working in Python. I add a buildings(.shp) vector layer into QGIS, just like this: I'd like to get the geometrys of some features, then I can do analysis on the center point. ...
3
votes
1answer
107 views

Python/PostGIS - Type “Geometry” Does Not Exist

I am a total novice with both PostGIS and Python - I am just trying to get this game running. I have followed the instructions here and here and am now at a dead end. I have pgAdmin 4 downloaded and ...
1
vote
1answer
28 views

Calculating width along grid points using ArcGIS Desktop?

I have a shapefile of a glacier for which I need to determine the width along every point of the flow line (the brown dots). I want to do this by determing the length of a perpendicular line through ...
1
vote
1answer
28 views

Update Set_Area from geometry

I am very new at PostgreSQL / PostGIS. I have got a table with geometry column set in (Polygon,32733), so I would like to update the Area column so as to see the area of each polygon. I tried this: ...
0
votes
0answers
40 views

Fixing invalid geometry of bathymetry level 0 of the world in EPSG:3120 projection?

I tried in different ways to validate the bathymetry of the world in EPSG:3120 from natural earth data in QGIS 2.18.13. Open the layer in QGIS and used Check Validity in EPSG:4326 and it was valid ...
0
votes
0answers
22 views

Extract geometry from TileJSON map

I would like to get to know where the pipeline data of http://mapa.cartocritica.mx/ is hidden. The map is using Leaflet and json tiles from GIS Cloud like http://tiles.giscloud.com/t/1524762449/...
4
votes
1answer
46 views

Is there a setting to force ignore invalid geometries when performing spatial analysis in QGIS 3.0?

When performing spatial joins I get no results due to geometry errors in one of the layers, but there is a note saying to force ignore geometry errors in the log. Where can I activate this setting?
-1
votes
1answer
81 views

Convert esriGeometryPolyline to GeoJSON

I would like to extract the "Existing KinderMorgan Trans Mtn Tar Sands Pipeline" from this ArcGIS REST service and convert it to GeoJSON. Ogrinfo can't read the JSON (it's not standard ESRI JSON): ...
0
votes
0answers
26 views

How to have a record id without geometry?

I have a buildings shapefile layer and every building has a building ID linked to its feature id ($id). Some new buildings have been built and old buildings were demolished. I'd like to not recycle ...