[GeoMoose-users] WFS identify is GeoMoose using MapServer

Dan Little theduckylittle at gmail.com
Mon Jan 2 13:58:33 PST 2023


Thi is actually a MapServer bug that's been around for a while. MapServer
doesn't do well when querying in 3857 and the underlying data is in another
projection. So we have an option to use the "wgs84Hack" (internal name in
the code). This is enabled when the map-source type is set to
"mapserver-wfs".





On Mon, Jan 2, 2023 at 3:55 PM Brent Fraser <bfraser at geoanalytic.com> wrote:

> Hi Jeff (and others),
>
>   I'm in the process of testing WFS in GeoMoose and thought I would make
> WFS requests to the demo site at demo.mapserver.org.  So in accessing the
> cities layer (
> https://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities)
> it displays OK in GeoMoose even though the display SRS is EPSG:3857.
>
>   However the Identify operation fails. Mapserver returns
>
> <?xml version='1.0' encoding="UTF-8" ?>
> <wfs:FeatureCollection
>    xmlns:ms="http://mapserver.gis.umn.edu/mapserver"
>    xmlns:wfs="http://www.opengis.net/wfs"
>    xmlns:gml="http://www.opengis.net/gml"
>    xmlns:ogc="http://www.opengis.net/ogc"
>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>    xsi:schemaLocation="http://www.opengis.net/wfs
> http://schemas.opengis.net/wfs/1.1.0/WFS-basic.xsd
>                        http://mapserver.gis.umn.edu/mapserver
> https://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=ms:cities&OUTPUTFORMAT=XMLSCHEMA
> ">
>    <gml:boundedBy>
>       <gml:null>*missing*</gml:null>
>    </gml:boundedBy>
> </wfs:FeatureCollection>
>
> when the request sent (via POST) is
> <GetFeature xmlns="http://www.opengis.net/wfs"
>             service="WFS"
>             version="1.1.0"
>             outputFormat="text/xml; subtype=gml/2.1.2"
>             xsi:schemaLocation="http://www.opengis.net/wfs
> http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"
>             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>     <Query typeName="ms:cities"
>            srsName=*"EPSG:3857*">
>         <Filter xmlns="http://www.opengis.net/ogc">
>             <Intersects>
>                 <PropertyName>geom</PropertyName>
>                 <Polygon xmlns="http://www.opengis.net/gml">
>                     <exterior>
>                         <LinearRing>
>                             <posList srsDimension="2">
>                                 -10382797.7354368  5615179.747957421
>                                 -10382797.7354368  5615332.622013991
>                                 -10382644.86138023 5615332.622013991
>                                 -10382644.86138023 5615179.747957421
>                                 -10382797.7354368  5615179.747957421
>                             </posList>
>                         </LinearRing>
>                     </exterior>
>                 </Polygon>
>             </Intersects>
>         </Filter>
>     </Query>
> </GetFeature>
>
>  Note the srsName in the request (3857 is not listed in the MapServer
> GetCapabilities doc).  When asking for the features for display GeoMoose
> sends a BBOX (3857) in the request.  When requesting feature(s) in
> Identify, it sends only the Intersects filter in the above XML.
>
> So I'm not sure if this is a Mapserver configuration issue or a bug/Issue
> in GeoMoose.
>
> Your thoughts?
>
> Thanks!
> Brent Fraser
>
>
>
> _______________________________________________
> GeoMoose-users mailing list
> GeoMoose-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geomoose-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20230102/7318925a/attachment-0001.htm>


More information about the GeoMoose-users mailing list