[MapServer-users] is it possible to use other attributes stored on tileindex and querry dataset using them?

Marcin Niemyjski mniemyjski at cloudferro.com
Thu May 25 02:29:12 PDT 2023


Hello,

is it possible to use other attributes stored on tileindex and querry dataset using them? For example, here is the structure of my tileindex:

geometry | location | time | cloud_cover

By default, Mapserver uses only geometry and location to check the spatial extent and then uses path to corresponding file. What I would like to do is using time and cloud_cover attribute the way below:

(example of what o would like to achieve):

http://localhost/?map=/etc/mapserver/Sentinel-2-Sample.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=1534893.345061423257,7143105.10061901249,1540006.889062916394,7146487.518795842305&CRS=EPSG:3857&WIDTH=1217&HEIGHT=805&LAYERS=Sentinel-2&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE&time=2023-01-01&max_cloud_cover=50

so, in response I would get an image corresponding to choose spatial extent taken only on 2023-01-01 and with maximum cloud cover equal to 50%.

Also, I think it would be better to keep tileindex in postgresql database.

Any suggestions, samples of mapfiles would be greate ^^

Best ,
Marcin




[cid:14390fd2-f60a-4d9d-9998-9db6bc2200f0]<https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae948648789d@cloudferro.com?anonymous&ep=signature>           Book time to meet with me<https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae948648789d@cloudferro.com?anonymous&ep=signature>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230525/65c549f7/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-1viwtob1.png
Type: image/png
Size: 528 bytes
Desc: Outlook-1viwtob1.png
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230525/65c549f7/attachment.png>


More information about the MapServer-users mailing list