[gdal-dev] Exporting gml3 with OGR for .NET?

Casper Span info at spatially-oriented.com
Mon Aug 12 04:58:53 PDT 2013


Nobody uses GDAL for .net? :-(

regards,
Casper


On Thu, Aug 8, 2013 at 9:51 AM, Casper Span <info at spatially-oriented.com>wrote:

> Hi list,
>
> I'm trying to get some piece of code working with the csharp package of
> gdal. (NuGet GDAL / GDAL.Natve).
>
> Basically, I need to port a geometry to GML3.1.1. According to the
> documentation, all I need to do is add an option "FORMAT=GML3", so I tried
> that:
>
> using (OSGeo.OGR.Geometry geom = OSGeo.OGR.Ogr.CreateGeometryFromWkt(ref
> wkt, null))
> {
>     GmlString = geom.ExportToGML(new string[] { "FORMAT=GML3" });
> }
>
> But it will still return a GML2 (=default when not using any options)
> text. It really doesn't matter what I pass as an option, it will always
> just return a GML2 string.
>
> Anybody tried this before?
>
> regards,
> Casper
>
>
> --
>
> Casper Span
> T: @Span_Droid <https://twitter.com/#%21/Span_Droid>
> W: http://www.spatially-oriented.com
> M: info at spatially-oriented.com
>
>


-- 

Casper Span
T: @Span_Droid <https://twitter.com/#%21/Span_Droid>
W: http://www.spatially-oriented.com
M: info at spatially-oriented.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130812/ffc56b6e/attachment.html>


More information about the gdal-dev mailing list