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
12
votes
2answers
22k 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
519 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?
2
votes
2answers
186 views

Converting shp file to wkt polygon string using ArcPy?

I used the following code to convert .shp file to .wkt. The code was successful but where can I find the .wkt file (the print row ouput)? Is it possible to add a path for the wkt files to be ...
2
votes
3answers
1k views

OpenLayers is very slow when using WKT multipolygon with a large number of points

I'm showing the boundaries of Cyprus regions using OpenLayers with vector layer, I get the coordinates from a shapefile which has a lot of points, for instance some regions can have a multipolygon ...
8
votes
1answer
3k views

PostGis vs Oracle Spatial 11g performance

I am having a performance issue updating a table in Oracle Spatial 11G while converting 63,000,000 points to WKT format. I also made a comparison with Postgres. Both Postgres and Oracle run in two ...
2
votes
0answers
212 views

Seeking example .PRJ file using WKT syntax for Concat_MT?

I've been digging into the WKT format definition found here:WKT Format with the aim of defining a PRJ with two chained affine transforms to go from a known projected system to a local grid. I've been ...
0
votes
1answer
545 views

ogr ExportToWkt support for m value?

I'm trying to parse a shapefile with ogr and export the values to WKT. The geometries contain a m value but this is not showing in the WKT output. Does ogr support 4D/m values? # My code from osgeo ...
2
votes
1answer
173 views

Max length for WKT name

Is there max length limitation on WKT name? see the bold text below: GEOGCS["GCS_Wake_Eniwetok_1960", DATUM["Wake_Eniwetok_1960", SPHEROID["Hough_1960",6378270,297]], PRIMEM["...
6
votes
1answer
318 views

Working with ESRI WKT Spatial Reference in ArcGIS API for JavaScript?

I have been practising ArcGIS in JavaScript (for WMS layers ) and have always faced numerical values of SpatialReference like wkid: 102100, but now I faced in this format: 'PROJCS["...
1
vote
1answer
140 views

QGIS: Every input to QuickWKT results in a point at null island

If I open the QuickWKT plugin in QGIS, and choose "POINT (WKT)" from the combo box, and enter the text, POINT (30 10) I get a point at "null island" (0°N, 0°E). The entered WKT appears well-formed ...
1
vote
1answer
2k views

Converting GeoJSON to WKT with OpenLayers2

I was just wondering if there was a good way to convert GeoJSONdata to WKT data using OpenLayers. The method I've tried is to create a Feature.Vector with the GeoJson and then tried using WKT.write(...
2
votes
2answers
897 views

Custom SRS for openlayers 3 (ol3) without an EPSG code

How can openlayers 3 be told to use and work with a custom SRS-definition which has no EPSG-code? May i don't understand it but it seems like ol3 needs an EPSG- or ESRI-code to work. I found some ...
3
votes
1answer
511 views

Map Info to WKT format

I have files in Map Info format(TAB,DATA,etc) and I want to convert them to WKT(well-known text) format, so that I can store in a DB. do any of you know how to convert Map Info to WKT?
1
vote
0answers
196 views

Generating shapefiles from WKT format polygons using Arcpy? [closed]

I am working with a database containing a geography field representing the Admin1 boundaries of countries. I would like to draw a map of the Admin1 boundaries of Somalia: params = urllib.quote_plus(.....
1
vote
0answers
528 views

How to convert ESRI .prj WKT string to Proj4 string WITHOUT GDAL

ESRI shapefiles include a .prj file containing CRS information in Well-Known Text (WKT) format. I'm developing a software in which I need to systematically read shapefiles' CRS information, convert it ...
1
vote
0answers
135 views

How to define a Topocentric CRS in OGC WKT form?

I'm trying to construct a DerivedCRS in OGC WKT form that describes a 3D local rectangular coordinate system that is sometimes referred to as an LSR or ENU or Topocentric. It has an origin described ...
2
votes
1answer
1k views

How can I convert a CSV file of WKT data to a shapefile using QGIS 2.01

Is it possible to create a shapefile directly from a CSV WKT file in QGIS 2.01? WKT POLYGON(...) POLYGON(...) Save as shapefile doesn't seem to work.
2
votes
0answers
94 views

From shapefiles to a database [closed]

I've previously converted simple shapefiles to WKT so that I can store them in RDMS that has spatial capabilities. I'm a new user to QGIS, which I'm using to browse a shapefile. But now I have a ...
6
votes
2answers
181 views

Odd behaviour with MULTIPOINT layer in QGIS using delimited files and WKT

I'm writing some python to create grid lines, either as a series of densified LINESTRINGs or a set of MULTIPOINTs. The code uses shapely, and I'm writing WKT to a CSV and importing into QGIS(2.18.3) ...
2
votes
1answer
75 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 ...
1
vote
1answer
1k views

Openlayers 3: Plotting WKT format polygons on single layer from array

I am trying to plot polygons in WKT format I have in an array onto a single layer and add it to my map. I can post 1 polygon by referencing an entry in the entry (array[0]) and I have managed to plot ...
1
vote
2answers
350 views

own style for each WKT

I have this code and it works fine: <script> var raster = new ol.layer.Tile({source: new ol.source.OSM()}); var wkt = 'LINESTRING (30 10, 10 30, 40 40)'; var wkt2 = 'LINESTRING (0 0, 5 5,...
0
votes
1answer
109 views

Add WKT to OpenLayers 3 map

I recently converted from ESRI products, and I am trying to get a grip on adding a vector layer to OL3 from features returned from the server as WKT. Here is some example code. Why I am not seeing a ...
10
votes
1answer
696 views

Differences between OGC and ISO WKT/WKB specification?

Are the OGC-Simple feature access and the ISO (ISO/IEC 13249-3:2011 "Information technology - Database languages - SQL multimedia and application packages - Part 3: Spatial") significantly different (...
3
votes
2answers
293 views

Python WKT or Proj4 lookup package

I am looking for a Python package that would allow me to input a UTM zone code and output different geo_referencing strings (for example, WKT or Proj4). Are there any lightweight, widely used packages ...
2
votes
0answers
387 views

QGIS Formatting LineString [closed]

I'm trying to visualize some directional depth slices and I'm having some trouble getting QGIS to render the lines like I want and it's been driving me crazy. I have a python script that outputs my ...
1
vote
1answer
863 views

Convert shapefile to WKT using ArcPy

I am attempting to convert a shapefile to WKT using ArcGIS 10.4. I have seen the question/answer posted here, Converting geometry to WKT using ArcPy?, which is helpful. However, when I follow the code ...
1
vote
1answer
804 views

Postgis AddGeometryColumn for WKT with different types i.e. Polygon and Multipolygon

I have some polygon data first;1;MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)), ((15 5, 40 10, 10 20, 5 10, 15 5))) second;2;POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10)) third;3;POLYGON ((35 10, 45 ...
5
votes
1answer
799 views

Preserving Curve Geometries in Leaflet

Is there any way to represent a polygon geometry that contains a curve accurately in Leaflet (from WKT)? GeoJSON conversion from WKT is insufficient as it digitizes the points of a curve out to an ...
7
votes
1answer
839 views

Export geography field from SQL for use in GIS

I currently have a table in SQL server management studio (2012) with a geography column. It definitely has valid spatial data, as I can view it in SSMS: What I want is to export the data as a ...
0
votes
1answer
77 views

Error using Postgis 2.3.1

I installed PostgreSQL 9.6, PostGIS 2.3.1 and Pgadmin III on my computer, and I was reading the documentation, so I thought that would be a great idea see the function on practice and then modifie ...
-2
votes
1answer
107 views

WKT for a doughnut shaped world projection? [closed]

I understand next to nothing when I look at a WKT string, but I've copy-pasted and used a few of them for work. However, I came to think of the doughnut shaped world in which my friends and I play ...
2
votes
1answer
225 views

WKT MultiPoint string not working in GeoServer?

I have a problem with a MULTIPOINT WKT string (SLD file for GeoServer) that is not displaying at all: <WellKnownName>wkt://MULTIPOINT((-1.5 1), (0 1), (1.5 1), (-1 -1), (1 -1))</...
5
votes
1answer
517 views

PostGis and datatypes WKT

I dont't have any experience with the geographics databases so I hope that you be patiente with me, the thing is: I know that the datatype geography is used if all you care about is measuring ...
4
votes
1answer
519 views

From featureclass (or shp) to WKT e GeoJSON

I use ArcGIS 10.1 without Data Interoperability extension and I want to convert some feature classes (point, lines and polygons) contained in an .mdb. I read some posts but can't convert my file. ...
3
votes
1answer
1k views

loading a CSV with an embedded GeoJSON polygon geometry in QGIS

This open data portal offers download as CSV file. For larger datasets, that's the only way to download the whole dataset in one go. The CSV format is pretty creative: the polygon geometry is in ...
1
vote
1answer
457 views

GeoServer: points' symbols with a WKT polygon geometry?

I need to define custom points symbols in a SLD file for GeoServer. It seems that some WKT strings are accepted and others are not. I need to draw a closed line with a fill color. The following ...
2
votes
0answers
234 views

From where can I download WKT files for US zip codes? [duplicate]

From where can I download WKT files for US zip codes? I need to plot zip code boundary on a map using OpenLayers,
1
vote
0answers
395 views

Rails - inserting GeoJSONs into PostGIS-adapted database

I'm using Rails' PostGIS adapter and RGeo-GeoJSON gems to store/serve some simple geometries in the Postgres database, but I'm having a little trouble with my database seed file... I'd like to be able ...
6
votes
1answer
127 views

Is there a common standard for how GIS information is displayed?

New to GIS programming so this might be a silly question. Is there a standard way to store/transmit how a GIS feature is to be displayed? So I can see there's loads of standard ways of storing tha ...
1
vote
0answers
98 views

What is the process of converting geodata in ArcMap 10 to WKT format? [duplicate]

Possible Duplicate: Shapefiles to Text What is the process of converting geodata in ArcMap 10 to WKT format? I am not a programmer so much, but will learn if needed. I have a set of shapefiles ...
0
votes
1answer
969 views

How to convert drawn vector feature from EPSG:900913 to EPSG:4326

My script allows you to drawn shapes on an OpenLayers map, and then to get the WKT information from that shape, except the returned coordinates are in EPSG::900913 and I need them to be in lat/lon.
3
votes
1answer
800 views

Why does projection WKT differ between osr.SpatialReference and gdalinfo

I am writing a simple geotiff using the GDAL python bindings, but the projection WKT reported by gdalinfo differs from the source. The script from osgeo import gdal, osr import numpy # Create ...
5
votes
1answer
2k views

What's this PROJ4 string in WKT?

I have this projection in PROJ4: +proj=tmerc +lat_0=41.836944 +lon_0=-87.684722 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs What's the WKT translation? I saw this site: http://cfconventions.org/...
1
vote
0answers
180 views

How to convert Common Alerting Protocol (CAP) <area> to WKT

I've come across some data being sent in the CAP (http://docs.oasis-open.org/emergency/cap/v1.2/CAP-v1.2.html) format, which in turn contains an <area> element with either a polygon or circle ...
3
votes
3answers
2k views

I have a list of coordinates that make up a route - how can I easily render this shape on a map?

Additional info - I don't need this to be on a map - I just need the shape of the route. Is there anything that can return that shape easily? The list of coordinates are in an XML document and I'd ...
4
votes
1answer
4k views

QGIS, WKT (Well Known Text) LINES and POLYGON files loaded ok, but POINT not

I have several files in WKT format, and something strange happens when I import them in QGIS (v.2.18.1) (layer->add layer->add delimited Text Layer), files containing lines and polygons are correctly ...
0
votes
2answers
2k views

Converting WKT to WKB in Java using PostGIS?

How can I convert a WKT string to a WKB byte[] in Java using PostGIS functions? I need to save that WKT string in a PostGIS database (geometry column.
2
votes
0answers
43 views

3D wkt geometries - Parse in .Net suggests alternate form

I am having some issues with a built in .net framework class (System.Data.Spatial.DbGeometry in assembly System.Data.Entity). It turns out that this class cannot parse 3D geometries when they are ...