Highlights from
WKT2GEOSTRUCT

  • geostruct2wkt(geostructs,...
    GEOSTRUCT2WKT convert geostruct(s) to Well-known text (WKT) string(s)
  • wkt2geostruct(wkts, geoco...
    WKT2GEOSTRUCT convert Well-known text (WKT) string(s) to geostruct(s)
  • View all files
Be the first to rate this file! 5 Downloads (last 30 days) File Size: 2.97 KB File ID: #44148

WKT2GEOSTRUCT

by

 

31 Oct 2013 (Updated )

Convert Well-known text geometries to geostructs

| Watch this File

File Information
Description

WKT2GEOSTRUCT converts geometries in the Well-known text markup language to geostructs (or mapstructs). The structs it creates are the type used/created by functions from the Mapping Toolbox.

GEOSTRUCT2WKT as the name would suggest, does the inverse of WKT2GEOSTRUCT. It generates WKT representations of geostructs (or mapstructs).

Well-known text: http://en.wikipedia.org/wiki/Well-known_text

Supported shape types
---------------------
WKT2GEOSTRUCT only supports a subset of the WKT format.Only 2 dimensional geometries without a linear reference are supported.
The supported types are:
  * Point
  * LineString
  * Polygon
  * MultiPoint
  * MultiLineString
  * MultiPolygon (not supported by geostruct2wkt atm)

Required Products Mapping Toolbox
MATLAB
MATLAB release MATLAB 8.1 (R2013a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Updates
21 Nov 2013

Made Polygons with interior rings work.
Also changed the for to a parfor.

04 Jun 2014

Fix a regex that Octave didn't like.

21 Jun 2014

Added `MultiLineString` and `MultiPolygon` support.

29 Jun 2014

Added geostruct2wkt function.

Contact us