[gdal-dev] GML elevation

Nikolaos Hatzopoulos nhatzop at gmail.com
Mon Aug 8 20:09:55 EDT 2011


Hi Community,

we have this gml data:
http://nvclwebservices.vm.csiro.au/geoserverBH/wfs?SERVICE=WFS&REQUEST=GetFeature&VERSION=1.1.0&maxFeatures=1&typeName=gsml:Borehole

System.out.println("Layer Count: "+poDS.GetLayerCount());
System.out.println("Layer Name: "+poDS.GetLayerByIndex(0).GetName());
System.out.println("Feature Count:
"+poDS.GetLayerByIndex(0).GetFeatureCount());
System.out.println("1st Feature X:
"+Double.toString(poDS.GetLayerByIndex(0).GetFeature(0).GetGeometryRef().GetX()));
System.out.println("1st Feature Y:
"+Double.toString(poDS.GetLayerByIndex(0).GetFeature(0).GetGeometryRef().GetY()));


Output:

Layer Count: 1
Layer Name: Borehole
Feature Count: 1
1st Feature X: -28.4139
1st Feature Y: 121.142


who I can read the gsml:elevation field?

the gdal version I am using is 1.7.2

--Nikos Hatzopoulos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110808/370265a3/attachment.html


More information about the gdal-dev mailing list