Bookmark this page: Add Oracle Spatial Java API    GML fromNodeToGeometry Node n  to Yahoo MyWeb Add Oracle Spatial Java API    GML fromNodeToGeometry Node n  to Google Bookmarks Add Oracle Spatial Java API    GML fromNodeToGeometry Node n  to Windows Live Add Oracle Spatial Java API    GML fromNodeToGeometry Node n  to Del.icio.us Digg Oracle Spatial Java API    GML fromNodeToGeometry Node n ! Add Oracle Spatial Java API    GML fromNodeToGeometry Node n  to Netscape
  •  
  • Subject
  • Author
  • Date
If you were  Registered and logged in, you could reply and use other advanced thread options
Posted by tk2kewl on September 8, 2007, 10:16 am
I have tried a dozen different ways of defining the srsName in my gml,
but no matter what I do the resulting JGeometry has an SRID of zero.
Anyone know why???

String gml = "<gml:Point xmlns:gml=\"http://www.opengis.net/gml \" "
+ "srsName=\"EPSG:4326\">"
+ "<gml:coordinates decimal=\".\" cs=\",\" ts=\" \">"
+ "-73.495868,40.656059" + "</gml:coordinates>"
+ "</gml:Point>";
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
Document d = factory.newDocumentBuilder().parse(
new InputSource(new StringReader(gml)));

Node n = d.getDocumentElement();
JGeometry g = GML.fromNodeToGeometry(n);
System.out.println(g.getSRID());