[gdal-dev] 3D TIN support in WKBs
Even Rouault
even.rouault at spatialys.com
Fri Mar 13 21:35:17 PDT 2015
Selon Gergely Czuczy <gergely.czuczy at harmless.hu>:
> Hello,
>
> I would like to ask whether there's any support for reading 3D TIN data
> from WKBs, and if so, how can I do this?
>
> Currently when I try to read the following's WKB:
> TIN Z (((512 -512 0,512 512 0,-512 -512 0,512 -512 0)),((512 512 0,512
> -512 0,-512 -512 0,512 512 0)))
> I get the error message:
> ERROR 6: Unsupported WKB type 1016
> ERROR 3: OGR Error: Unsupported geometry type
>
> I would like to read TINZ data from PostGIS into C++ and Python
> programs, however there doesn't seem to be many libraries that support this.
>
> So, how can I read such 3D TINs using GDAL?
Gergely,
There's no support in GDAL for TIN. If you would want to implement it, you could
take inspiration of what has been done recently to support curve geometries.
Reading http://trac.osgeo.org/gdal/wiki/rfc49_curve_geometries should direct you
at the places to modify.
If you want to take a shorter route, you could just parse the WKB/WKT returned
by PostGIS at your application side.
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list