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

0 views
Skip to first unread message

tk2kewl

unread,
Sep 8, 2007, 10:14:17 AM9/8/07
to computer-text-gml
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());

Reply all
Reply to author
Forward
0 new messages