[Mapserver-users] WMS GetFeatureInfo reprojection problem?

Doug Cates doug at moximedia.com
Tue Jun 1 17:36:28 EDT 2004


Hi,

I'm seeing a problem when doing a GetFeatureInfo on a MapServer 4.0.2
WMS server instance. I'm wondering if this is a know problem....

The problem appears when the layer is being projected on the fly (e.g
geographic shapefile in a request in BC Albers), with the map file set
up like this:

NAME "usershape"
STATUS ON
SIZE 400 400
UNITS METERS
SHAPEPATH "/var/moxi_apps/web-sites/temp"
IMAGECOLOR 255 255 255
IMAGETYPE PNG
SYMBOL
  NAME "square"
  TYPE vector
  FILLED true
  POINTS
    0 0
    0 12
    12 12
    12 0
    0 0
  END
END
PROJECTION
  "init=epsg:42102"
END
WEB
  TEMPLATE "none.html"
  IMAGEPATH "/var/moxi_apps/web-sites/temp/"
  IMAGEURL "http://209.126.184.40/temp/"
  METADATA
    WMS_TITLE "User uploaded data"
    WMS_ABSTRACT "Temporary service based on user uploaded data."
    WMS_ONLINERESOURCE "http://www.moxi.ca/cgi-bin/mapserv?map=/var/moxi_apps/web-sites/temp/shp45091.map&"
    WMS_SRS "EPSG:42102 EPSG:4326"
  END
END
LAYER
  NAME "shp45091"
  TYPE POLYGON
  DATA shp45091
  STATUS ON
  PROJECTION
    "init=epsg:4326"
  END
  METADATA
    WMS_TITLE "shp45091"
  END
  DUMP TRUE
  CLASS
    TEMPLATE "none.html"
    COLOR 192 255 192
    OUTLINECOLOR 0 0 0
  END
END
END

I'm finding that queries are not returning any results when requesting
the GetFeatureInfo using the 42102 EPSG code:

http://www.moxi.ca/cgi-bin/mapserv?map=/var/moxi_apps/web-sites/temp/shp45091.map&VERSION=1.1.0&REQUEST=GetFeatureInfo&LAYERS=shp45091&STYLES=&SRS=EPSG%3A42102&BBOX=13955.0,281901.0,2047779.0,1773046.0&WIDTH=832&HEIGHT=610&FORMAT=image/png&QUERY_LAYERS=shp45091&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=25&X=427&Y=263&

The map draws fine:

http://www.moxi.ca/cgi-bin/mapserv?map=/var/moxi_apps/web-sites/temp/shp45091.map&VERSION=1.1.0&REQUEST=GetMap&LAYERS=shp45091&STYLES=&SRS=EPSG%3A42102&BBOX=13955.0,281901.0,2047779.0,1773046.0&WIDTH=832&HEIGHT=610&FORMAT=image/png&

Is this a bug? Should this work? Seems to me that it should....

All the best,
Doug




More information about the mapserver-users mailing list