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

Add geometry line to the map [on hold]

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
21 views

Area between two longitudes? [on hold]

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
48 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
97 views

Finding Square Polygons using ArcGIS Desktop? [on hold]

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

How to read geometry data type from MySQL database using PHP

I have a table in MySQL that stores polygons. I can read this back on the command line using the following query: mysql> SELECT polygonid, AsText(thepolygon) FROM polygons; +-----------+----------...
0
votes
0answers
13 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
4 views

DSAS tool doesn't cast transects on map

When I use the tool Cast transects on DSAS toolbar it creates only the layer but nothing shows on the map. DSAS log says "Void set_Shape(ESRI.ArcGIS.Geometry.IGeometry) Item not found in this ...
0
votes
0answers
38 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
55 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
19 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
18 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
24 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
44 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
43 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
0answers
23 views

TextFile to PolyLine Arcpy - Error Object: “CreateObject cannot create geometry from inputs”

I am working on a code that will take a textfile and make it into a shapefile. Below is my code and attached is the error i keep running into. I have also added a picture of the text file I am trying ...
0
votes
1answer
31 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
53 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
57 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
32 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
46 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
13 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
39 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
76 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
35 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
17 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
38 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
55 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
23 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
124 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
80 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 ...
0
votes
1answer
41 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
58 views

Dragging all veritices 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 ...
0
votes
0answers
13 views

How to know the values of a pandas dataframe geometry? [duplicate]

I am trying to read a shp file using geopandas. `gdf = gpd.read_file("AOI_20160625_20160628.shp")` The file is constructed in QGIS, inside there is a simple polygon. I would like to know lat and ...
4
votes
0answers
51 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
28 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/...
0
votes
1answer
159 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
43 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)]) ...
4
votes
1answer
66 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
184 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 ...
1
vote
1answer
94 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
84 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 ...
0
votes
0answers
63 views

Draw parallel polylines inside polygons in R

I would like to add multiple parallel polylines inside an irregular polygon based on user input in R. The outside polylines should be a certain distance from the edges of the polygon and the average ...
1
vote
3answers
37 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 ...
1
vote
1answer
250 views

Fixing invalid geometry (self intersection)

Attempted to extract raster by mask layer in QGIS 2.18.15 and for one of my shapefiles, the command could not be executed. The error message reads "Warning 1: Ring Self-intersection at or near point ...
2
votes
1answer
113 views

Openlayers 5: Remove vertex from geometry (polygon)

I could able to remove the recent modified vertex of a feature using removePoint method of modify interaction, as well as using deleteCondition event of modify interaction. However, that is not what I ...
0
votes
0answers
44 views

Getting well known text from varchar in redshift.

As you know, redshift does not support geometry types. There is a column in a dataset on my redshift db that has varchar column and the format looks like: ...
8
votes
0answers
170 views

Alter Minimum Bounding Box Algorithm

I'm trying to create an algorithm similar to minimum bounding box (though it may end up looking nothing like it). In this case the angle will be passed as a parameter and given the angle I need the ...
1
vote
1answer
31 views

Widget codes works intermittently

I have a QGIS program that is hosted on a SharePoint server that is used by multiple users. I have entered a rule for a point layer that when new features are created default values are added under ...