[fdo-internals] Parsing WKT geoemtry with measure/dimensionality

Frank Warmerdam warmerdam at pobox.com
Mon Feb 25 16:26:58 EST 2008

Simon Pelicon wrote:
> Hi!
> I have a problem parsing WKT geometry with M or Z dimension.
> For example in WKT documentation specification, point with M is defined 
> as in the example below:
> Point M (10 10 40)
> But parsing this to geometry in FDO returns this error:
> m_cause = 0x01693a30 {m_message=0x01693a80 
> "(.\Src\Geometry\Parse\ParseFgft.cpp: 88) String is not a valid FGF 
> string. "
> Fdo documentation says that: The Autodesk extension to WKT, referred to 
> as FGF Text, is a superset of WKT
> (that is, you can enter WKT as valid FGF Text strings). Dimensionality 
> is optional. It can be XY, XYM, XYZ, or XYZM.
> I am confused about dimensionality specification now.
> WKT specification puts only M or ZM ,but FDO requires XY in front of M 
> or ZM.


I think the problem is that you are looking at the "new" Simple Features
geometry specification, while FDO's FGF parser was written to the old
one.  The new specification was only released within the last year I

It certainly would be desirable (in my mind) for the FDO geometry parser
to support both variations to the extent possible.

BTW, the old simple features geometry specification did not include
Z or M dimensions though there were some common approaches to supporting
them in use in the wild.

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org

More information about the fdo-internals mailing list