Click here to get back home

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

 HomeNewsGroups | Search | About
 comp.infosystems.gis    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Oracle Spatial Java API - GML.fromNodeToGeometry(Node n) tk2kewl 09-08-2007
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());


Similar ThreadsPosted
Setting up Oracle 10g & Oracle Spatial / MapViewer for learning single PC March 2, 2006, 6:23 pm
Oracle Spatial (9i or 10g) vs Informix Spatial Datablade ? June 13, 2006, 7:52 am
Oracle versions & Spatial August 12, 2005, 12:53 am
Creating Shapefiles from Oracle Spatial September 14, 2005, 8:06 pm
ORACLE Spatial Developer Opening March 23, 2007, 1:38 pm
ORACLE Spatial Developer Opening April 20, 2007, 11:37 pm
gvSIG now connects to Oracle Spatial May 14, 2007, 11:59 am
Anyone a PL SQL Expert that can help me figure this out? Problem in Oracle Spatial May 16, 2005, 1:47 pm
Node Topology April 17, 2005, 3:29 pm
Shortest path problem-link node topology? August 3, 2004, 7:00 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap