Questions tagged [geometry-conversion]

A change from a geometry type to another, e.g., points to lines, lines to polygons, polygons to points, and the like.

Filter by
Sorted by
Tagged with
1
vote
0answers
24 views

How to convert XYZ to from-to format with azimuth and dip information? [closed]

I have an Excel spreadsheet with header, survey, and assay drill data. Header data contains hole ID, location coordinates, and length. Survey data contains related downhole survey with distance, ...
0
votes
1answer
12 views

PostGIS & QGIS 3.4 : convert mixed Linestring/Multilinestring geometry to multilinestring

I have a PostGIS table in which the geometries are mixed Linestring and Multilinestring. But QGIS doesn't like it very much (it splits the table by the different geometries in the "add PostGIS table" ...
2
votes
1answer
409 views

When does Shapely's “polygonize_full” detect a dangle?

Shapely's polygonize_full operation, which merges line segments into polygons, returns four geometry collections: polygons, dangles, cuts and invalid ring lines. Dangles are defined in the ...
4
votes
1answer
435 views

Merging lines to make polygon

I've searched around but haven't find anything about this topic. I have several lines that represent the border between adjacent areas, so each area is delimited by several lines. How can I merge the ...
2
votes
1answer
885 views

ogr2ogr conversion error - Can't create fields of type Binary on shapefile layers

I'm having trouble using the ogr2ogr tool on the command line. My data is stored in SQL as binary, type is mixed polygons and multipolygons. I am using the following command for conversion from SQL to ...
34
votes
3answers
63k views

Draw lines from points in QGIS

I have a point layer and need to draw a line passing through or in the vicinity of the points (up to 0.5m ditance between the point and the line). The nodes of the line will recieve the attributes of ...
4
votes
1answer
112 views

Using `CAST` and `ST_UNION` in same query in PostgreSQL

I want to union the geometry of waterlines grouped by a table column in a new view. My problem is that I apparently needes to specify the geometry type using CAST function. But I cannot figure how to ...
1
vote
0answers
37 views

Implicit geometry typecast via trigger

Because OGC SFS is relatively strict when it comes to mixing Geometries with their MULTI- Counterparts, we came up with a solution to store everything as MULTI... and convert incoming geometries via ...
1
vote
1answer
98 views

Convert PostgreSQL geometry to Esri ST_Geometry

I am trying to create a spatial view in ArcMap where I run a ST_Intersect against a ST_Geometry point dataset and a PostgreSQL geometry polygon dataset. Both datasets are the same SRID. I am having ...
12
votes
5answers
63k views

Creating polygons from lines using ArcEditor/Standard level license of ArcGIS Desktop?

I am trying to create polygons from a line layer of lots and concessions (large blocks of land in rural areas). The lines are mainly grid style as they intersect mostly at right angles. I need to ...
4
votes
1answer
4k views

Polygon to Point in GeoPandas?

I want to convert a shapefile from polygon to point: pfile = pathtofile file = gpd.read_file(pfile) #it is a polygon Searched this site but didn't find anything similar: http://geopandas.org/...
2
votes
1answer
158 views

Issues with units for Geometry by Expression in QGIS 3.10 - Super-sized buffers! [closed]

I am having issues performing a geometry by expression operation on a layer I have imported into QGIS. The issue is that the wedge buffers created by the expression I am using are far larger than they ...
14
votes
3answers
16k views

How to convert from SQL Server geometry BLOB to something else?

I have a CSV data file from a 3rd party that is an exported SQL Server table. They simply did a select * from foo and output the result to a text file and sent it over. In their table is column of ...
2
votes
1answer
336 views

Convert polygons into spatial points to use R “redlistr” package

I want to use the the makeEOO function from the redlistr package to calculate the Extent of Occurrence of 2 species ("binomial" A and B), starting from a shapefile with the corresponding distribution ...
1
vote
1answer
1k views

Creating polygons representing specific range of values within raster using QGIS?

Using QGIS, I started with LIDAR points (every 5 m) on a 90’000 ha area and then converted it in a raster of elevation (interpolating to fill some holes in LIDAR data). Now, I want to get a polygon ...
2
votes
1answer
84 views

Shapefile export of holes geometries in QGIS with wrong type MultiPolygon

I want to export a layer with holed geometries in it. But when I save my features to shapefile in QGIS 3 it creates a file with MultiPolygon as geometry type. The fact is that a holed polygon isn't a ...
1
vote
2answers
6k views

Converting Points to Lines in ArcGIS Desktop and retaining attributes of both start and end points?

I have a table with animal location points. I need to calculate movement distances between points from the same animal. So I thought I would create lines from the points, which are linked by an animal ...
0
votes
0answers
24 views

Extract the width/length of a polygon while transforming them to polylines

I've recently started working as a city employee and I've been working on geographic data of the department of mobility. In a project regarding cycling roads we've done an inventory of all the ...
1
vote
1answer
52 views

Normalize OSM geometry to 1x1 coordinate system

I'm extracting a couple of geometries with overpass turbo and need to "normalize" their shape from lat-lon to [[0-1][0-1]] coordinates. The first thing I've tried is probably pretty wrong: get ...
3
votes
2answers
824 views

QGIS split rectangular polygon in grid

I have this selected rectangular polygon in yellow on a layer with hundreds of polygons: I need to split the selected polygon in 4 vertical columns (Y axis) and 8 horizontal rows (X axis), so that I ...
1
vote
1answer
114 views

Query/force only certain geometry types returned from ST_Intersection?

I have ST_MultiLineString geometry records in table_a that I'm intersecting with ST_MultiPolygon geometry records in table_b. Nearly all of the returned GeoJSON is of type LineString but a few are ...
10
votes
1answer
6k views

Creating line from points using PostGIS?

I have a PostGIS table with position data of numerous vehicles and want to create lines from these points. Data can be selected by vehicle id and ordered by timestamp but how to create lines from ...
0
votes
1answer
355 views

Using ee.Image.paint() with Geometry

https://code.earthengine.google.com/51d66ca06d0b08dbb5a7f19c10817252 Using theese Lines wont result in a Image with the Line Painted on it var Line =ee.FeatureCollection(geometry) var Pimage = ee....
2
votes
1answer
5k views

Converting multipoint geometry to ONE single point using ArcGIS Desktop?

I have an ArcGIS file geodatabase with two featureClasses. One is a point featureClass which represents the centroids of the cells of a regular grid. The second represents the corners of each grid ...
1
vote
1answer
54 views

Extending polylines edges to create polygons using ArcGIS Desktop?

I have two separate polyline shapefiles where the second was created by editing the records of the first one. (in the first file the line is in a different position than the other and have common ...
17
votes
4answers
23k views

Converting Polygon into single or all Points using QGIS?

I want to convert polygons into points using QGIS. I know how it's done in ArcGIS Desktop.
0
votes
2answers
2k 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 ...
6
votes
2answers
9k views

How to convert a line to points?

I'm working with QGIS and I want to convert a line into many points, does someone know how?
2
votes
1answer
3k views

how to connect points to create a polygon boundary in QGIS

I have 31 points in a shapefile, which delimit a field (it's an irregular shape). I want to connect those points so they create the boundary of a polygon. Does anybody know a kind of "connect the dots"...
3
votes
2answers
165 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 ...
13
votes
1answer
22k views

Transforming polygon to linestring in QGIS?

I have a polygon, imported from a shapefile in QGIS. I would like transform it to a linestring instead so I can save it as a GPX file later. How can I transform a polygon to a linestring in QGIS?
2
votes
1answer
1k views

Convert geohash to shape/kml

I have a requirement where I need to convert a set of Geohash to KML files such that they can be used as areas to plot data by overlaying on map. Is anyone aware of an open resource which can help ...
1
vote
1answer
103 views

How do I create a line with fixed size from a single point in QGIS?

My question pretty much sums up my problem. Basically, I have a layer containing points: And I need to convert them into lines with fixed size (25 meters). I don't care if the point will be taken as ...
10
votes
4answers
4k views

Generate polygons from a set of intersecting lines

This is a simple and quite common question which has already been asked for different purposes (see this link and this too, for example), here, however, we are looking for not a software package but ...
2
votes
2answers
2k views

Change the geometry of an existing layer?

I work with QGIS, v. 2.0.1. I have a point layer in which I have structures that could be represented as lines or polygons, but at the moment they are represented as a group of points. I know I can ...
2
votes
1answer
4k views

How to create a polygon feature class from polylines in Python ArcGIS?

I am trying to create a polygon from polylines. I've created this script but it gives errors of Arrays. import arcpy polyline=r'C:\temp\temp_lines.shp' Output_polygon=r'C:\temp\temp_polygon.shp' ...
1
vote
0answers
318 views

Convert polygon feature to line feature

I have a polygon shapefile I need to extract the line segments where the polygon features intersect each other and also the segment where they don't. Can we automate this process or can scripting ...
1
vote
0answers
150 views

Grid shift transformations based on GSD and GDX files (like cs2cs does)

My main goal is to achieve the same conversion as to the following command using geotools. cs2cs -f "%.7f" +init=epsg:23700 +nadgrids=etrs2eov_notowgs.gsb +geoidgrids=geoid_eht2014.gtx +to +init=...
3
votes
2answers
272 views

Rotating features generated by the geometry builder

In QGIS I have a point feature with "Rotation" field. Using the geometry builder I am trying to build square geometries based on the XY as centre and rotated based on the "Rotation" field using the ...
1
vote
0answers
942 views

Converting table asset data type from 'Long' to 'String'

I am attempting to generate 50 random points per land use class through Google Earth Engine. I have performed this operation before on an earlier instance, where the inputs were the following (1) ...
2
votes
1answer
709 views

Point clustering based on a certain value

I'm trying to cluster points based on the sum of a attributes of its nearest neighbors. So here are the points in the data set as they are: The objective is that each point has an "evalfield" ...
2
votes
1answer
683 views

How to make polygons from interpolated points?

My goal is to make a shapefile with polygons for variable rate fertilizer application within a farm field. I have a point shapefile with soil sample values (pH, P, K and so on) and a line/polygon ...
3
votes
2answers
3k views

Merge single points to multi point geometry

Is it possible to transform a point shapefile in single part geometry to a shapefile with multi-point geometry based on an attribute. e.g. in the file are 50.000 records in 700 categories, now I want ...
0
votes
1answer
647 views

Geometry data in MSSQL - Bing Maps

I am pretty new to GIS/Mapping apps. I have obtained some parcel data/tax data and imported it into SQL using Shape2SQL. The values that I have in the DB are based of the following projection ...
3
votes
2answers
6k views

Conversion between lat/lon and local coordinate system

I have local coordinate system, this is the red grid on the image. Red grid XY points measured in meters, and I know: The 0;0 point of the red grid and the lat/lon coordinates of this one point. (the ...
5
votes
2answers
3k views

Convert shapefile lines to a polygon in GRASS

I have a shapefile of a map that is the outline of a number of islands. I would like to convert the lines into polygons (ie all islands filled in) using GRASS. I searched on how to do this with GRASS ...
3
votes
1answer
272 views

Join close parallel lines to one line in CAD to GIS workflow

I have a DWG that contains a very detailed drawing of an area. Especially every wall in that area is depicted as 3 close parallel lines. For further processing in my GIS tools, i would like to ...
1
vote
0answers
881 views

How to create geojson Polygons from Lines?

Given a series of overlapping lines (MultiLineString) in Geojson how can I create polygons for those portions that form an enclosed a space? Sample data - https://gist.github.com/maphew/...
1
vote
1answer
497 views

How to create a polygon from lines

I have a list of lines and I want to create a polygon from them using PostgreSQL. I can't find a function that gets a list or an array of lines and returns a polygon. For example I have the following ...
7
votes
1answer
1k views

How to connect particular sets of points with (poly)lines?

I have a timestamped point-table representing GPS-tracked places of different cars. To distinguish the cars there is a car-id for every point. So, a simplified version is looking like that: Now, I ...