[Dutch] Fwd: Exporting gml3 with OGR for .NET?

Casper Span info op spatially-oriented.com
Di Aug 13 04:14:16 PDT 2013


Hey Lijst,

Ik heb de onderstaande vraag naar GDAL-Dev gestuurd, maar krijg nog geen
reactie. Onder het mom van verspreid je kansen, ook even de vraag aan
jullie. Heeft iemand GDAL voor .NET gebruikt en/of kent / herkent het
onderstaande probleem?

Alvast bedankt voor meedenken

gr,
Casper

---------- Forwarded message ----------
From: Casper Span <info op spatially-oriented.com>
Date: Thu, Aug 8, 2013 at 9:51 AM
Subject: Exporting gml3 with OGR for .NET?
To: gdal-dev op lists.osgeo.org


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 op spatially-oriented.com




-- 

Casper Span
T: @Span_Droid <https://twitter.com/#%21/Span_Droid>
W: http://www.spatially-oriented.com
M: info op spatially-oriented.com
------------- volgend deel ------------
Een HTML-bijlage is gescrubt...
URL: <http://lists.osgeo.org/pipermail/dutch/attachments/20130813/bc1b14bc/attachment.html>


More information about the Dutch mailing list