Skip to content
Permalink
Browse files
WFS: use correct XSD datatypes in DescribeFeatureType response (#4800)
  • Loading branch information
rouault committed Oct 26, 2013
1 parent 5f1d2b5 commit dd059f572ce18a32a7aa995a1c25f35b1e99e9f9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
@@ -938,7 +938,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 f497f6 to 329d36

0 comments on commit dd059f5

Please sign in to comment.