[Mapserver-users] GetFeatureInfo scale range?

Doug Cates doug at moximedia.com
Thu Feb 20 12:17:07 EST 2003


Hi,

I've been using MapServer for about a week and am very, very impressed.

I've noticed that the GetFeatureInfo WMS request doesn't work as I expect.
When a layer is defined with a MINSCALE and MAXSCALE and the layer is out of
range (not displayed), I would expect a GetFeatureInfo request that uses the
same map extent to return no records for a layer that is not visible.

See what I mean by querying the main roads at:
http://moximedia.com/ows/imf.jsp?site=gisi

I'm requesting the records with INFO_FORMAT=application/vnd.ogc.gml, and
have the layer set up as follows:

LAYER
  ...
  ...
  MINSCALE 50000
  MAXSCALE 1E39
  DUMP true
  CLASS
    MINSCALE 50000
    MAXSCALE 1E39
    TEMPLATE "gisi_all.html"
    COLOR 129 129 129
  END
END

The main roads layer is scale dependent and not visible at the opening
scale. The query returns features at scales like 1:20K. Is there something
I'm missing, or is this the way that MapServer is intended to work, or
should this be considered a bug?

Doug
--
Doug Cates
Moxi Media Inc.
757 - 1641 Lonsdale Avenue,
Vancouver, BC, Canada V7M 2J5
Phone:  604-984-8109
Fax:    604-608-4764
E-Mail: doug at moximedia.com
Web:    www.moximedia.com






More information about the mapserver-users mailing list