Questions tagged [wkt]

Well-known text (WKT) is a text markup language for representing vector geometry objects on a map, spatial reference systems of spatial objects and transformations between spatial reference systems.

Filter by
Sorted by
Tagged with
1
vote
1answer
109 views

Visualising multiple points using QuickWKT plugin in QGIS?

Using the QuickWKT plugin in QGIS, a command of the form POINT (30 10) draws a point at the desired location. However, how can I achieve to draw multiple points in one go? I am looking for something ...
4
votes
0answers
829 views

When does WKT orientation matter for polygon and multipolygon in geography spatial (left/right hand rule, counter-clockwise, clockwise)

I've decide to use sql server on Azure for my gis database. I'll be dealing with spatial Geography not Geometry. While inserting some country boundaries using the spatial data in SQL Server, some ...
5
votes
5answers
1k views

WKT for EPSG:4326 with LON 0 to +360 instead of -180 to +180

I have GRIB2 files that seem to be in a projection similar to EPSG: 4326, except that instead of longitude between -180 and +180 it is between 0 and 360. My intention is to get these files into ...
2
votes
0answers
240 views

Storing Shapely polygons in MySQL

I have to store some polygons in a MySQL database. The polygons are in Plate Carrée (ESPG 32662) projection, but I also tried to first converting them to the usual latitude-longitude projection (ESPG ...
13
votes
4answers
6k views

What is the best way to programmatically convert between WKT and Proj4 string?

Some shapefiles have a .prj file associated with it, and the .prj file contains the projection info of the shapefile in the format of WKT. Sometimes I need to convert WKT to proj4 string, and ...
1
vote
1answer
212 views

Converting coordinates in metres to Longitude & Latitude (CRS conversion) in OGC WKT format?

I have two tools that produce output in OGC WKT format. But they look different. Could you please explain this(I am very new to GIS). For my project I want the coordinates in the second format. Is ...
0
votes
0answers
133 views

Get coordinates from web mercator projection to Lan & Lot (JavaScript/ node.js) [duplicate]

I have the WKT coordinates like below. LINESTRING (16139582.976129573 -4541142.959679384,16139974.715899538 -4540837.211566243) How can I get the Longitude and Latitude from that. I am using ...
2
votes
1answer
205 views

PyShp error: Object does not implement __geo_interface__

I'd like to convert geometry to WKT with pyshp and pygeoif using this suggestion, but pyshp throws a following error: Traceback (most recent call last): File "E:/!Projects/imScrape/...
0
votes
1answer
129 views

Converting CRS?

I am trying to convert an N-triple RDF file which has geometries with WKT which use EPSG/3857 and I need to convert all WKTs to EPSG/4326 (I think it is the same as WGS84). As a first step, I tried ...
1
vote
1answer
136 views

fromWKT - how to pull all info from source data?

I have a CSV storing addresses, reference numbers, etc... and also a WKT string of boundary coordinates for each property: The script (ammended from another user's post in 2012) sccessfully converts ...
2
votes
1answer
317 views

PyQGIS - How to import WKT string from a CSV to a polygon shapefile? [duplicate]

In QGIS, I can add WKT data stored in a CSV by clicking the 'Add Delimited Text Layer' tool and setting it to 'WKT'. This works fine: But how can I do it as a python script? Ideally I'd like a ...
1
vote
0answers
41 views

Getting information on geo file projection in Python?

I have many geo files with different extensions, from different sources (mid/mif, shape, geojson, dat). I'd like to get information on their projection (i've no access to epsg code). Maybe, I search ...
1
vote
0answers
127 views

Converting image type into WKT? [closed]

I’m working with a GIS that uses SQL Server as its DBMS. So I have to insert some data into a column called dbo.CidadesGeo, but before do that I have to understand how the geometry (geometria) column ...
1
vote
1answer
824 views

OpenLayers 4.2 - Changing the interaction geometry type from polygon to multipolygon

I would like to make a selection with DragBox interaction and get the geometry type to Multipolygon. Right now I'm getting a Polygon type back : var source = new ol.source.Vector({wrapX: false}); ...
2
votes
1answer
1k views

is it possible to open a geotiff file in python without using gdal?

Trying to get gdal and whichever associated python bindings installed with the oldish OS my company uses is extremely painful, especially so in ci/cd and testing situations. I keep coming across ...
0
votes
1answer
224 views

WKT to shapefile using arcpy

I'm trying to convert WKT from an API to a shapefile via arcpy (there is a requirement to use the ArcGIS GUI) and am unable to get arcpy to create the shapefile. My code: def create_shapefile(self, ...
1
vote
1answer
91 views

How to use old WKT(version1) coordinate reference system in ArcGIS Desktop?

I have a local coordinate reference system defined with WKT: COMPD_CS[ "test", FITTED_CS[ "", PARAM_MT[ ...
4
votes
5answers
5k views

Converting WKT to SHP?

I have a text file containing exactly this: POLYGON ((6.2973716 48.98613 1772.1, ... many other Long Lat Altitude values ... )) And only this. It seems to be just like a WKT geometry of a polygon. ...
7
votes
1answer
13k views

Parameter values to create a vector grid with 1km x 1km cells?

I created a shapefile from WKT in QGIS using the values from this link. I want to create a vector grid with 1kmx1km cells but I can't figure out what values need to be set for the X and Y parameters. ...
2
votes
1answer
795 views

Parsing large GeoJson geometry to WKT

I'm reading a very large json file as an InputStream in Android with JsonReader. This json has a geometry object like so.. "geometry":{ "type":"MultiPolygon", "coordinates":[ ...
2
votes
1answer
460 views

Is MULTICURVE geometry in WKT valid according to the standard and open source community?

We are using Oracle function (SDO_UTIL.TO_WKTGEOMETRY) for exporting geometry to WKT. Some geometries have MULTICURVE in WKT, like this one: MULTICURVE (COMPOUNDCURVE (LINESTRING (3451418.006 5481808....
3
votes
1answer
286 views

Reduce geojson/wkt source data density

I have administrative boundary data in geojson/wkt format, which I retrieve from my REST service and display, using mapbox gl. This works well enough, but the data points are (depending on the country)...
3
votes
1answer
107 views

Converting WKT to ASCII art?

I often end up writing basic geometries in unit tests, looking much like the following: a = "POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))"; b = "POLYGON ((0 0, 9 0, 9 9, 0 9, 0 0))"; If I'm feeling ...
14
votes
2answers
17k views

Seeking online WKT editor?

We need to do are very simple administrative boundary drawings over a (insert fav map here) via some website. Our requirements are: click to create points which then form a polygon drag existing ...
8
votes
5answers
981 views

Is there a way in QGIS 3 to get a selected feature WKT?

In QGIS 2.x, I used the getWkt plugin: https://github.com/hugoledoux/QGIS-getWKT to get a WKT of a selected feature. But that plugin isn't present in QGIS 3.x. Was that capability built into core ...
0
votes
1answer
157 views

Polygons in CSV, WKT coordinate order

I have a text file with the data: 98923|Place1|31.144562;33.741344:31.171932;33.873543:31.103771;33.884808:31.073994;33.786865 342342|Place2|36.995064;7.632923:36.995880;7.849720:36.832218;7.848527:...
1
vote
1answer
234 views

Axis order in user Shapefile

I have a shapefile which has the following PRJ GEOGCS["WGS 84", DATUM["World Geodetic System 1984", SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], ...
1
vote
1answer
384 views

Read a CSV with two Polygons(WKT) with GDAL

I am trying to read a CSV file where the geometries of neighbouring polygons are stored in couples. The file looks like this. I usually read shapefiles in GDAL using the following syntax ...
1
vote
1answer
202 views

arcpy FromWKT to functioning in_memory layer to be used in geoprocessing tools

As part of a larger script I am extracting postgis geometries from WKT(got that part down) then I am trying to create an in_memory polygon geometry to be used in arcpy tools. so far: ...
6
votes
5answers
16k views

How to convert WKB to WKT?

how can i convert wkb to wkt form ... i stored coordinates in wkb but now can it will display to use in wkt form
-2
votes
1answer
88 views

How do I get the location from an unidentified coordinate system point?

I'm working in C# and I have this JSON: {"id":429,"name":null,"address":"10 Wooleys La.", "city":"Great Neck", "decadeBlt":0,"totalUnits":12,"propertyType":null, "yea‌​rBlt":0,"expectedCom‌​pletion":...
1
vote
1answer
930 views

Converting GeoJSON pixel coordinates to lat long coordinates for use with Google Maps API?

The entire process is quite a bit more complex than the question, so let me briefly describe it: An SVG overlay of map features is parsed. Each path is converted to WKT using SVG-to-WKT and then ...
4
votes
2answers
796 views

gdalwarp cutline without using a shapefile

I'm currently working with gdalwarp to split some tiffs. gdalwarp -cutline file.shp -dstalpha -of GTiff image.tif split_image.tif I wanted to know if I can use an other source rather than use a ...
2
votes
1answer
284 views

st_astext generate an invalid wkt in postgis

The query: select st_astext(dn_geom), st_isvalid(dn_geom), st_area(dn_geom) from t$table Generates an incorrect WKT from a geometry apparently valid: POLYGON((-2.96954161967213 41.4400844183428,-...
0
votes
1answer
74 views

Failing to get WKT to reference for a multi-line

I have a shape that I've exported to CSV and GeoJSON to be loaded into CartoDB. Unfortunately, the GeoJSON doesn't work so I am trying to upload the CSV but don't quite understand how to get the array ...
0
votes
1answer
439 views

Using Well-Known Text and geocoding on Load

So, I have tested adding columns with the WKT format into Carto, and it has always worked great (I tried 1 row, then 1000 random rows from our data). I geocoded it on load by naming the column with ...
1
vote
1answer
2k views

OpenLayers2: Showing WKT data via JSON from MVC

I am trying to read geographic data from MS SQL Server 2012 and display it using the JavaScript library OpenLayers in an MVC4 view. I can confirm that the data leaves MVC OK but I have problem is ...
1
vote
3answers
167 views

Listing coordinates of polygons in WKT format

I have a polygon shapefile made up of 2 shapes (independent of each other). I'm using the code below to print in the ArcMap python console, a list of each shapes coordinates in WKT format. I get an ...
2
votes
1answer
217 views

Understand way field (type geometry) in planet_osm_polygon

I'm new to QGIS and I'm using PostGreSQL and QGIS DB Manager to get information from the polygon_osm tables. I'm currently working on the _polygon table and I'd like to get the coordinates for each ...
0
votes
1answer
1k views

get wkt from geometry in lat lon format

Using the plane geometry editor plugin in qgis 2.0, WKT representation of a feature is shown. The result is in the lon1 lat1,lon2 lat2 format. e.g. POLYGON((85.43523762804622379 27.69592296476042037,...
1
vote
1answer
125 views

Convert WKT to Layer arcpy

I have a CSV file with number of records that have WKT Point geometry. I am bit lost on how to insert to this into a new point layer. Sample data from CSV file from GeometryItem Field: POINT (-...
4
votes
2answers
6k views

Getting from wkt to shapefile in Python?

I am querying tables from a SQL-Server database and would like to convert the table into a shapefile. It has wkt geometries and wkb as columns in the table, along with other attributes that need to ...
0
votes
1answer
405 views

Using WKT (or Proj4) information to define a coordinate system with gdal_translate

The gdal_translate program has an option to define an XML file with the necessary information to download an image using various web map server specifications. I am using this XML option with an ...
4
votes
1answer
484 views

How to generate WKT geometries from true type font glyphs (python)

Does anyone know of a library or tool ( preferrably Python)to convert true type font glyphs into polygonal shapes (for testing GIS algorithms)?
1
vote
0answers
197 views

Passing a WKT Polygon with interior rings to a QgsRubberBand's Geometry with PyQGIS

Starting point is that I select a geometry with the following query in QGIS DB Manager: SELECT 1 AS myid, st_buffer(st_union(wkb_geometry), 5) FROM ax_strassenverkehr WHERE unverschluesselt ILIKE '%...
0
votes
2answers
669 views

How can I get public transport maps in WKT format?

I can get street maps from openstreetmaps.org (XML) and convert it into WKT with the tool osm2wkt. There are several people creating specialist public transport maps: The Transport Map layer on OSM'...
1
vote
2answers
170 views

Creating two-colored map of region in one color, and neighbors in another color? [closed]

As they say, a picture is worth more than a thousand words: Turkey in Wikipedia What I need is to create maps for an educational system, and though we can create them manually in a lot of ...
12
votes
2answers
21k views

How to convert a shapefile to WKT?

I'm trying to convert a shapefile into the simple Well Known Text (WKT) format in the example below (from http://en.wikipedia.org/wiki/Well-known_text). MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)), (...
3
votes
2answers
509 views

What CRS to use to georeference map?

I am trying to georeference a raster map from Nepal. What CRS should I use? PROJ.4 or WKT form. I will use the UTM grid to base my reference points on. On the map there is reference to: Scale 1:...
0
votes
2answers
150 views

NDVI Web services over Victoria australia

Does anyone know of any web services that are available where you can pass...say a WKT polygon or point and return the mean NDVI or NDVI from that point from an array of the most recent NDVI runs?