[fdo-dev] FDOIApplySchema

Haris Kurtagic haris at sl-king.com
Mon Oct 23 08:09:46 EDT 2006


Hi Orest,
Thank you, I've imlemented it exactly like that (keeping inside one
session). Right now I don't how to convert from ogc wkt soordinate
system to Oracle coord sys.
In application I am working on I left to user to find the match from ogc
to srid. 
Is there any way to do that ? Again not sure if this is question for
this list but I don't know better place to ask :).
 
Haris
 
________________________________

From: Orest Halustchak [mailto:orest.halustchak at autodesk.com] 
Sent: Monday, October 23, 2006 2:01 PM
To: dev at fdo.osgeo.org
Subject: RE: [fdo-dev] FDOIApplySchema


Hi Haris,
 
Yes, you would have to create a spatial context first using
FdoICreateSpatialContext, unless you had existing spatial contexts that
could be used. The provider would have to save that information. Yes, if
the provider is not keeping metadata then it wouldn't be able to save
that information past the end of the session. Although if you create new
class and geometry property definitions that use that spatial context,
you would have the coordinate system information saved as Oracle
metadata.
 
Orest.

________________________________

From: Haris Kurtagic [mailto:haris at sl-king.com] 
Sent: Sunday, October 22, 2006 10:16 AM
To: dev at fdo.osgeo.org
Subject: RE: [fdo-dev] FDOIApplySchema


Hi,
 
1. I suppose I wasn't thinking enough on first question bellow.     
I suspect that, it is supposed that client would first call
FDOICreateSpatialContext for all spatial context's prior to calling
aplyschema ?
 
Note:
I think, this can be a problem if provider is not keeping metadata
table's for spatial context.
For that case it would be fine to get spatial context's as parameter in
apply schema command.
 
Haris

________________________________

From: Haris Kurtagic [mailto:haris at sl-king.com] 
Sent: Sunday, October 22, 2006 2:10 AM
To: dev at fdo.osgeo.org
Subject: [fdo-dev] FDOIApplySchema


Hi,
I have couple of question:
 
1. I am trying to implement ApplySchema command in King.Oracle provider.
I have problem because I need to have Spatial context of geometries when
creating new schema and classes.
FDOIApplySchema interface is designed with FeatureSchema as only
parameter, no spatial context.
Geometry properties have Spatial Context name property but no spatial
context to read from in apply schema command.
There is command to create spatial context but it is another command so
it doesn't help me.
 
Am I missing something here ? I would appreciate if someone can comment
on this.
 
Note: I am trying to recreate Oracle tables from fdo classes and I am
not using fdo metadata tables.
 
 
2. How can I create clone of FdoFeatureClass ? 
 
    I see that FDOFetaureSchemaCollection has a way to ser/deser  from
XML, but I would like to do it just for one class.
    I am testing with Set (FdoClassDefinition *pClass,
FdoSchemaXmlContext *pContext) , but I have filing that is not right way
?
 
 
Thank you,
Haris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/fdo-internals/attachments/20061023/1d87bb1f/attachment.html


More information about the Fdo-internals mailing list