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

Collecting geometries and selecting attribute-value using QGIS

In QGIS, I have a polygon-layer with communes. Some communes consist of different parts (exclaves). I want to merge all parts of the same communes to one object. How is it possible to define which ...
0
votes
0answers
12 views

Selecting the SHAPE column in Toad (SDE.ST_GEOMETRY)

I've noticed that SQL clients select the SHAPE column from SDE.ST_GEOMETRY in different ways: Toad: SDE.ST_GEOMETRY(1,1,666666.0,4444444.5,666666.0,4444444.5,NULL,NULL,NULL,NULL,0,0,300051,(BLOB)) ...
0
votes
1answer
153 views

Has anyone used Esri JSON data with json-schema validation?

Passing data between web services often means passing JSON data. A standard for evaluating JSON data is under development at json-schema.org. I would like to incorporate Esri JSON data in my schema ...
1
vote
0answers
38 views

Distance between centriod of the polygon and each and every point of the polygon [on hold]

I'm trying to calculate the distance between centriod of the polygon and each and every point of the polygon using GeoPandas Python I need to find the distance between centroid(18.9568383649 72....
9
votes
4answers
405 views

Symbolise polygon outline where it doesn't coincide with other feature using geometry generator in QGIS?

I would like to symbolise a polygon without converting them into a line. I have a polygon feature (hatched and bounded by red line) which coincides on top and bottom of the coastline (blue line). I ...
2
votes
1answer
22 views

Transforming geometry points coordinates to WGS84 in geodataframe

I have shapefile that has been brought into my script as a geodataframe. Initially, it shows no crs although the source originally had a datum = NAD83. I want the coordinates for the geometry (the ...
0
votes
1answer
26 views

Checking feature overlap using ArcPy cursors

I have a set of geometries that I want to check whether they touch another geometry. I have created a tuple "tiffs" where I want position 0 when touches is true. tif[0] and tif1 are strings. The ...
2
votes
1answer
472 views

Remove vertex from geometry (polygon) in OpenLayers 5?

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 ...
2
votes
1answer
131 views

How do I use pre-existing Lat/Long data in a SQLite table with QGIS?

I have an application that stores its data in a SQLite database. I can't modify the application or database to add geometry extensions, but it does already have latitude and longitude columns for each ...
0
votes
1answer
88 views

Splitting One Polygon By Boundary of Another using QGIS?

I'm using QGIS 3.0 and attempting to calculate the number of people that fall within a buffer. The population count is a field within my block group polygon layer. I've attached a screenshot, the ...
1
vote
0answers
33 views

Identifying convex and concave portions of polygon using ArcMap

I have a polygon shapefile depicting an island. For my study, I'm interested in two coastal features of the island: convex sections (portions of the coastline that extend into the ocean) and concave ...
0
votes
0answers
15 views

compact representation of geometries in the JVM world [closed]

What is a compact representation for geometries, in particular polygons and multipolygons on the JVM? So far I have seen: textual strings (WKT) (and still quite large) WKB JTS geometry (with heavy ...
1
vote
0answers
20 views

PostGIS - Measuring the angle at the touching point of two lines

I want to calculate the angle of two lines of a routing network exactly at the "touching point" (the topological vertex). My previous attempt was using the ST_ANGLE() function of PostGIS, which gave ...
3
votes
1answer
3k views

Get the width and height of a rectangular polygon in PostGIS

I have a table with point features saved in the my PostgreSQL database, and I can run the following query to get the extent of the point features and I turned the extent back into a geometry: SELECT ...
5
votes
2answers
154 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 ...
2
votes
1answer
69 views

Optimising Large Spatial Queries in SQL

I'm sure similar answers have been given elsewhere but no matter what I have tried I am unable to optimise this query. Details: TableA has 3.5mill records TableB Had 57000 records but I have ...
1
vote
1answer
30 views

Measuring area covered by linestring

I have a trajectory given by GPS which I store as a ST_LineString() and I'd like to know the area covered by the line string. I know the "width" of the trajectory, but I'm not sure how to approach the ...
11
votes
4answers
17k views

Creating lines from points pair coordinates with ArcPy?

I've got some points pair coordinates (start and end points) which I have to transform into lines. Until now, I used an append of both the coordinates in a pippo.Point(), a pippo.CalculateGeometry() ...
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 ...
0
votes
0answers
41 views

Counting points in polygon containing holes using QGIS?

Basically, I have these area (part of a bigger map) containing many holes (e.g. lakes) I have thrown on the map some 1000 random points and I want now to count those that fall in that area. I already ...
2
votes
1answer
51 views

Making polygon shapefile from unsorted point shapefile?

I have a point Shapefile with unsorted feature ID's (FID). I want to convert the same point file into polygon Shapefile by using python gdal/ogr. I got the help from link1 and link2. I'm able to make ...
4
votes
1answer
63 views

Find nearby points in space and time

I have a table that has an ID, point geometry and time. It's basically GPS coords and some other data. I want to be able to select all rows that interact (come close in space and time) to my target ID....
7
votes
1answer
460 views

What are the considerations for choosing between WKT and WKB geometries?

There are many questions & answers here addressing how to convert between WKT and WKB geometries, and about the specifications or implementation details. But what are the considerations for ...
0
votes
1answer
19 views

Add geometry attributes tool in ArcMap successfully runs but no fields are added to attribute table

I am attempting to add a line bearing attribute column to my shapefile in ArcMap. I'm using the Add Geometry Attributes tool to accomplish this. Running this tool is successful, however when I inspect ...
1
vote
0answers
26 views

How can I easily determine the precision of an OGR geometry?

I'm writing a python tool to update some river catchment boundaries and keep running into geometry errors, such as WARNING: TopologyException: Input geom 1 is invalid: Self-intersection at or near ...
1
vote
1answer
609 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 ...
0
votes
2answers
40 views

Deleting several features from shapefile using ArcPy? [closed]

I recently started working with ArcMap and Python. I try to delete several objects from my shapefile in ArcMap. I would like to select for example the line which are too close together. I don't want ...
1
vote
1answer
60 views

Problems with dissolving layers [QGiS 3.4.1]

I am currently working on a set of data that defines restricted areas for use of photovoltaic modules. This set of data amounts to 270.00 polygons in total [with their own geometry]. For simpler ...
1
vote
0answers
31 views

QGIS: Update geometry via geom_from_wkt('POINT(X,Y)') - how to correctly parse string columns?

The columns containing X and Y strings look like -1234,56 So far i tried: geom_from_wkt(concat('POINT(',replace("wbr_komplett.X",',','.'),',', replace("wbr_komplett.Y" ,',','.'),' )')) and also: ...
12
votes
1answer
557 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 ...
3
votes
1answer
95 views

Creating 3D geometry column by combining existing 2D geometry column with “elevation” column?

I want to create a table that contains 3D data. I currently have 2D data stored as EWKT, which is multipoint geometry in one column, and another column that has elevation from sea level in another ...
2
votes
2answers
51 views

Making New Feature Class with Midpoint of Line Feature using ArcGIS Desktop?

I have a problem with creating a new shapefile ( for Points) with a midpoints from Line shapefile. I cannot use FeatureVerticesTo Points_management because I only have access to Basic and Standard ...
3
votes
1answer
53 views

ST_IsValid and duplicate vertex

I expected to get 'false' from the following statement: SELECT ST_IsValid(ST_GeomFromText('POLYGON((0 0,10 0,10 10,10 10,0 10,0 0))')); Instead it returns true! Even if the vertex in 10,10 is ...
1
vote
1answer
17 views

Splitting lines: Options for managing IDs and related records

I have roads in a feature class (Oracle 10.3 geodatabase). Roads are split into separate lines where they intersect. This is an established business rule that cannot be changed. Each road has ...
0
votes
0answers
31 views

WFS-T geometry name problem OpenLayers

I am sending my modified features to database with transactional WFS. The problem is when I render my vector features on map their property name which describes geometry is changed to 'geometry' and ...
2
votes
0answers
21 views

GDAL osgeo for python treating Z dimension differently

I have a space defined by a polyhedral surface, and I would like to check if a point is inside this space, and I would like to do this in python with gdal. After trying the default installation of ...
1
vote
2answers
48 views

arcpy Polyline.within(Polygon) returns False for all lines between pairs of Polygon vertices?

I'm trying to develop a function which will find the longest straight line length that can be drawn within any of the polygons in a feature class. (To keep things simple, I'm only including lines ...
0
votes
1answer
61 views

Plotting Geographical Grid from Long/Lat Coordinates in R

I have a file of coordinates (Long/Lat) that should enable me to plot a series of 10km grid squares covering the UK. However, for each grid square I have five sets of coordinates by way of plotting ...
0
votes
0answers
7 views

(DSAS) Baseline won't Transect Appended Shoreline

I am trying to Transect my "Baseline" with my appended shoreline using DSAS in ArcGIS version 10.3. But this message window keep popping up every time I transect ( see attached first photo). Its ...
8
votes
2answers
2k views

Force geometry type in mixed geometry WFS layer in QGIS?

I have an external WFS source serving mixed geometry types - in other words, I have no control of the source. When adding the layer QGIS sets the geometry type to line and thus I am unable to style ...
2
votes
0answers
39 views

QGIS: check and repair geometry

I'm studying how to check and repair geometry correctly and found the "check geometry" tool which seems to work fine. However there are also tools called "check validity" and "fix geometry" which ...
1
vote
0answers
29 views

Check geometries in QGIS for multiple KML Files all at once in R or Python? [closed]

I am very new to GIS analysis so please bear with me. I have 2000 KML files. I am currently using QGIS Check Geometries function to generate the error report that consists of the following. A CSV ...
0
votes
0answers
24 views

What closeness measures are appropriate to this undirected graph?

I need a way to measure the closeness centrality of every single NODE(i) in respect to all NODES(j), 1 NODE(i) to all NODES(j) and, another measure that describe somehow the geometric properties of ...
1
vote
1answer
259 views

Finding point of intersection between: a line segment of two LatLngs, and a line with initial point and bearing

I have a line segment AB made up of two LatLngs, A and B. I have another LatLng C and a bearing x degrees. How can I calculate the point D where a line from C with bearing x degrees meets the line ...
1
vote
0answers
20 views

Creating planar rectangle about points of interest in Google Earth Engine?

If I have a list of points of interest in Google Earth Engine, e.g. var pointList = [ ee.Feature(ee.Geometry.Point(-73.96, 40.781)), ee.Feature(ee.Geometry.Point(6.4806, 50.8012)) ]; var ...
16
votes
2answers
23k views

Copy a geometry from one feature to another without attributes?

With QGIS it's easy to add a new part to an existing feature/geometry but I can't see how to copy/paste this part from another existing feature/geometry. Is it possible?
5
votes
1answer
1k views

Understanding the s2 library (geometry on the sphere, cells and Hilbert curve) for finding points nearby

I am having trouble understanding how the S2 library works so things in this question may make no sense, but I have a goal I would like to accomplish. Lets say I have many lat/lng point I want to ...
1
vote
0answers
51 views

Pros/Cons of using 'ellipsoidal' for calculating geometry in QGIS?

When I have found geometry attributes in the past, I've found my distances are often out by quite a lot unless I use an ellipsoidal CRS to calculate them. Why is this the case? Should I be using ...
1
vote
2answers
212 views

Getting halfway point in Polyline in ArcGIS API for JavaScript?

I would like to reach the mid point of a polyline. I just tried the centroid and realcentroid properties but I only got a soluction in ArcPy with the code below: Midpoint = geometry....
2
votes
1answer
291 views

Line between outside and inside polygon - geotools

I have two polygons, one inside another, and one draw it on the map there is a line connecting vertices of outside and inside polygon. I am trying to draw it like multipolygon using Polygon[] ...