Hi List,

I'm developing some WFS 1.0.0 and 1.1.0 simple feature services with GeoServer 
2.2 RC3 and I've been getting a couple of inconsistencies that prevent 
validation between the schema from DescribeFeatureType and the WFS response for 
some feature types.  

I think these might be bugs in GeoServer?:

1) Scientific notation in xsd:decimal elements prevents validation

I'm using a Postgres 8.4/Postgis 1.5 database with a column of type 'numeric' 
with JNDI and an external postgresql-8.4-701.jdbc3.jar jar file.  In the schema 
from DescribeFeatureType I can see the field type is xsd:decimal.  This doesn't 
allow scientific notation but the xsd:float and xsd:double types do so I would 
have thought the column would be mapped to one of those instead.  The 
validation error I get is:  '0E-11' is not a valid value for 'decimal'.  This 
affects WFS 1.0.0 and 1.1.0 requests.  


2) Incorrect gml prefix (according to schema) prevents validation

I have a couple of layers containing a 'name' column in the database.  For WFS 
1.0.0 requests, I get gml:name elements in the output but this doesn't validate 
according to the referenced schema, I get errors like this:

Invalid content was found starting with element 'gml:name'. One of 
'{"http://...<snip>... expected

I found a workaround, but surely whatever is output should always validate?:  
On the WFS settings page, tick all the "Override GML Attributes" checkboxes and 
then save changes.  Output then passes validation and the name element is in 
the same namespace as the other elements in the response.  WFS 1.1.0 doesn't 
seem to have this problem.
 
CITE compliance is off,
Encode canonical schema locations is on



Any ideas how to solve the xsd:decimal problem?  I suppose I could do a 
to_char() conversion in the view or is there another numeric column type that 
would fix this?

Anyway thanks for the great work with GeoServer!


Cheers,
Geoff

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to