Permalink
Browse files

WFS: use correct XSD datatypes in DescribeFeatureType response (#4800)

  • Loading branch information...
rouault committed Oct 26, 2013
1 parent ee905b5 commit ffe3aecd0d24021b5fe6b30f580da7450f85fe8c
Showing with 15 additions and 2 deletions.
  1. +14 −1 mapwfs.c
  2. +1 −1 msautotest
@@ -925,7 +925,20 @@ static void msWFSWriteItemElement(FILE *stream, gmlItemObj *item, const char *ta
element_name = item->name;
if(item->type)
element_type = item->type;
{
/* Map from MapServer types to XSD types */
if( strcasecmp(item->type,"Integer") == 0 )
element_type = "integer";
else if( EQUAL(item->type,"Real") ||
EQUAL(item->type,"double") /* just in case someone provided the xsd type directly */ )
element_type = "double";
else if( EQUAL(item->type,"Character") )
element_type = "string";
else if( EQUAL(item->type,"Date") )
element_type = "date";
else if( EQUAL(item->type,"Boolean") )
element_type = "boolean";
}
msIO_fprintf(stream, "%s<element name=\"%s\" type=\"%s\"/>\n", tab, element_name, element_type);
Submodule msautotest updated from c5ed9d to 42a2c4

0 comments on commit ffe3aec

Please sign in to comment.