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-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
1answer
46 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 ...
2
votes
2answers
114 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 ...
0
votes
2answers
60 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 ...
2
votes
1answer
138 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
66 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 ...
1
vote
1answer
57 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 ...
2
votes
1answer
338 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
0answers
61 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 ...
1
vote
0answers
45 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=...
1
vote
0answers
444 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
305 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" ...
0
votes
0answers
1k views

How many kilometers would 10 degrees of magnetic latitude correspond to

I'm trying to make a notation (an ionospheric plasma bubble) on a digram true to scale. I know the bubble is 100 km wide but the diagram has magnetic latitude and longitude for the axes. How many (...
3
votes
2answers
3k 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
152 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
472 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/...
2
votes
0answers
156 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
109 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; ...
2
votes
1answer
70 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 ...
3
votes
2answers
150 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 ...
5
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
655 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(...
2
votes
1answer
796 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 ...
1
vote
2answers
260 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 ...
3
votes
1answer
309 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
342 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 ...
1
vote
1answer
171 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 ...
0
votes
1answer
471 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 ...
1
vote
1answer
343 views

Finding the lat/long bounds of a 1km square (for all of Europe)

I can code this, given figures/a formula; but I just flat out don't have the G.I.S knowledge for those figures/formula. I have to come up with some Python which parses the SRTM elevstion data at 30 ...
2
votes
1answer
781 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?
0
votes
1answer
286 views

Convert Geometry Type in Openlayers 3

I'm wondering if anyone can help me to understand if there is a way to convert an existing feature's geometry type? The reason for this is outlined in a previous question but basically when I drop a ...
0
votes
1answer
351 views

Convert SpatialPolygonsDF boundaries to SpatialLinesDF keeping information on polygons

I have a SpatialPolygonsDataFrame and I need to convert polygon boundaries into a SpatialLinesDataFrame retaining the attributes of the 2 polygons The structure of the SPDF looks like this 'data....
0
votes
2answers
74 views

Create polygons from points

I have a points dataset, which contains what are essentially vertices of polygons. They represent a number of separate, discrete polygons, and there is a field delineating these by name. Using this ...
1
vote
1answer
255 views

Creating boundary for multiple point shapefiles that overlay base polygon shapefile?

I have several point .shp files that were geocoded using OpenStreetMap. I located a base map to overlay the point files. I would like to create an artificial boundary based on an 80/20 rule for each ...
1
vote
1answer
821 views

How to convert a compound geometry (Oracle) to a geometry made of straight line segments only?

I have an Oracle Spatial table containing compound geometries (i.e. geometries containing both straight lines segments and arcs) that I want to project in another reference system. Using SDO_CS....
1
vote
0answers
550 views

How to calculate tolerance for TopologyPreservingSimplifier in JTS?

I am trying to simplify some areal geometries (POLYGON\MULTIPOLYGON) using JTS's TopologyPreservingSimplifier.simplify(Geometry geom, double distanceTolerance) From the JavaDoc: void ...
5
votes
3answers
3k 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 ...
6
votes
1answer
918 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 ...
3
votes
1answer
427 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?
2
votes
0answers
262 views

converting shp to fileGDB with ogr2ogr changes geometry type?

I'm converting a shapefile to file geodatabase with GDAL 1.11.3 and the ESRI FileGDB driver. ogrinfo on the .shp gives: $ ogrinfo NED1_Index.shp INFO: Open of `NED1_Index.shp' using driver `ESRI ...
3
votes
2answers
2k 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 ...
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 ...
5
votes
4answers
5k 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 ...
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 ...
1
vote
0answers
567 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 ...
1
vote
0answers
508 views

How to convert real altitude and longitude values to GeometryTransform.TransformBox values

I have a running program which has a point but its values are not dynamic . Current code for the point is var mathTransform = LayerTools.Wgs84toGoogleMercator.MathTransform; GeoAPI....
11
votes
3answers
11k 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 ...
1
vote
1answer
3k views

Converting polygon feature class to WKT for ArcGIS [duplicate]

I am currently trying to export the geodata from a series of polygons in several .lyr files within my geodatabase in ArcGIS 10.2. I want to export the series of polygons within my layer as WKT (well ...
3
votes
1answer
633 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 ...
1
vote
3answers
3k views

Using Plat Plotter - Calculate Curve Table feature given an arc and radius

Plat Plotter has a Calculate Curve Table feature that generates a sequence of points for use in drawing plot lines. To put another way, it converts a curve into several short, straight segments ...
1
vote
0answers
219 views

Progress Bar gets stuck converting Lines to Polygons using QGIS?

I'm trying to convert lines to polygon using QGIS 2.8.1. I use Vector > Geometry Tools > Polygons to Lines. I always get the progress bar stuck on 90%, it can't get to 100%. Could someone ...