[Freegis-list] mapserver, need a recomendation
Steve Lime
steve.lime at dnr.state.mn.us
Thu Jan 5 04:08:37 CET 2006
Sounds to me like you might want to take advantage of the adhoc tiling capabilities in MapServer. For example, you could have an index shapefile that contains one polygon covering the bounds for each dataset. In your case you might have the same polygon in the shapefile 365 times. For each record you might define an attribute called 'day' to store the day number (1-365). You could reference any specific days data by using a filter. A set of layer def might look like:
LAYER
NAME 'mydata_index'
TYPE INDEX
DATA 'mydata_index.shp'
FILTERITEM 'day'
FILTER '364'
END
LAYER
NAME 'mydata'
TYPE RASTER # or whatever
TILEINDEX 'mydata_index'
# ...you could have classes and such here...
END
Effectively this would access the raster referenced in the tile index where day=364 (Dec. 30th). This assumes you would draw each day the same way. You can alter the selected day by mucking with the value for FILTER.
Steve
Stephen Lime
Data & Applications Manager
Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-259-5473
>>> <tzajc at conae.gov.ar> 01/04/06 7:15 PM >>>
First of all thanks for all the answers I got for my previews question
(ogr2ogr).
I'm traying to publish some data using mapserver. The data chnages from
day to day and I would like to keep previous days published.
One easy way is ading layers on the.map file each time y update my data.
This would be fine but y don't know what would hapen when i get 365
layers (a hole year), is this any problem?
Another way is making a .map file for each day separated but I will have
some truoble lisyng them on a web page.
This is probable a job for php (or asp) in which I'm not skilled.
So the question is : is there any prblem adding to many layers on a .map
file. They will probably never been displayed all together.
Tomas
_______________________________________________
Freegis-list mailing list
Freegis-list at intevation.de
https://intevation.de/mailman/listinfo/freegis-list
More information about the Freegis-list
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)