[mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs getFeature with filter on numeric field

Eichner, Andreas - SID Andreas.Eichner at sid.sachsen.de
Thu May 28 23:43:18 PDT 2015


But the original post was about a WFS filter and it's schema defines the <Literal> element very loosely as

   <xsd:element name="Literal" type="ogc:LiteralType" substitutionGroup="ogc:expression"/>
   <xsd:complexType name="LiteralType">
      <xsd:complexContent mixed="true">
         <xsd:extension base="ogc:ExpressionType">
            <xsd:sequence>
               <xsd:any minOccurs="0"/>
            </xsd:sequence>
         </xsd:extension>
      </xsd:complexContent>
   </xsd:complexType>

And the implementation specification is also very imprecise about it:

  "The <Literal> element is used to encode literal scalar and geometric values."

So the schema does not restrict the <Literal>'s value to be xsd:double nor does the spec. FES 2.0 adds a "type" attribute and uses a XML schema datatype as example. Therefore I guess it's intended that a <Literal> element holds content matching the datatype advertised by a DescribeFeatureType request.


> -----Ursprüngliche Nachricht-----
> Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-
> bounces at lists.osgeo.org] Im Auftrag von Gertjan van Oosten
> Gesendet: Donnerstag, 28. Mai 2015 15:07
> An: Rahkonen Jukka (MML); mapserver-users at lists.osgeo.org
> Betreff: Re: [mapserver-users] [EXTERNAL] Re: Mapserver 7+oracle - wfs
> getFeature with filter on numeric field
> 
> As quoted from "Rahkonen Jukka (MML)"
> <jukka.rahkonen at maanmittauslaitos.fi>:
> > By reading the GML 3 standard it for example defines that Real and
> Number are
> > of type xsd:double, and following that path to
> >
> > http://books.xmlschemata.org/relaxng/ch19-77065.html
> 
> [Missed Jukka's reply first time round.]
> Yes, xsd:double (not xsd:float as in my previous reply).
> 
> Which means the gory details are in:
> 
>   http://www.w3.org/TR/xmlschema11-2/#nt-doubleRep
> 
> but everything else remains the same, notably: a decimal *point*.
> 
> Cheers,
> --
> -- Gertjan van Oosten, Principal Consultant, West Consulting B.V.
> -- gertjan at West.NL     +31 15 2191 600       www.west.nl
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list