On 22/10/15 01:49, Stefano Costa wrote: > I had a quick look at AIXM 5.1 ( > http://www.aixm.aero/gallery/content/public/schema/5.1/AIXM_Features.xsd), > but the Airspace type defined there doesn't have any theAirspaceVolume > property.
Yes, in this schema, theAirspaceVolume is a property only of AirspaceGeometryComponentType. JcA, you use <targetElement>aixm:Airspace</targetElement> [...] <targetAttribute>aixm:theAirspaceVolume</targetAttribute> [...] <targetAttributeNode>aixm:AirspaceVolumePropertyType</targetAttributeNode> to override the type information in the schema. If your mappings conform the the AIXM schema, targetAttributeNode should not be required. Your override does not work for multiple values so the Encoder falls back to using a string representation of the internal Java objects. This is not what you want. For a single AirspaceVolume, the mapping appears to work, but the WFS response does not conform to the AIXM 5.1 schema and is schema-invalid. Even if what you are trying to do worked for multiple values, it would be schema-invalid. In the AIXM 5.1 schema, you can map AirspaceVolume nested inside AirSpace/timeSlice like this XPath: AirSpace/timeSlice/AirspaceTimeSlice/geometryComponent/AirspaceGeometryComponent/theAirspaceVolume/AirspaceVolume I think you are missing several levels of nesting. Kind regards, -- Ben Caradoc-Davies <[email protected]> Director Transient Software Limited <http://transient.nz/> New Zealand ------------------------------------------------------------------------------ _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
