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.

learn more… | top users | synonyms

2
votes
2answers
256 views

Iterating polygons on a SpatialPolygonsDataFrame in R with readWKT

I have fetched some data (39 objects) from my PostGIS database and converted this data into a matrix: rs <- dbSendQuery(con, "SELECT ST_AsText(polygon_accumulation) AS ShapeWKT from ...
0
votes
1answer
536 views

OpenLayers create marker (feature with icon) from WKT

I have a point object WKT. Like this: POINT (25.04568 48.221548). Also I have an icon in my project folder. My goal is to show on a map an icon that represents a feature. Can it be just a normal ...
1
vote
1answer
17 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. ...
0
votes
1answer
28 views

Does OpenLayers3 support WKT format?

How can i show spatial data(Point, LineString,Polygon) on bing map using openlayer3?
0
votes
1answer
32 views

How to convert this geometry location format to a qgis usable format?

I am a beginner with regard to dealing with gis information, so please bear with me. I would be obliged if someone could help. I have data on asssembly constituencies of Delhi, with these ...
2
votes
3answers
150 views

How to change 0,360 WKT string to -180,180?

I'm reading POLYGON WKT strings using OpenLayers.Format.WKT().read(). The polygons use 0,360 longitudes but my map is -180,180. When I display the polygons on the map they are displayed outside of the ...
5
votes
2answers
982 views

Are there any online WKT editors?

I've been using QGIS and it's great. However, we can't use that because it has to be installed (please, don't ask). Instead, what we need to do are very simple administrative boundary drawings over a ...
13
votes
6answers
5k views

Convert between ESRI Geometry and WKT

It seems like there is no means of converting an ArcObjects geometry to the Well-Known Text representation (and vice versa) in ArcGIS ArcObjects API. The only thing I was able to find is conversion to ...
2
votes
2answers
108 views

Openlayer 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 coords from a shapefile which has a lot of points, for instance some regions can have a multipolygon with in ...
2
votes
1answer
66 views

Well-known text (wkt) validator

Is there anything like http://jsonlint.com or http://geojsonlint.com for WKT? How can I validate a complex WKT string, say e.g. a Multipolygon?
0
votes
0answers
14 views

Getting EPSG:4326 WKT data for use in Drupal Geofield [duplicate]

As I understand it, EPSG:3857 is measured in "meters" and EPSG:4326 uses latitude and longitude. In Drupal, geofield seems to want to store "EPSG:4326" data using the WKT widget -- even though the ...
1
vote
1answer
69 views

Represent full globe in Oracle Spatial

In SQL Server 2012 I can do this: -- Construct a new FullGlobe object (a WGS84 ellipsoid) DECLARE @Earth geography = 'FULLGLOBE' -- Calculate the area of the earth SELECT PlanetArea = ...
1
vote
0answers
27 views

Working with WKT data in XML File in SQL Server

Anyone have experience with importing XML files into SQL server 2008 or 2012 that have a WKT element that includes the geometry for each feature? I can get this to easily work using FME software but ...
1
vote
0answers
77 views

QGIS 2.2 saving layer as CSV with GEOMETRY=AS_WKT not working

Just upgraded to QGIS 2.2 and it looks like saving a layer as CSV doesn't support GEOMETRY=AS_WKT anymore. The new Layer Options portion of the save dialog is cool but it looks like GEOMETRY and ...
1
vote
1answer
58 views

WKT for local mine grid

I have been trying to create a WKT entry to use in gdalwarp etc. I need an affine transform from coordinates in MGA94 Zone 54 to our local mine grid. All efforts have so far failed, including using ...
0
votes
2answers
44 views

How to create path based on waypoints?

I am trying to map flight paths and compare historic paths with current ones (so I later need to perform some calculations as distances between them). For this task I am using QGIS on OSX 10.9.1 As ...
0
votes
0answers
45 views

How to export WKT with QGIS suitable for Geophp

I like to be able to import the coordinates of may polygon shape file into a php based webapplication. (drupal) However after adding coordinates in my shape file and saving it as CSV i am not able to ...
2
votes
1answer
59 views

How can I convert a csv file of WKT data to a shape file 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. Thanks!
0
votes
2answers
146 views

How can I find the SRID from the WKT out of a GRIB file?

I have a grib2 file which I'm trying to import into PostGIS 2.0 Raster and process. Trouble is, I can't figure out what the SRID is supposed to be, or one close enough for government work. Running ...
1
vote
1answer
196 views

Converting wkt to geojson with OpenLayers

I am trying to convert wkt to geojson wit OpenLayers. I wrote my code based on this question (geojson to wkt). That's what I have so far, but it is not working. Any ideas? var = ...
2
votes
0answers
116 views

From where can i download WKT files for US zip codes?

From where can i download WKT files for US zip codes ?? i need to plot zip code boundary on a map using open layers
0
votes
0answers
41 views

Using Terraformer to convert to WKT

I'm using Terraformer to parse some ArcGIS JSON into a Terraformer primitive. I'd like to store the geometry in PostGIS for other purposes. So I'm trying to use the WKT.convert tool to convert this ...
1
vote
1answer
36 views

Trying to read string-based binary (?) code into something like WKT to be read by a spatial database

I've recently received some parcel data that has "shape" columns which are strings by default and look something like this: ...
6
votes
4answers
1k views

How to convert geometry to WKT using ArcPy?

I would like to be able to convert a single feature (or potentially many features) in an ArcGIS layer into Well Known Text (WKT) format during a geoprocessing operation using Python and ArcPy (no ...
2
votes
2answers
423 views

How to read csv with WKT geometry in Arcmap?

I have found several parcels I need on a county map viewer. However, the only option to download any of the data is found on a click context menu to "Copy selection as csv" which gives me this: ...
0
votes
2answers
133 views

Converting WKT to WKB

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. Thanks
3
votes
2answers
324 views

Google Maps Polygon to WKT

I need to convert a Google Maps polygon object (can has multi paths and holes) to wkt string (multipolygon) at client. Then i'll able to save polygon as geography in Sql Server 2012. I tried Wicket ...
2
votes
2answers
3k views

Converting 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
0
votes
1answer
153 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 ...
0
votes
1answer
68 views

Probably base64 encoded WKB - Reading in QGis/ArcGIS?

I have a probably base64 encoded WKB string. How would I load that feature represented by the string into QGis or ArcGIS? I found the QGis QuickWKT plugin, but that does not handle my base64 encoded ...
10
votes
3answers
1k views

Looking for a pythonic way to calculate the length of a WKT linestring

I was quite unsatisfied with Calculating Length of Linestrings in WGS84 in Miles. It kept me wondering if there is a more convenient, Pythonic way to calculate the length of a WKT linestring according ...
4
votes
0answers
160 views

What traits identify 2D, 2.5D, 3D geometries, and how can you convert downward, such as from 2.5D to 2D?

In answering this question, posed by @Burton449, I came to realize I don't have a definitive grasp on what distinguishes 2D, 2.5D, and 3D geometries. I certainly realize Z/elevation values are ...
1
vote
1answer
266 views

Converting geojson to wkt with OpenLayers

I was just wondering if there was a good way to convert GeoJson data to WKT data using OpenLayers. The method I've tried is to create a Feature.Vector with the GeoJson and then tried using ...
0
votes
1answer
110 views

add wkt representation of the geometry as field in qgis

I have the shapefile of boundaries loaded in qgis. I want to add a field in the file which is WKT representation of the feature. Update As Nathan W answered I used geomToWKT( $geometry ) and got ...
2
votes
1answer
106 views

How to construct geographies from WKTs

I am using a SQL Server 2012 database. I have noticed that geometries and geographies interpret WKTs differently. For instance, if I construct a square polygon, clockwise: DECLARE @geom ...
4
votes
2answers
139 views

can Well Known Text tables be used effectively, stored in Access or Base?

My question is: How do I import WKT text data back into QGIS, and how useful could Base or Access be in storing the data using WKT rather than spatially enabling it within a proper GIS database, like ...
0
votes
1answer
69 views

Mapguide and OpenLayers SRS WKT

I am trying to create OpenLayers vector features based on WKT strings that I retrieve from a MapGuide server. I have successfully gotten the proper geometry to be rendered, but I do not know how to ...
2
votes
1answer
78 views

How can i programmaticly get the WKT from WKID?

Is there some way (in C#/silverlight) to get the WKT from some web service with just the WKID?
0
votes
2answers
246 views

How does MYSQL accept the WKT representation of a polygon with holes?

I have a set of coordinates that creates a polygon with holes in it. I'm using qgis with mmqgis to extract. How does MYSQL accept the WKT representation of a polygon with holes? By holes I mean ...
0
votes
1answer
189 views

OpenLayers - changing layer type (wms to OSM) and WKT transformation problems

I've created the very simple tool which utilizes OpenLayers.Format.WKT with DrawFeature - polygon and ModifyFeature together, so I can create and modify, load and save polygons in/from WKT format. ...
2
votes
1answer
242 views

Detecting invalid WKT in text column in SQL Server

I've got a whole load of WKT data in a SQL Server table, of which I'm trying to detect the validity. I'm currently doing a query like this: UPDATE f SET f."CurrentGeomValid" = ...
3
votes
0answers
100 views

PostGis functions vs. EWKT

While using PostGis, we can query using EWKT format like: SRID=4326;POINT(lon lat) or use the functions defined by PostGis itself. For example: ST_SetSRID( ST_MakePoint( lon , lat ) , 4326 ) I'm ...
1
vote
0answers
89 views

Write WKT/WKB to File Geodatabase using FGDB API

Is there a way to set the geometry of a row using either WKT or WKB with the File Geodatabase API? Is there any other way to write spatial data to the file gdb using the fgdb api without having to go ...
0
votes
0answers
24 views

How to convert EPSG:900913 or EPSG:4326 to EPSG:27700 using Proj4js (or to set displayProjection to EPSG:27700) [duplicate]

I'm using openlayers to create a vector feature (e.g. polygon, point) and i would like the geometry values of these vectors to be stored as EPSG:27700 coordinates (so when i send them off in WKT ...
1
vote
0answers
102 views

Trying to convert to EPSG:27700 (Ordnance Survey) projection, unable to do so

I'm trying to code an interface that allows a user to draw a vector shape on openstreetmap, which is then converted to a WKT string, processed by the server and sent of as a WFS query to emapsite ...
0
votes
1answer
207 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 900913 and i need them to be in lat/lon. thanks
3
votes
2answers
1k views

Is there any efficient way to convert Geojson to WKT?

I want to use ST_GeomFromText() to load vector data to PostGIS. However, I don't know how to convert from Geojson type to WKT. N.B. I know I can use OGR2OGR to upload the geojson directly, but I just ...
1
vote
2answers
65 views

WKT number format inconsistent?

The WKT specification allows both period and comma to be the decimal separator in floating-point numbers (section 7.2.1): <decimal point> ::= <period> | <comma> However, a ...
3
votes
5answers
490 views

javascript WKB to WKT function

Turns out json ain't so good at transporting binary data. But with HTML5, XHR2 is now capable of transferring blobs cleanly. I'm looking to transfer binary geometry (to save bandwidth) and decode it ...
1
vote
1answer
139 views

ArcSDE/ST_Geometry: Can I store polygon and point geometries in same row?

In the system I'm building, we've got a facility that can be represented as either a point, or a point within a polygon (the point in the polygon may or may not be the polygon's centroid). I'm using ...