[fdo-dev] FDOIApplySchema
Greg Boone
greg.boone at autodesk.com
Mon Oct 23 09:12:44 EDT 2006
Regarding #2....
Take a look at
Utilities\Common\Inc\FdoCommonSchemaUtil.h
Class FdoCommonSchemaUtil
There are static methods here to deep copy schema elements....
Greg
_____
From: Haris Kurtagic [mailto:haris at sl-king.com]
Sent: Monday, October 23, 2006 8:45 AM
To: dev at fdo.osgeo.org
Subject: RE: [fdo-dev] FDOIApplySchema
Hi Orest,
Yes, I was looking into that. I need to learn more about this stuff (
like is there epsg code in ogc wkt - which i get from fdo providers).
Also, I am trying to support older version of Oracle like 9.2 .
I don't know if you saw my other question, so I will repeat it in case
you skipped it:
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
?
Thanks,
Haris
_____
From: Orest Halustchak [mailto:orest.halustchak at autodesk.com]
Sent: Monday, October 23, 2006 2:36 PM
To: dev at fdo.osgeo.org
Subject: RE: [fdo-dev] FDOIApplySchema
Hi Haris,
If you knew the EPSG code for the coordinate system, Oracle 10gr2 (if
that's the version that you're using) provides an sdo_cs function to map
that to the SRID.
Orest.
_____
From: Haris Kurtagic [mailto:haris at sl-king.com]
Sent: Monday, October 23, 2006 8:10 AM
To: dev at fdo.osgeo.org
Subject: RE: [fdo-dev] FDOIApplySchema
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_dev/attachments/20061023/c11a96e5/attachment.html
More information about the Fdo_dev
mailing list