[fdo-dev] FGF and spatial context

Robert Fortin robert.fortin at autodesk.com
Thu Nov 2 12:01:56 EST 2006

FGF is based on OGC WKB specification from Simple Feature specification
and is designed to be lightweight and as efficient as possible.   WKB
doesn't store the coord system info with the geometry binary so FGF
doesn't either. If we were to keep the info on the related SC with each
a) It would make it much heavier (I assume the correct info to preserve
would be the WKT so it can be shared between providers).
b) If we wanted it to keep it lightweigth we would have to create a
common based for coordinate system (a coordinate system catalog).  As
you could see, FDO doesn't have coord system capability although there
was discussion to add an API around it few years ago.  
Another reason for not storing the SC with each FGF is because it is not
a requirement for FDO Providers to have the capability of doing
projection. The data must be passed in the correct projection so it can
be consumed by the target connection. Projection of FGF is done by
client apps and not by the provider itself.  The apps generally know
where the data came from and where it is going.
Using SQLCommand, you bypass a lot of the FDO infrastructure and while
doing so, you loose some of the metadata that would be available
otherwise. But I guess you have a good reason for using SQLcommand
instead of SelectCommand. 
As for ActiveSpatialContext, this was a legacy from other eras that was
made obsolete after we added the association between geometry property
and spatial context.   We think this is a better concept because it
enable pro Nobody relies on that anymore.


From: Haris Kurtagic [mailto:haris at sl-king.com] 
Sent: Thursday, November 02, 2006 6:52 AM
To: dev at fdo.osgeo.org
Subject: [fdo-dev] FGF and spatial context

I came across issue converting a FGF format to provider specific (
Oracle ).
To convert it properly provider needs to know Spatial Context, and when
I am doing it for feature class queries it is ok in a sense that I can
get spatial context (and SRID) from geometry property.
But, I came across problem, when I wanted to use FGF as parameter in
FdoISQLCommnad, then from FGF itself I can't get spatial context.
I can imagine that concept of ActiveSpatialContext can help, but once I
asked here about it I got replied that this concept of Active Spatial
Context is going out.
Regardless of Active Spatial Context that I think it would be benefit if
in FGF could hold spatial context association in it ( perhaps to add a
kind of id for spatial context  which would be provider specific ) .
If there is a chance of extending a FGF format I would like to point on
issue of repeating of data in that format, for example: for every point
in multipoint there is again gtype saying it is a point and
dimensionality .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/fdo-internals/attachments/20061102/f854af45/attachment.html

More information about the Fdo-internals mailing list