Skip to main content

Questions tagged [well-known-text]

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
0 votes
0 answers
23 views

Loading null geometry using vector datasource

I have downloaded a very large file of polygon multiparcels as a CSV with supporting csvt and vrt metadata using QGIS and the Vector loader dialog. It loads into a layer beautifully including varchar(...
KimO's user avatar
  • 345
1 vote
1 answer
56 views

How to use ogr2ogr -segmentize on a CSV file?

Here each line only has two nodes. $ cat file.csv WKT,ID,Name "LINESTRING (-900 -1450,-900 100)",0,900W "LINESTRING (-800 -1450,-800 100)",1,800W How can I use ogr2ogr -segmentize ...
Dan Jacobson's user avatar
3 votes
3 answers
164 views

Plotting a CSV file containing multiple co-ordinates of a route as points on QGIS

I have a CSV file with 3700 routes, with each route represented by a row and the respective co-ordinates of that route in the following format. Since the distance of each route varies, the no of lat-...
Siddharth M's user avatar
0 votes
1 answer
136 views

Convert WKB geometry to WKT

I am using DuckDB in order to access buildings polygons (an open dataset). query = f""" SELECT type, height, level, class, JSON(names) as names, JSON(sources) as ...
ReutKeller's user avatar
  • 2,169
1 vote
1 answer
34 views

Adding Multipoint layer OpenLayers for snap interaction

I am trying to implement snap on my map, getting snap nodes as a multipoint wkt as snap_nodes and creating and adding a layer, but the layer doesn't show snap_nodes = MULTIPOINT((350095.29 650021.37),(...
Smita Verma's user avatar
0 votes
2 answers
45 views

Cannot parse OGC WKT2 file

I am trying to parse a OGC WKT 2 string downloaded from https://epsg.io/5822 (shows in the Export - OGC WKT 2 section of the page) I tried to parse it using geotool's org.geotools.geometry.jts....
Vladimir Smogitel's user avatar
1 vote
0 answers
35 views

How to write GeoSPARQL query when hexadecimal representation of a binary encoded geometry

I am trying to write a GeoSPARQL using the geometry column of a layer imported from QGIS to PostGIS. The format of the geometry column is hexadecimal representation of a binary. When I try to use geo:...
BHH's user avatar
  • 21
1 vote
1 answer
73 views

Importing vector layers where geometry is WKT in PostGIS

I am trying to import the layers in QGIS to PostGIS. However, I want the geometry imported to be WKT and not WKB. How can I do that?
BHH's user avatar
  • 21
-1 votes
1 answer
44 views

Converting Here API WKTShapeType Multipolygon To GeoJSON?

I have access to a data source that looks like: "Shape": { "_type": "WKTShapeType", "Value": "MULTIPOLYGON (((-128.9102 50.82492, -128.90881 50.82422,...
Lloyd Banks's user avatar
0 votes
0 answers
58 views

Convert WKT varchar(max) representation in SQL Server to geometry in QGIS

I have a varchar(max) column in a SQL Server table that contains WKT that I want to display in QGIS. I can't change the database, so can this be rendered as polygons in QGIS? I have seen this thread ...
Feargal Hogan's user avatar
0 votes
0 answers
43 views

Turning projection into WKT string

I have a grid which is constructed using the procedure described in this paper: https://journals.ametsoc.org/view/journals/mwre/127/12/1520-0493_1999_127_2733_ctoasu_2.0.co_2.xml The procedure ...
akvilas's user avatar
  • 103
4 votes
1 answer
254 views

What format is this CSV written in?

I would like to work with this set of data and transfrom it into an shapefile, but I have no clue which language it is written in, nor how to convert it. Any hints?: id,geo_point_2d,geo_shape,muerdago,...
Giscap's user avatar
  • 51
3 votes
1 answer
84 views

Map points shifted after update from 3.8.3-Zanzibar to 3.34.1-Prizen

I'm in the process of setting up a new laptop, so need to migrate my QGIS project to the new computer. It's been a while since I've updated QGIS so the old computer is running 3.8.3-Zanzibar. The new ...
Dr_Chris's user avatar
0 votes
0 answers
46 views

QGIS WKT export not importing as closed polygon to Google MyMaps correctly

I am attempting to export a small area geography file from QGIS into Google MyMaps in a CSV WKT format. Whilst it displays absolutely fine if exported as .kml, when I import it as the WKT, a few ...
Christopher Chiswell's user avatar
3 votes
2 answers
214 views

ST_ReducePrecision function does not work properly

I am trying to use ST_ReducePrecision to reduce the number of characters, because of the character limit in power bi cells. ST_AsText(ST_ReducePrecision(ST_Transform(geom, 4326), 0.000001)) The result ...
Matheus Clarkson's user avatar
1 vote
1 answer
81 views

OGC WKT Format for Polygon From Sketch Widget ArcGIS JS SDK

In the ArcGIS JS 4 SDK, there is a sketch widget that allows one to draw different shapes on the map of your choosing. I implemented this to an iframe on my site. However, I need code to help me get ...
mendesd's user avatar
  • 35
0 votes
1 answer
51 views

WKT Conversion: Object: Error in executing tool

I have a script below where I am trying to convert a CSV of a WKT polygons that I would like to export out into a shapefile and keep getting the following error on line 21 with: arcpy.management....
Holly's user avatar
  • 1
0 votes
0 answers
49 views

How to apply an SLD containing WKT to symbology in QGIS?

I have an SLD symbology code in GeoServer Here's how it looks in GeoServer. <se:Rule> <se:Name>Single symbol</se:Name> <se:PolygonSymbolizer> <se:Fill> <se:...
JackNo339's user avatar
0 votes
1 answer
35 views

Convert Canadian census subdivision polygons to WKT (4326) using ogr2ogr?

We've got a large dataset that is in 4326. I'd like to integrate Canadian CSD data from the statcan website into it. But the polygons are in a coordinate system that I don't recognize. Probably Canvec ...
jcollum's user avatar
  • 153
0 votes
0 answers
29 views

gdaltransform Cartesian transform change 2.2.0 to 3.4.1 proj.4 to?

Here are my results with 2.2.0 and 3.4.1. Can someone explain why this has changed? echo -e "6720419.518191041 1878355.8391366536 1387.976960406033" | \ gdaltransform \ -s_srs "+...
Shanteva's user avatar
  • 103
0 votes
1 answer
59 views

Does QGIS no longer have the option to save a shapefile as WKT file?

Does QGIS no longer have the option to save a shapefile as WKT file? In the “Geometry” section, there is no option “Well Known Text (WKT)” as the “Type” option. Does any one know why? and if there is ...
Z N's user avatar
  • 111
0 votes
0 answers
51 views

Problem with Triangulation

I have a polygon: POLYGON((10 12,10 8,9 8,9 13,10 13,10 15,11 15,11 13,12 13,12 15,14 15,14 13,15 13,15 8,13 8,13 12,12 12,12 9,11 9,11 12,10 12)) and I need to triangulate it, so what I'm doing is ...
user17952421's user avatar
0 votes
0 answers
43 views

Assign (update) CRS for new created from npz file - LAZ file in Python

I need to create LAS/LAZ file from npz multidimensional array. NPZ file contains 3 arrays inside array['wkt', 'data', 'max_min']. array['data'] contains list of X, Y, Z - coordinates that used for ...
asdqwery's user avatar
1 vote
1 answer
2k views

Reading CSV with WKT column straight into a GeoPandas GeoDataFrame with geometries

Is there a good way to read CSVs that contain a WKT column straight into a GeoPandas GeoDataFrame? I've seen several solutions that take a two-step approach: Read the CSV into a Pandas DataFrame Pass ...
Felipe D.'s user avatar
  • 2,679
0 votes
2 answers
47 views

Custom Projection with Offset from EPSG:28350

our local grid has easting offset 700_000 northing offset 7_500_000 within EPSG:28350 origin How can I extend EPSG:28350 OGC WKT below to add the above offset? PROJCS["GDA94 / MGA zone 50", ...
Lydon Ch's user avatar
  • 511
1 vote
0 answers
99 views

How many coordinate pairs POLYGON(()) needs in QGIS

I have a .csv file containing a POLYGON(())). For years I have been using 5 pairs of coordinates to draw a 4 sided polygon; the first and last being the same to 'close' the shape. That idea is based ...
WillH's user avatar
  • 455
2 votes
0 answers
96 views

ArcGIS Export attribute table from imported GeoJSON to CSV w/Geometry

I'm trying to use GeoJSON files to generate CSV that I can then upload to my data warehouse and use the geography fields to create a connection between the lat/lng in the database and the GeoJSON map ...
Moseleyi's user avatar
  • 291
2 votes
1 answer
487 views

Import CSV data containing WKT with GEOMETRYCOLLECTION() to QGIS

I have a CSV file containing geodata in WKT in one column. The geometry type is GEOMETRYCOLLECTION. How do I import this to QGIS with one layer per geometry type (POINT and LINESTRING in this case)? ...
winnewoerp's user avatar
  • 1,504
2 votes
1 answer
112 views

Different OGC WKT strings for EPSG:3135 in reference sources

I found two sources for getting WKT strings: https://www.spatialreference.org/ https://epsg.io/ But there are differences in OGC WKT string in these two sites for coordinate system EPSG:3135. The ...
sokolik745's user avatar
0 votes
1 answer
84 views

OpenLayers - "polygon.getLayout is not a function" while creating a MultiPolygon

I'm having trouble creating a WKT. The point of the code is to get the current map extent and send it to the server in a WKT format. Here's the code : let format = new WKT(); // get map extent let ...
Godzilla's user avatar
0 votes
1 answer
2k views

How to read WKT files with Python [closed]

I want to read a WKT file with the path "path.wkt" to work with it in Python. The file has the following format: MULTIPOLYGON (((8.670759751629118 47.68652606800615, 8.666622492582087 47....
Paulo Matias Montecinos Medel's user avatar
0 votes
0 answers
839 views

Generate WKT from geometry type in SQL Server

I have a bunch of polygon data in a SQL Server database. Most of the data was created in Google Earth and exported as KML, then imported to SQL Server as WKT before conversion to geometry. Each record ...
Feargal Hogan's user avatar
4 votes
1 answer
144 views

WKT not using "metre" as measure unit in SLD

After solvig this question, seems WKT is not respecting my intent to use "metre" as measure of distance. I have this SLD: <FeatureTypeStyle> <Rule> <...
Magno C's user avatar
  • 2,150
1 vote
1 answer
177 views

Using WKT in SLD

I have a Point geometry and need to draw some shape (a Polygon for now) when styling. Lets say I have this SLD: <Rule> <PointSymbolizer> <Graphic> <Mark> &...
Magno C's user avatar
  • 2,150
4 votes
1 answer
204 views

How to replace polyline Z value equal to Nan is PostGIS?

In some polylines stored in PostGIS, I found Z values equal to NaN. For example: LINESTRING Z (30 10 0, 10 30 nan, 40 40 nan) I want to replace the 'nan' with 0 to prevent subsequent errors.
tim's user avatar
  • 417
1 vote
1 answer
835 views

Convert ESRI JS Graphic geometry into WKT format

I am drawing an object on map and retrieving it's geometry using following code: this.draw = new SketchViewModel({ layer: this.drawLayer, view: this.view }); this.draw.on("create", function(...
gisit's user avatar
  • 447
1 vote
0 answers
71 views

CRS rotation in Geoserver

I want to add rotation angle for a custom metric CRS, that I created before in the Geoserver. I tryed two methods: Adding a WKT-stroke of rotated CRS to the Geoserver as usual. The example of such ...
Anna's user avatar
  • 43
5 votes
1 answer
242 views

Export WKT to CSV from QgsVectorLayer with QGIS Python

I'm trying to export QgsVectorLayer format into a csv with WKT? I'm really have a hard time understanding the QGIS python documentation. I don't even see any option for Geometry. Even though I saw ...
AdamGIS's user avatar
  • 149
0 votes
1 answer
623 views

Formating a WKT CRS string in a way that R can read it

I have selected a custom CRS using the website https://projectionwizard.org/. I chose this custom CRS because I needed a map of the Neotropics (+ or - from the south of the US to the north of ...
Thales Moreira De Lima's user avatar
4 votes
1 answer
137 views

Creating QgsGeometry from Extended-WKT or Extended-WKB

Creating a QgsGeometry using a WKT/WKB string is a fairly standard procedure using pyqgis: wkt = 'MULTIPOLYGON (((0 0, 1 1, 1 0, 0 0)))' wkb = '...
CodeBard's user avatar
  • 3,571
1 vote
0 answers
111 views

Coordinates extracted from PDF are not exact

I'm working on rendering a georeferenced PDF within a map, I was able to retrieve the geolocation information from the PDF, but the coordinates I receive are not correct, they are a few meters apart ...
Paulo Ricardo's user avatar
2 votes
1 answer
318 views

Incorrect coordinate conversion results from ProjNET when converting across horizontal datums

Been fighting this for almost a week now, so I'm hoping that someone here has some insight or can tell me the obvious thing I'm missing. I am trying to add programmatic coordinate conversion on the ...
Ruud A.'s user avatar
  • 21
0 votes
0 answers
69 views

Custom coordinate operation in GeoServer

I'm trying to create custom Coordinate Operation in GeoServer version 2.22.0, but I get this error in the geoserver.log: WARN [referencing.factory] - Error creating transformation: CONCAT_MT[ ...
Kenshin's user avatar
0 votes
0 answers
132 views

geoalchemy2, WKT on local env, EWKT in production

I am working with an REST API for geospatial data using flask. When working on it locally everything has been fine. I am posting WKT data to the local server to create new objects. But if I send WKT ...
geogrow's user avatar
  • 1,693
2 votes
1 answer
577 views

What is correct format for a WKT linestring file with date/time in QGIS

I have a spreadsheet with data in format shown below and want to load in QGIS as WKT file for a Temporal animation. I have checked in Wikipedia but there are no examples of Linestring with date and no ...
Vic's user avatar
  • 431
2 votes
1 answer
193 views

Compound CS in WKT, with missing authority ID

I'm trying to define a compound coordinate system, made by a horizontal CS and a vertical datum, using OGC WKT. Apparently, an EPSG CRS code for the combined system does not exist. What should I do ...
blandro's user avatar
  • 21
3 votes
1 answer
130 views

Adding custom WKT in MapInfow.proj

How can I add a custom WKT projection in MapInfow.proj file? Below is my WKT parameters: WKT PROJCRS["unnamed", BASEGEOGCRS["unnamed", DATUM["World Geodetic System ...
Melvin's user avatar
  • 31
0 votes
0 answers
141 views

WKT header spatial reference errors

Trying to open a created point cloud but it was rejected for its spatial reference in its header properties. Can anyone suggest how to fix this issue? Do we need to rewrite the WKT in the LAS File? If ...
Shawn Hayden's user avatar
1 vote
1 answer
451 views

Using projection information in WKT form to define projection for raster in ArcGIS Pro

I have a raster file with Unknown Coordinate System and a WKT-file that has the CS information. How do it connect those two in ArcGIS Pro? The Define Projection tool gives me an option to create a new ...
Sn0W's user avatar
  • 155
0 votes
2 answers
164 views

Inserting geometry objects into existing layers with ArcPy

I'm trying to add new features to a layer based on geometries created from a list of WKTs. The code I have so far: Creates a polygon layer and sets the projection (NAD83) Creates a geometry object (...
ArcPie_22's user avatar

1
2 3 4 5
9