Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Oracle Spatial Java API - GML.fromNodeToGeometry(Node n)

Oracle Spatial Java API - GML.fromNodeToGeometry(Node n)

From: tk2kewl <tk2kewl_at_yahoo.com>
Date: Sat, 08 Sep 2007 07:27:28 -0700
Message-ID: <1189261648.990655.123580@r34g2000hsd.googlegroups.com>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US