|
Posted by tk2kewl on September 8, 2007, 10:16 am
Please log in for more thread options
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());
|