Hello all,
I'm having problems trying to map a geometry column from a PostGIS database to
GML using app-schema.
Background: In the same set up, I can map a geometry column with type gml:Point.
I am trying to map to an xsd file. The element I'm trying to map to is of type
WatercourseType, which extends SurfaceWaterType. SurfaceWaterType has an
element as follows:
<element name="geometry" type="gml:GeometricPrimitivePropertyType"> ...
</element>
The exception I get is:
<ows:ExceptionText>
org.geotools.feature.IllegalAttributeException:http://www.opengis.net/gml:GeometricPrimitivePropertyType
not nillable:null value:null
http://www.opengis.net/gml:GeometricPrimitivePropertyType not nillable
</ows:ExceptionText>
If I select asGML(the_geom) in PostGIS, I get
<gml:LineString>...</gml:LineString>
Here's the mapping excerpt:
<AttributeMapping>
<targetAttribute>hy-p:geometry</targetAttribute>
<sourceExpression><OCQL>the_geom</OCQL></sourceExpression>
</AttributeMapping>
If I remove the above AttributeMapping, GeoServer will produce GML.
Does anyone have any idea what's wrong with this? I can provide more details
if necessary.
Cheers,
Will
--
Scanned by iCritical.
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users