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
1
vote
1answer
233 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
688 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
49 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
46 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
470 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. ...
4
votes
0answers
114 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
136 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 ...
3
votes
4answers
206 views

Selecting features with same geometry in one shapefile

@TeddyTedTed's answer is nice, however, I am looking for something more efficient. I am working on a public transport network in one shapefile (polyline type) in QGIS 2.18. Certain bus routes ...
2
votes
1answer
122 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
616 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
93 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
51 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
vote
1answer
283 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 ...
1
vote
1answer
567 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
52 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 ...
1
vote
1answer
39 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 ...
2
votes
1answer
350 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
137 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
279 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....
3
votes
2answers
119 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 ...
2
votes
0answers
24 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
116 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'...
2
votes
1answer
75 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
537 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
43 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
748 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
162 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
76 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
175 views

Compute convex hull of points in a feature collection [closed]

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
69 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
159 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
299 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
32 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
37 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: ...
4
votes
1answer
205 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
165 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
40 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 ...
6
votes
3answers
308 views

Programmatically changing line lengths in QGIS?

Provided a set of lines with various lengths, I would like to change their lengths (hence, changing their geometry) to a specific value, using their centroid as base point. I have checked the ...
3
votes
1answer
93 views

Determining validity of odd polygon using ArcObjects?

Using ArcGIS 10.4.1 a user in our department created a polygon and saved it to a feature class as shown below. The area covered is correct as at times it could overlap itself. I have calculated the ...
1
vote
1answer
567 views

Getting selected feature geometry using QGIS API?

I want to get the geometry for a selected feature using QGIS API. When extracting geometry for unselected features this is what I typically do: l = iface.activeLayer() fs = l.getFeatures() #returns ...
5
votes
2answers
155 views

Dragging all vertices at a given point programmatically in PyQGIS

I'm writing a Plugin where you build networks with point and line geometries. One Tool should give the User the possibility to make changes to the network by dragging and dropping the points to ...
8
votes
1answer
238 views

The longest straight line (L) within a polygon and the longest perpendicular line (T) to L

I'm mapping elongated glaciological features within QGIS 2.18.22 and I need to measure the longest straight line (L) and the longest perpendicular line (T) to L (as illustrated in the picture) within ...
2
votes
0answers
85 views

ST_ApproximateMedialAxis producing strange outputs

My problem is as follows: I have some lines (yellow), that I want to merge in one line if they are at a certain distance (blue, buffer), and after a long research I found this function from PostGIS/...
1
vote
1answer
2k views

Convert lineString to MultilineString in PostGIS

How can I convert the line string to multiline string in PostGIS? I have converted geometry points to line string by this: st_makeline(location.shape) but by this command: SELECT uuid_generate_v4() ...
1
vote
1answer
121 views

Creating 3D arcpy.Polyline?

Working with ArcGIS Pro 2.2, I have to create a 3D polyline from array of XYZ coordinates. When I try this code snippet : array = arcpy.Array([arcpy.Point(0, 0, 0),arcpy.Point(0, 100, -1000)]) ...
3
votes
1answer
91 views

Why is my arcpy.Polygon changing how many vertices it has?

Using a Python script, we are pulling a list of polygon vertices from a web service to build a polygon and insert it into our SDE. The problem steps are happening when we're making an arcpy.Polygon ...
0
votes
1answer
1k views

How do you get a color topographic map in Google Earth using the altitude provided by the 3D models

Is there any way to get an accurate, high definition, color topographical map as an overlay in Google Earth? It would be somewhat similar to this image captured by NASA of the surface of the moon ...
2
votes
1answer
1k views

Create geometry from WKT in FME

How to create geoemtry from WKT in FME? We have a csv file in WKT format: "ID";"GEOM" "1";"LINESTRING ( 15, 20 16, 20 21, 12)" "2";"LINESTRING ( 15, 20 16, 20 21, 12)" "3";"LINESTRING ( 15, 20 16, ...
0
votes
1answer
362 views

PostGIS update column with selected

I am new to database sorry if this is basic. I have selected point geometry from a geometry column in pgAdmin, however, I would like to know how to now copy the selected points to a new column? This ...
1
vote
3answers
55 views

Getting shared distance of two parallel lines using ArcObjects?

I have 2 lines Line A, and Line B that share from point. The 2 lines at first share the same path and are parallel, then they split into different paths. I would like to calculate that segment in ...