bilaldursun1 / nettopologysuite

Automatically exported from code.google.com/p/nettopologysuite
0 stars 0 forks source link

GMLWriter is using the wrong namespace #116

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The GMLWriter is using urn:gml as namespace for GML instead of the correct 
http://www.opengis.net/gml.

Original issue reported on code.google.com by ossip...@gmail.com on 20 Jun 2012 at 10:47

GoogleCodeExporter commented 9 years ago
Version 1.12

Original comment by ossip...@gmail.com on 20 Jun 2012 at 10:48

GoogleCodeExporter commented 9 years ago
http://en.wikipedia.org/wiki/Geography_Markup_Language#Coordinate_Reference_Syst
em
"The OGC has developed a URN structure and a set specific URNs..."
As example this gml looks valid
http://irmaservices.nps.gov/unit/geography/list/ROMO,GLAC/ConvexHull/GML 

have you some additional info?

Original comment by diegogu...@gmail.com on 22 Jun 2012 at 10:13

GoogleCodeExporter commented 9 years ago
The wikipedia link you refer to has to do with CRS URN's, which are a way of 
telling the reader of the GML which coordinate system the coordinates are in.
My problem has to do with the actual XML namespace of the GML nodes.
When the GML writer writes a GML node it uses 'xmlns:gml="urn:gml"' for the 
namespace, where I would like it to use 
'xmlns:gml="http://www.opengis.net/gml"'.

When I look at JTS implementation, I can see that they also use 
http://www.opengis.net/gml:
http://jts-topo-suite.svn.sourceforge.net/viewvc/jts-topo-suite/tags/Version_1.1
2/jts/java/src/com/vividsolutions/jts/io/gml2/GMLConstants.java?revision=628&vie
w=markup

But no so, when looking at the equivalent NTS file GMLElements:
http://code.google.com/p/nettopologysuite/source/browse/trunk/NetTopologySuite/I
O/GML2/GMLElements.cs

Original comment by ossip...@gmail.com on 2 Jul 2012 at 9:50

GoogleCodeExporter commented 9 years ago
can you check your code using trunk rev 844?
http://code.google.com/p/nettopologysuite/source/detail?r=844
I've committed a patch right now

Original comment by diegogu...@gmail.com on 2 Jul 2012 at 9:57