[fdo-users] RE: srsName conversion in FDO 3.6 GML latest versoin
Elavazhagan. M
elavazhagan.mouniandy at kcubeconsulting.com
Wed Jan 19 10:07:14 EST 2011
Hi,
Does "post processing" mean we need to do a "Search & Replace" on srsName
after generating the GML?
Thanks,
Ela.
> -----Original Message-----
> From: fdo-users-bounces at lists.osgeo.org [mailto:fdo-users-
> bounces at lists.osgeo.org] On Behalf Of Brent Robinson
> Sent: Tuesday, January 18, 2011 7:40 PM
> To: FDO Users Mail List
> Subject: RE: [fdo-users] RE: srsName conversion in FDO 3.6 GML latest
> versoin
>
> 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
> _______________________________________________
> 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