[fdo-dev] FDOIApplySchema
Orest Halustchak
orest.halustchak at autodesk.com
Mon Oct 23 08:00:32 EDT 2006
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_dev/attachments/20061023/89a4a26e/attachment.html
More information about the Fdo_dev
mailing list