[fdo-users] RE: srsName conversion in FDO 3.6 GML latest versoin

Brent Robinson brent.robinson at autodesk.com
Tue Jan 18 09:09:44 EST 2011


Hi,

I've posted a couple of workarounds to the  "Which GML version is supported by FDO 3.5.0" thread today. Although the source is SHP, it's probably the same issue as for ArcSDE and WFS. 

Adding the xmlFeatureFlags settings would be the easier option but, although postprocessing the XML would be more work, it would be safer since the xmlFeatureFlags option relies on another bug.

Brent.

-----Original Message-----
From: fdo-users-bounces at lists.osgeo.org [mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of Arunkumar
Sent: Tuesday, January 18, 2011 2:08 AM
To: fdo-users at lists.osgeo.org
Subject: [fdo-users] RE: srsName conversion in FDO 3.6 GML latest versoin


Hi,

I am using the following code to generate latest GML version file. 

            String xsdFilePath = outputGMLFilePath+ ".xsd";
            XmlWriter xsdXmlWriter = new XmlWriter(xsdFilePath);
            XmlSpatialContextWriter spatialContextWriter = new
XmlSpatialContextWriter(xsdXmlWriter);
            XmlSpatialContextSerializer.XmlSerialize(connection,
spatialContextWriter);
            featureClass.FeatureSchema.WriteXml(xsdXmlWriter);
            spatialContextWriter.Dispose();
            xsdXmlWriter.Close();
            xsdXmlWriter.Dispose();

            XmlFeatureFlags xmlFeatureFlags = new
XmlFeatureFlags(xsdFilePath);
            xmlFeatureFlags.GmlVersion = GmlVersion.GmlVersion_311;
            XmlWriter gmlXmlWriter = new XmlWriter(outputGMLFilePath);
            XmlFeatureWriter xmlFeatureWriter = new
XmlFeatureWriter(gmlXmlWriter, xmlFeatureFlags);
            IFeatureReader featureReader = null;
            XmlFeatureSerializer.XmlSerialize(featureReader,
xmlFeatureWriter);

I am generating this GML file for "ArcSDE" and "WFS" providers.
now i need convert the srsName from Defalut or existing coordinate system to
EPSG:4326.

Thanks,
P.Arunkumar

-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/srsName-conversion-in-FDO-3-6-GML-latest-versoin-tp5917749p5934679.html
Sent from the FDO Users mailing list archive at Nabble.com.
_______________________________________________
fdo-users mailing list
fdo-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-users


More information about the fdo-users mailing list