Hello Will,

I see you are doing INSPIRE Annex I Hydrography (HY) schema mapping. All 
latest (v3) INSPIRE XSDs are using GML 3.2.1 which is to my knowledge 
not supported (yet) in GS. My first suspicion is a mismatch between GML 
3.1.1 and 3.2.1 .

Another cause may be that "hy-p:geometry" is mandatory in the HY-P XSD 
and that your source attr is null somehow.

A third could be that "hy-p:geometry" should be GML Curve or Surface not 
LineString.

I am no expert in GeoServer complex app-schema, there are others on this 
list more knowledgeable who may enlighten you.

best,

Just van den Broecke
http://www.justobjects.nl
http://inspire.kademo.nl


On 07-12-10 13:18, will.rog...@stfc.ac.uk wrote:
> 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





------------------------------------------------------------------------------
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

Reply via email to