The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
29
votes
2answers
54k 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 ...
27
votes
2answers
34k views

Converting point sets to polygon boundaries?

I'm trying to convert sets of points to their respective polygon boundaries. I think this is something like a Voronoi diagram or Convex Hull, but not quite. I'm sure there's a technical term for it, ...
20
votes
2answers
45k views

Create polygon layer from polyline layer

Our systems expect polygon shapefiles, representing a collection of non-intersecting and geometrically valid (multi)polygons. Specifically, farm fields. We often receive our representations of farms ...
17
votes
4answers
22k 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.
13
votes
1answer
19k 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?
12
votes
5answers
62k 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 ...
11
votes
6answers
7k views

Lines to Polygons

I have failed to find the "name" of the algorithm that would allow one to convert lines to polygons. Since this issues crosses GIS and the fields of computational geometry and computer science. I am ...
11
votes
3answers
14k 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 ...
10
votes
4answers
15k views

Get all the points of a polyline

I have some polyline feature objects in python. Now I want to get all the points of polylines. For example, if a polyline has start point [0,0] end point [5,5]. Result: [1,1];[2,2];[3,3];[4,4];[5,5]...
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 ...
9
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 ...
7
votes
3answers
2k views

Can't transform lines to polygons

I have a similar question to: How to join lines in QGIS for later using "lines to poly"? I have a line shapefile that I wish to transform into a polygon shapefile. After making some ...
7
votes
1answer
22k views

Convert polygon to point with QGIS [duplicate]

I work with QGIS and I tried to convert polygon into point. I need points all over the perimeter of the polygon. I saw several answers like: Problems converting polygon to point but I didn't see an ...
7
votes
2answers
292 views

Generating polygonal blocks using growing lines

We first generate a set of locations (i.e., points(x,y)), randomly. Then we assign for each point a number showing the angle of a line being centred at that point. The criteria for the length of lines ...
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 ...
6
votes
1answer
3k views

Fast way to convert Polygons to Points in PostGIS

What's the fastest way to convert a polygon to a point in PostGIS? I don't care where the point is in relation to the geometry, but the resulting point does need to be consistent. Using ST_Centroid ...
6
votes
1answer
1k views

How to transform WRF Spherical Earth to WGS 84?

Weather Research Forcasting Model assumes a spherical earth model with a radius of 6370km. I'm looking to display the data onto the WGS-84 Ellipsoid model as that is the model my system uses for its ...
6
votes
2answers
5k views

Create Polylines from arrays of points

Let me describe the data setup. A line has been provided as an array of coordinate pairs, one for each vertex. This array is variable in size, anywhere from 2 to 200 coordinate pairs per line. What I ...
5
votes
3answers
4k views

Converting SpatialLinesDataFrame to SpatialPointsDataFrame in R?

In R I have a SpatialLinesDataFrame (for example from a coastline shapefile) and I want to convert it to a SpatialPointsDataFrame. I want to keep all the vertices from the line shapefile to become ...
5
votes
2answers
8k 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?
5
votes
4answers
7k views

Python Library for converting GeoJSON Multi-polygon to polygon

I would like to know if there is a Python library that can be used to convert GeoJSON Multi-polygon to a Polygon. Note: i want to convert .geojson file Multi-Polygon feature type to Polygon feature ...
5
votes
1answer
1k views

Convert linear polygons to lines

I have some long linear polygons that I'd rather store as lines but I'm not sure how best to do this. Ideally I'd have a line going through the centre of the polygon lengthways. I have two ideas of ...
5
votes
2answers
3k views

Vector -> Geometry Tools -> Extract Nodes equivalent in PyQGIS API

My question is fairly straight-forward. Would anyone know the PyQGIS equivalent of the Extract Nodes tool in QGIS? I don't seem to find it in the API documentation. If you do, kindly share the ...
5
votes
3answers
872 views

Convert polyline with Left ID and Right ID to polygons with ID

I have a polyline shape file which contain Left Id and Right ID information and struggling in converting this polyline layer to polygon with ID via arcpy. I am using ArcGIS(editor) license so feature ...
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 ...
4
votes
3answers
8k views

Draw lines from points

Please any body help me for creating lines from points in electric network for instance electric poles are there in point feature with "polename" field like "P01", "P02", "P03" etc. I need a tool that ...
4
votes
1answer
10k views

How to convert lines to polygons using NetTopologySuite?

I am trying to convert lines to polygons using NetTopologySuite(a C# port of Java Topology Suite JTS). I ran the sample console code succesfully and it generated two polylines. I then tried to run ...
4
votes
1answer
1k views

Generating polygons with streets as borders using QGIS?

I have searched online for almost a week and can not find an answer to my issue. I need to generate polygons from street borders in a given city. I have downloaded data from openstreetmaps and ...
4
votes
2answers
2k views

How to join lines in QGIS for later using “lines to poly”?

After successfully merging lines (using snapping) with merge_selected_features i got nice result - one merged line. Next thing was to make polygon from created merged line. Result is not nice - it ...
4
votes
1answer
424 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 ...
3
votes
3answers
2k views

How to convert points to lines?

I want to convert these points to lines, however they are not sorted sequentially along a line (by ID or FID), i.e. the converted lines zig-zag across the obvious trail of points. How can I join ...
3
votes
1answer
2k views

Split polygon into lines

I have a polygon layer which looks like this . I used the QGIS multiparts to singleparts tool and also polygon to lines. In both cases i got this type of result . I want to extract polygon into ...
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 ...
3
votes
1answer
6k views

convert list of points to line or polygon

I have a list of Points in a PostGIS table. The rows can be grouped by a date something like: myTable id INT date DATE lat NUMBER lng NUMBER geom GEOMETRY(POINT) now I need a table where all ...
3
votes
1answer
2k 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/...
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 ...
3
votes
2answers
4k views

Create points from lines

I used the Bearing Distance to Line command (Data Management) in arc to convert UTM coords (i.e. of a plot center), bearing and distance to the figure shown below. The end of each line represents a ...
3
votes
1answer
7k views

Creating polygons from points in Mapinfo

I have a huge number of points(co-ordinates), from which I am required to draw a polygon in Mapinfo. This required polygon is a square of 200m size. All I have now is the left side lower end of the ...
3
votes
2answers
420 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 ...
3
votes
2answers
5k 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 ...
3
votes
1answer
471 views

Is it possible to create points that represent lines in QGIS 2.8.Wien?

I want to create points to represent lines from a line layer. This is similar to creating points to represent polygons. Does anyone have an idea on any useful plugin or the best way to do this?
3
votes
1answer
228 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 ...
3
votes
1answer
386 views

Convert a 3d polygon to 3d polyline using QGIS

I am using QGIS 2.16 to try to convert polygons with 3d vertices to polylines with 3d vertices. Using the tool Vector -> Geometry Tools -> Polygons to Lines writes out the polyines, but the z ...
3
votes
1answer
736 views

SQL Server Geography Query works but Geometry Query Does Not - Different Tables, Similar Schemas

I am trying to get a Geometry query to work. A similar Geography query works fine but I must work with a table that uses a Geometry type. Although the Geography version returns lots of records as ...
3
votes
2answers
220 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 ...
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 ...
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' ...
2
votes
1answer
730 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 ...
2
votes
3answers
1k views

Converting annotation into a line feature?

This might seem like an odd question, but the end-result will be a GPX file that is to be used in delineating areas in a Mapathon, in which the editor only uses GPX files. My question is: Does ...
2
votes
1answer
586 views

How to create polygons from a polyline graticule?

I'd like to make a polygon shapefile out of a polyline shapefile showing a graticule. However, using the "Line to Polygon" tool results in a peculiar...something: Other standard tools like "Buffer" ...