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.

1
vote
2answers
5k views

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

I have been searching and searching and I can't find a particular solution to what I need. I have a table with animal location points. I need to calculate movement distances between points from the ...
0
votes
1answer
14 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
253 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
83 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 ...
2
votes
1answer
223 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 ...
3
votes
1answer
411 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 ...
9
votes
1answer
5k 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
43 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
4k 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
50 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 ...
16
votes
4answers
21k 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
387 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 ...
3
votes
1answer
1k 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/...
5
votes
2answers
7k 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
90 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
18k 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
564 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
60 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
315 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
64 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=...
27
votes
2answers
49k 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 ...
3
votes
2answers
198 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
640 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
445 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
619 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
554 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
4k 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
205 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
577 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
383 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
978 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 ...
2
votes
1answer
123 views

How to force extra dimensions on MultiLineString geometry type?

I attempted to use ST_Force4D() I've used for MultiPolygons (and other geometry), but it doesn't seem to be the correct function. INSERT INTO table_one (geom) SELECT ST_Force4D(geom) FROM table_two; ...
19
votes
2answers
44k 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 ...
2
votes
1answer
73 views

Point to Line for lines and polygons

I have a csv file which I converted to points. It contains features that are a mix of lines and polygons. Format is below. Now I would like to use the point to line processing tool to generate the ...
2
votes
1answer
901 views

Changing geometry types from kml points Z to just points in QGIS

How do I change geometry types from pointZ to point in QGIS from a kmz file?
6
votes
1answer
2k 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 ...
1
vote
2answers
782 views

How to select all points of a polygon in Spatialite

I need to select all vertex coordinates from a polygon table in Spatialite DB. In PostGIS, I'd normally do something like SELECT st_x((st_dumppoints(poly_geom)).geom), st_y((st_dumppoints(...
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 ...
2
votes
1answer
952 views

How to convert points into line without changing the attributes? [closed]

I have several points and its attributes. I want to classify them into some class, but I want to classify it in line shape. When I convert it into line, the attributes turn out to be one (one row ...
2
votes
1answer
681 views

Extracting point for polygons from shapefile - not working

I am trying to extract the lat long points for the polygons from a shapefile. I have followed the directions from the following links: Getting list of coordinates for points in layer using QGIS? How ...
1
vote
2answers
298 views

Fix leaflet script in order to change coordinate projection

I have a leaflet script which using ziped shapefiles to add it on the map. The shapefiles are in epsg projection 31700 (dealul piscului 1970) and the position on the openstreet map is not correct, so ...
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 ...
3
votes
1answer
368 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 ...
1
vote
1answer
211 views

Making Point Z feature class out of Point feature class?

I have a point shapefile where i need to transfer the records into a geodatabase feature class that is Point Z. I have found a number of processes to go the other way, removing Z value and make it a ...