Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Oracle Spatial Java API - GML.fromNodeToGeometry(Node n)
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());
Received on Sat Sep 08 2007 - 09:27:28 CDT
![]() |
![]() |