wkt-types: A library for working with .wkt files.

[ bsd3, geometry, gis, library, ogc, parser, well-known-text, wkt ] [ Propose Tags ] [ Report a vulnerability ]
Versions [RSS] 0.1.0.0
Change log CHANGELOG.md
Dependencies attoparsec (>=0.14.4 && <0.15), base (>=4.7 && <5), bytestring (>=0.12.1 && <0.13), hspec (>=2.11.9 && <2.12), text (>=2.1.1 && <2.2) [details]
License BSD-3-Clause
Copyright 2024 Gabriel Tollini
Author Gabriel Tollini
Maintainer gabrieltollini@hotmail.com
Category Geometry, GIS, Parser, WKT, OGC, Well-Known-Text
Home page https://github.com/gtollini/wkt-types#readme
Bug tracker https://github.com/gtollini/wkt-types/issues
Source repo head: git clone https://github.com/gtollini/wkt-types
Uploaded by gtollini at 2024-07-18T03:12:13Z
Distributions LTSHaskell:0.1.0.0, Stackage:0.1.0.0
Downloads 56 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2024-07-18 [all 1 reports]

Readme for wkt-types-0.1.0.0

[back to package description]

wkt-types

This library implements parsers for .wkt files, based on the specification at https://www.ogc.org/standard/sfa/. For lack of clarity, some geometries (triangles/TIN/polyhedralSurfaces) aren't completely implemented yet.

How to use

Data.WTK.IO exports two key methods, readWKTFile and writeWKTFile. When read, a .wkt file will be interpreted into a Geometries object. You can manipulate it at will, and then use writeWKTFile to write the .wkt file for the new Geometries. Individual types such as Point, LineString, Polygon, etc. also have their own individual parsers, serializers (fromWKT) and deserializers (toWKT).

Geometries are always read with Double as its base type for simplicity, but can be changed through fmaping.