Hi,
I'm developing a WPS with 52North libraries and there is this
class org.n52.wps.io.datahandler.parser.GML3BasicParser.java that parses
the GML input into a FeatureCollection using geotools libraries (exactly
the parse method in org.geotools.xml.Parser). The problem is that the input
GML has Points with 3 dimensional coordinates and the Z-ordinate is lost
after using the parse method, well is set to NaN.
As an example, a GML input that I've used:
<gml:FeatureCollection xmlns:gml="http://www.opengis.net/gml"
xmlns:n52="http://www.52north.org/11cad8bd-a957-4ee2-a2fd-87e02639470f"
xsi:schemaLocation="http://www.opengis.net/gml
http://schemas.opengis.net/gml/3.1.1/base/feature.xsd
http://www.52north.org/11cad8bd-a957-4ee2-a2fd-87e02639470f
http://localhost:8080/wps/schemas/11cad8bd-a957-4ee2-a2fd-87e02639470f.xsd"
srsName="EPSG:4936"><gml:featureMembers
srsName="EPSG:4936"><n52:Feature-11cad8bd-a957-4ee2-a2fd-87e02639470f
gml:id="ID0" srsName="EPSG:4936"><n52:GEOMETRY
srsName="EPSG:4936"><gml:MultiPoint srsName="EPSG:4936"><gml:pointMember
srsName="EPSG:4936"><gml:Point srsName="EPSG:4936"><gml:pos
dimension="3">4839482.173 15265.210
4142713.260</gml:pos></gml:Point></gml:pointMember></gml:MultiPoint><
/n52:GEOMETRY></n52:Feature-11cad8bd-a957-4ee2-a2fd-87e02639470f></gml:
featureMembers></gml:FeatureCollection>
Thanks for your help,
Carmen
PS: EPSG:4936 has 3 axis
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users