Hello,
I have parsed a GML 3.2 object using the opengis 3.2 libraries and I am
trying to cast the SurfacePatch Object into a Geotools Class. The geotools
gml3 bindings appear to be what I should be using. But I am getting a
ClassCast Exception (see below).
---
java.lang.ClassCastException:
net.opengis.gml.x32.impl.SurfacePatchArrayPropertyTypeImpl cannot be cast to
org.geotools.gml3.bindings.SurfacePatchArrayPropertyTypeBinding
----
Does anyone know if I am doing this correctly? Should I be using another
approach?
Code snippet is below:
---
import org.geotools.gml3.bindings.*;
while (iter.hasNext()) {
AirspaceTimeSliceType.GeometryComponent geocomp =
(AirspaceTimeSliceType.GeometryComponent) iter.next();
SurfacePatchArrayPropertyTypeBinding surface =
(SurfacePatchArrayPropertyTypeBinding)
geocomp.getAirspaceGeometryComponent().getTheAirspaceVolume().getAirspaceVol
ume().getHorizontalProjection().getSurface().getPatches();
}
---
Thanks much for any recommendations.
Florian
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users