Skip to content
Browse files
Support xs:int for WFS feature properties.
xs:integer is an unbounded integer whereas xs:int is a signed 32 bits integer.
see :
The interpretation of what an xs:integer is can vary depending on the implementation. For example
Microsoft's System.Xml.Schema.XmlSchemaDataType.ValueType maps xs:integer to System.decimal
and xs:int to System.Int32
see :

This code change will remove any ambiguity when the property is known to be an int32.
  • Loading branch information
mathieudugal committed Jun 4, 2014
1 parent 5beb10e commit 5a3d2b414a038b7469a527e73c5ca058b202dfa0
Showing 1 changed file with 3 additions and 0 deletions.
@@ -989,6 +989,9 @@ static const char* msWFSMapServTypeToXMLType(const char* type)
/* Map from MapServer types to XSD types */
if( strcasecmp(type,"Integer") == 0 )
element_type = "integer";
/* Note : xs:int and xs:integer differ */
else if ( EQUAL(item->type,"int") )
element_type = "int";
else if( EQUAL(type,"Real") ||
EQUAL(type,"double") /* just in case someone provided the xsd type directly */ )
element_type = "double";

0 comments on commit 5a3d2b4

Please sign in to comment.