[mapserver-users] time in WMS

Smith, Michael Michael.Smith at maine.gov
Thu Dec 12 12:48:41 PST 2013


I have a WMS service:

http://mapservertest.maine.gov/wms/mapserv.exe?map=c:/wms/timetest.map&SERVICE=WMS&REQUEST=GetCapabilities

Which I am using to try and get time parameters in my WMS.  What my users want is to be able to have imagery not turn when a time request is given.

This is for a raster WMS which uses a tileindex. Now I have enabled the time by adding a TIME field to my tileindex, the field is a text field with date values like this: "2009-08-31".

In my mapfile I specify the wms_timeformat in the map section
"wms_timeformat" "YYYY-MM-DD"

And the time parameters in each layer
                "wms_timeextent" "2009-08-30/2009-09-01"
"wms_timeitem" "TIME"
"wms_timedefault" "2009-08-31"

When I make a request this error shows up in my logfile:
[Thu Dec 12 13:36:40 2013].438000 msWMSApplyTime: WMS server error. No Time value was given, and the default time value 2009-08-31 is invalid or outside the time extent defined 2009-08-30\2009-09-01

I noticed in the GetCapabilities this too:
                nearestValue="0">2009-08-30/2009-09-01

Can anybody tell me if this WMS is set up right (and my client - ArcGIS - is not querying correctly) or have I done something wrong in my WMS?

Also is there a way to assign a time to a raster?  Like I could put a date on an imagery collect?

===============================
Michael Smith MS GISP
State GIS Manager, Maine Office of GIS
State of Maine, Office of Information Technology
michael.smith _at_ maine.gov 207-215-5530

Board Member, Maine GeoLibrary
Education Chair, Maine GIS Users Group
State Rep, National States Geographic Information Council
[cid:image001.jpg at 01CEF74F.BF2DA600]

State House Station 145
51 Commerce Drive
Augusta, ME 04333-0145
69o 47' 58.9"W  44o 21' 54.8"N


MAP

CONFIG "MS_ERRORFILE" "/ms4w_306/tmp/wmserror.txt"
CONFIG "PROJ_LIB" "C:\ms4w_306\proj\nad"

EXTENT -72 42 -66 48
UNITS DD
SHAPEPATH "d:/wms_raster_data"
RESOLUTION 96
#MAXSIZE 4096
MAXSIZE 8192

OUTPUTFORMAT
  NAME "agg"
  DRIVER "AGG/PNG"
  MIMETYPE "image/png"
  EXTENSION PNG
  IMAGEMODE RGBA
  TRANSPARENT ON
  FORMATOPTION "INTERLACE=OFF"
END

WEB

  METADATA
    "ows_enable_request" "*"
    "wms_extent" "-72 42 -66 48"
    "wms_server_version" "1.1.1"
    "wms_title" "Maine_orthos"
    "wms_onlineresource" "http://mapservertest.maine.gov/wms/mapserv.exe?map=c:/wms/timetest.map&SERVICE=WMS&"
    "wms_srs" "EPSG:4326 EPSG:26919 EPSG:26983 EPSG:26984 EPSG:102113 EPSG:3857"
    "wms_abstract" "State of Maine aerial orthophotos provided by the State of Maine, Maine Office of GIS and Maine GeoLibrary Board"
    "wms_timeformat" "YYYY-MM-DD"
  END
END

PROJECTION
  "init=epsg:4326"
END

LAYER
  NAME "naip2009"
  GROUP "NAIP_2009"
  MAXSCALEDENOM 20000
  METADATA
    "wms_title" "NAIP_2009"
    "wms_timeextent" "2009-08-30/2009-09-01"
    "wms_timeitem" "TIME"
    "wms_timedefault" "2009-08-31"
  END
  TILEINDEX "naip_09\doq_index.shp"
  TILEITEM "location"
  TYPE RASTER
  OFFSITE 0 0 0
  PROJECTION
    "init=epsg:26919"
  END
END

LAYER
  NAME "naip09_5m_overview"
  GROUP "NAIP_2009"
  MINSCALEDENOM 20000
  MAXSCALEDENOM 100000
  METADATA
    "wms_title" "NAIP_2009_5m"
    "wms_timeextent" "2009-08-30/2009-09-01"
    "wms_timeitem" "TIME"
    "wms_timedefault" "2009-08-31"
  END
  TILEINDEX "naip_09\doq_overview_index.shp"
  TILEITEM "location5m"
  TYPE RASTER
  OFFSITE 0 0 0
  PROJECTION
    "init=epsg:26919"
  END
END

LAYER
  NAME "naip09_25m_overview"
  GROUP "NAIP_2009"
  MINSCALEDENOM 100000
  MAXSCALEDENOM 500000
  METADATA
    "wms_title" "NAIP_2009_25m"
    "wms_timeextent" "2009-08-30/2009-09-01"
    "wms_timeitem" "TIME"
    "wms_timedefault" "2009-08-31"
  END
  TILEINDEX "naip_09\doq_large_overview_index.shp"
  TILEITEM "location25"
  TYPE RASTER
  OFFSITE 0 0 0
  PROJECTION
    "init=epsg:26919"
  END
END

LAYER
  NAME "naip09_100m_overview"
  GROUP "NAIP_2009"
  MINSCALEDENOM 500000
  METADATA
    "wms_title" "NAIP_2009_100m"
  END
  TYPE RASTER
  DATA "naip_09\mosaic100.tif"
  OFFSITE 0 0 0
  PROJECTION
    "init=epsg:26919"
  END
END

END
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20131212/6fd11b78/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 9032 bytes
Desc: image001.jpg
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20131212/6fd11b78/attachment-0001.jpg>


More information about the mapserver-users mailing list