[mapserver-users] Problem using GetFeatureInfo request with WMS-T
Hari Pradhan
starling.lucky at gmail.com
Fri Jun 20 14:59:27 PDT 2014
Hello all,
I have implemented WMS-T for vector shape files (each of which is captured
at different time frame) using tileindex (the tool I have used is
ogrtindex.exe), and this worked successfully for GetMap request. But the
problem here is GetFeatureInfo does not work properly while making request
with different values of time field.
Below is my layer section in the map file.
LAYER
NAME "states1"
DEBUG 5
TYPE POLYGON
TILEINDEX "C:\data\vector\shapeData\testdata\vector.shp"
TILEITEM "location"
STATUS ON
METADATA
"wms_title" "states1"
"wms_include_items" "all"
"wms_dataurl_format" "text/HTML"
"ows_include_items" "all"
"wms_exceptions_format" "application/vnd.ogc.se_xml"
'wms_srs' 'EPSG:42304'
"wms_timeformat" "YYYYMMDD"
"wms_timeextent" "20070301/20070302"
"wms_timeitem" "Time"
"wms_timedefault" "20070301"
END
#FILTERITEM "Time"
#FILTER "20070301"
EXTENT -97.238976 41.619778 -82.122902 49.385620
TEMPLATE "Mytemplate.html"
PROJECTION
"init=epsg:42304"
END
CLASS
NAME "MyClass"
STYLE
COLOR 232 232 232
OUTLINECOLOR 32 32 32
END
END
END # Layer
In the above example, the dbf of TileIndex looks like
LOCATION
C:\data\vector\shapeData\20070301\states1.shp,0
C:\data\vector\shapeData\20070302\states1.shp,0
Each of these individual shape files has time field (i.e. 1st states1.shp
has 20070301 and next one has 20070302).
When I make a request using the URL as
"http://<mapserverPath>?map=<mapfilePath>&LAYERS=states1&TRANSPARENT=TRUE&FORMAT=image/png&VERSION=1.3.0&SERVICE=WMS&REQUEST=GetFeatureInfo&STYLES=&CRS=EPSG:42304&BBOX=-97.238976,41.619778,-82.122902,49.385620&WIDTH=256&HEIGHT=256&X=99&Y=134&INFO_FORMAT=text/plain&QUERY_LAYERS=states1&Time=20070301",
it correctly returns back the feature information as follows.
GetFeatureInfo results:
Layer 'states1'
Feature 38:
AREA = '16.354'
PERIMETER = '22.325'
STATESP020 = '1353'
STATE = 'Wisconsin'
STATE_FIPS = '55'
CLASS = 'land'
Time = '20070301'
But making the request using the URL as
"http://<mapserverPath>?map=<mapfilePath>&LAYERS=states1&TRANSPARENT=TRUE&FORMAT=image/png&VERSION=1.3.0&SERVICE=WMS&REQUEST=GetFeatureInfo&STYLES=&CRS=EPSG:42304&BBOX=-97.238976,41.619778,-82.122902,49.385620&WIDTH=256&HEIGHT=256&X=99&Y=134&INFO_FORMAT=text/plain&QUERY_LAYERS=states1&Time=20070302"
results to "Internal Server Error".
Note: The error log is empty even after setting Debug level to 5.
I'd really appreciate the help. Thanks!
Thanks,
Hari
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140620/00169f80/attachment.htm>
More information about the MapServer-users
mailing list