[MS4W-Users] WMS TIME using shapefiles

HeZheng hzxfrank2010 at 163.com
Tue Aug 23 21:59:23 EST 2011


Jeff McKenna wrote:
> 
> Hello,
> 
> Hmm. I wonder if you can try the request on a single shapefile (not a 
> tileindex file).  I wonder if that works for you?
> 
> -jeff
> 
> 
> -- 
> Jeff McKenna
> MapServer Consulting and Training Services
> http://www.gatewaygeomatics.com/
> 
> 
> 
> 
> On 11-08-21 11:48 PM, HeZheng wrote:
>> Hello,all:
>>
>> I am having difficulties to make WMS time series work.
>>
>> i used ogrtindex to tile the shapefiles and three files was
>> created(tileindex.shp, tileindex.dbf, tileindex.shx) , and then i add a
>> field named "DATETIME" to the dbf using access. and my *.map is like
>> this:
>>
>> ####################################
>> LAYER
>>      METADATA
>>        "wms_srs"	"epsg:4326"
>>        "wms_title"	"co2000_ugl"
>>        "wms_timeformat" "YYYYMMDD"
>>        "wms_timeextent" "20110101/20110105"
>>        "wms_timeitem" "DATATIME"
>>        "wms_timedefault" "20110101"
>>      END
>>      NAME "co2000_ugl"
>>      STATUS ON
>>      TYPE POLYGON
>>      UNITS METERS
>>      TILEITEM "location"
>>      TILEINDEX "tileindex.dbf"
>>      CLASS
>>        NAME "co2000_ugl"
>>        STYLE
>>          ANGLE 360
>>          COLOR 139 92 169
>>          OPACITY 0
>>          OUTLINECOLOR 248 70 82
>>          SYMBOL 0
>>          WIDTH 1
>>        END
>>      END
>>    END
>> ##################################
>> the Url is:
>> "http://localhost:8888/cgi-bin/mapserv.exe?map=e:/Tile/test/test.map&version=1.1.1&request=getmap&layers=co2000_ugl&SRS=EPSG:4326&bbox=-96.860901,
>> 41.593990, -82.798264, 49.355503&width=800&height=600&format=image/png"
>> i got this error:
>> <ServiceException>
>> msDrawMap(): Image handling error. Failed to draw layer named
>> &#39;co2000_ugl&#39;.
>> msDBFGetItemIndex(): DBASE file error. Item&#39;DATETIME&#39; not found.
>> </ServiceException>
>> can someone help me? Thank you!
>>
> _______________________________________________
> MS4W-Users mailing list
> MS4W-Users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ms4w-users
> 
Thanks, Jeff.
I tried again and it worked, I added a column named "datetime" to the
shapefile and filled the column with the datetime value = 2011-01-01, when i
used 
       "wms_timeextent" "2011-01-01/2011-01-05"
       "wms_timedefault" "2011-01-01"
in my layer, I only got a blank map.So I changed the time form to
       "wms_timeextent" "20110101/20110105"
       "wms_timedefault" "20110101"
and then it works! 

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-TIME-using-shapefiles-tp6710071p6718710.html
Sent from the ms4w-users mailing list archive at Nabble.com.


More information about the MS4W-Users mailing list