Le lundi 09 juin 2014 22:35:48, Hari Pradhan a écrit : > No Evan. My requirement says I have a set of individual shape files taken > at different time frame. Let's say shape1.shp at time t1 , shape2.shp at > time t2,.. shapen.shp at time tn. Using these shape files, I have to create > tileindex file with location and time field, location being the path of > each shape file and time field being the time at which that individual > shape file was captured. I have used ogrtindex.exe to create tile index > file. >
Hari, I understand your requirements. I was just giving you my understanding of the current state of the code of MapServer. Doing what you want to do would require further developments in MapServer. Even > > > On Mon, Jun 9, 2014 at 3:29 PM, Even Rouault <[email protected]> > > wrote: > > Le lundi 09 juin 2014 22:15:56, Hari Pradhan a écrit : > > > Thanks Even. I tried as you said by separating a layer with the tile > > > > index > > > > > and the vector layer as: > > > > > > # Tile Index > > > LAYER > > > STATUS ON > > > NAME "time_idx" > > > DATA "vector2.shp" > > > TYPE POLYGON > > > #CONNECTIONTYPE OGR > > > END > > > > > > LAYER > > > NAME "states" > > > DEBUG 5 > > > TYPE POLYGON > > > TILEINDEX "time_idx" > > > TILEITEM "Location" > > > > > > STATUS ON > > > > > > METADATA > > > > > > "wms_title" "states" > > > "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_timeextent" "20070301/20070302" > > > "wms_timeitem" "Time" > > > "wms_timedefault" "20070302" > > > > > > END > > > > > > #FILTER "Time = '20070302'" > > > > > > PROJECTION > > > > > > "init=epsg:42304" > > > > > > END > > > > > > CLASS > > > > > > NAME "The Upper Great Lakes States" > > > STYLE > > > > > > COLOR 232 232 232 > > > OUTLINECOLOR 32 32 32 > > > > > > END > > > > > > END > > > END #Layer > > > > > > This also gives an error as "msDBFGetItemIndex(): DBASE file error. > > > Item 'Time' not found.". > > > > Looking at the code of msTiledSHPNextShape(), I believe that your > > shapefiles > > reference in the tile index should also have a "Time" field. > > > > > On Mon, Jun 9, 2014 at 2:34 PM, Even Rouault < > > > > [email protected]> > > > > > wrote: > > > > Le lundi 09 juin 2014 21:15:05, Hari Pradhan a écrit : > > > > > Hello List, > > > > > > > > > > I have been trying to implement MapServer WMS -T using tile index. > > > > But > > > > > > > I > > > > > > > > am > > > > > > > > > not able to make it work. I made some changes to the mapfile > > > > > defined for "WMS-T for raster imagery" in the link > > > > > "http://mapserver.org/ogc/wms_time.html" to make it work for vector > > > > > data and followed the post in the link " > > > > http://osgeo-org.1560.x6.nabble.com/WMS-WFS-and-yearly-time-dependent-dat > > > > > > a- > > > > > > > > > td4275270.html", but it didn't fix it out. > > > > > > > > > > The thing that I did: > > > > > 1. I had a set of vector shape file captured at different time > > > > > frame. Say v1.shp, v2.shp,... > > > > > 2. I used ogrtindex to generate a tileindex (say 'VectorLayer2.shp) > > > > for > > > > > > > above shape files. The dbf file of this tileindex has 'location' > > > > > > > > attribute. > > > > > > > > > 3. I ran my script to add 'Time' field to this tileindex such that > > > > the > > > > > > > final dbf file has two fields as location and Time. > > > > > > > > > > My dfb file looks like: > > > > > LOCATION Time > > > > > > > > > > C:\data\tif\VectorLayer\SiteAddress_1.shp,0 20070301 > > > > > C:\data\tif\VectorLayer\SiteAddress_2.shp,0 20070302 > > > > > > > > > > 4. Then finally I wrote the map file with layer section as: > > > > > > > > > > LAYER > > > > > > > > > > NAME "states" > > > > > > > > > > DEBUG 5 > > > > > CONNECTIONTYPE OGR > > > > > TILEINDEX "VectorLayer2.shp" > > > > > TILEITEM "Location" > > > > > TYPE POLYGON > > > > > > > > > > STATUS ON > > > > > > > > > > METADATA > > > > > > > > > > "wms_title" "states" > > > > > > > > > > "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_timeextent" "20070301/20070302" > > > > > "wms_timeitem" "Time" > > > > > "wms_timedefault" "20070302" > > > > > > > > > > END > > > > > > > > > > FILTER "Time = '20070302'" > > > > > > > > > > PROJECTION > > > > > > > > > > "init=epsg:42304" > > > > > > > > > > END > > > > > > > > > > CLASS > > > > > > > > > > NAME "The Upper Great Lakes States" > > > > > STYLE > > > > > > > > > > COLOR 232 232 232 > > > > > OUTLINECOLOR 32 32 32 > > > > > > > > > > END > > > > > > > > > > END > > > > > > > > > > END > > > > > > > > > > By doing this, I got the following error. > > > > > msOGRLayerInitItemInfo(): OGR error. Invalid Field name: Time". > > > > > > > > > > Could anyone please help me to resolve this problem? > > > > > > > > Hum, I'm wondering if FILTER "Time = '200070302'" doesn't apply to > > > > the shapefile referenced by the tileindex, instead of the tileindex > > > > itself. Perhaps > > > > you could try to remove it ? > > > > > > > > Also you could try to seperate a layer with the tileindex itself and > > > > the > > > > > > vector layer using it, as in the example in > > > > http://www.mapserver.org/ogc/wms_time.html > > > > > > > > > Thanks in advance. > > > > > > > > > > Thanks > > > > > > > > -- > > > > Geospatial professional services > > > > http://even.rouault.free.fr/services.html > > > > -- > > Geospatial professional services > > http://even.rouault.free.fr/services.html -- Geospatial professional services http://even.rouault.free.fr/services.html _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
