[mapserver-users] Kernel Density maps and WMS Time

Berger, Cora cora.berger at bezreg-koeln.nrw.de
Tue Jun 6 23:06:47 PDT 2017


Dear Domenico,
I created a WMS with TIME-Parameter successfully for historical orthophotos. You find the documentation for the time-parameter in mapfiles here: http://mapserver.org/de/ogc/wms_time.html

In your second layer try to change this:
Instead of 
CONNECTIONTYPE KERNELDENSITY
CONNECTION "the_geom"
Try
TILEINDEX "the_geom"
TILEITEM "location" 	#if the name of the column with the information where the data is stored is called like this
FILTER (`[datetime]` = `2006-06-23T03:10:00Z`)

In my case only the tileindex is stored in postgis and the raster data is stored in a filesystem. The column "location" of the tileindex contains the path to the folder where the raster data is stored.
Have you set up a mapfile using raster data and tileindex before? Maybe it helps to read the tileindex-documentation, too to get a better understanding of how the tileindex works. The WCS documentation also contains a part about spatio-temporal-tileindexes http://mapserver.org/ogc/wcs_server.html#spatio-temporal-indexes

Cheers 
Cora

>----------------------------------------------------------------------
>
>Message: 1
>Date: Tue, 6 Jun 2017 15:12:10 +0200
>From: Domenico Febbo <domenico.febbo at gmail.com>
>To: mapserver-users at lists.osgeo.org
>Subject: [mapserver-users] Kernel Density maps and WMS Time
>Message-ID:
>	<CALqvQ1NMG3ZXMN+FDf9HVy2PV1AQDFpNy9O=xF0cT35U0e-
>Qjg at mail.gmail.com>
>Content-Type: text/plain; charset="utf-8"
>
>Dear All,
>there is a way to pass TIME parameter using WMS Time protocol from Kernel
>Density map to the base layer connected to POSTGIS?
>
>I want to create an animated density map using TIME parameter.
>
>######  MAPFILE  Extract  #######
>
>LAYER
>    CONNECTION "host=localhost port=5432 dbname=postgres user=postgres
>password=postgres"
>    CONNECTIONTYPE POSTGIS
>    DATA "the_geom from (select * from table) as foo using unique gid using
>srid=4326"
>    NAME "the_geom"
>    PROCESSING "CLOSE_CONNECTION=DEFER"
>    PROJECTION
>      "init=epsg:4326"
>    END # PROJECTION
>    STATUS ON
>    METADATA
>       "wms_timeextent" "2017-04-01/2017-06-10"
>       "wms_timeitem" "datetime" #datetime is a column in postgis table of
>type timestamp
>       "wms_timedefault" "2017-06-06"
>       "wms_enable_request" "*"
>    END
>    TEMPLATE "fooOnlyForWMSGetFeatureInfo"
>    TYPE POINT
>    CLASS
>        NAME "a"
>        STYLE
>            SIZE 4
>            COLOR "#FF00FF"
>            SYMBOL "circle_fill"
>        END # style
>    END #class
>END # final layer
>
>  LAYER
>    NAME "the_geom_denisty"
>    TYPE RASTER
>    CONNECTIONTYPE KERNELDENSITY
>    CONNECTION "the_geom"
>    STATUS ON
>    PROCESSING "RANGE_COLORSPACE=HSL"
>    PROCESSING "KERNELDENSITY_RADIUS=20"
>    PROCESSING "KERNELDENSITY_COMPUTE_BORDERS=ON"
>    PROCESSING "KERNELDENSITY_NORMALIZATION=2.0"
>    OFFSITE 0 0 0
>
>    METADATA
>       "wms_title" "the_geom_denisty WMS-T"
>       "wms_timeextent" "2017-04-01/2017-06-10"
>       "wms_timeitem" "datetime" #datetime is a column in postgis table of
>type timestamp
>       "wms_timedefault" "2017-06-06"
>       "wms_enable_request" "*"
>    END
>
>    CLASS
>      STYLE
>        COLORRANGE  "#f46d43FF"  "#d73027FF"
>        DATARANGE 0 255
>      END
>    END
>  END
>
>###############################
>tag: HEATMAP, WMS-T
>
>Regards, Domenico.
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL: <http://lists.osgeo.org/pipermail/mapserver-
>users/attachments/20170606/ac764e0b/attachment-0001.html>
>
>------------------------------
>
>Subject: Digest Footer
>
>_______________________________________________
>mapserver-users mailing list
>mapserver-users at lists.osgeo.org
>https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>------------------------------
>
>End of mapserver-users Digest, Vol 113, Issue 7
>***********************************************


More information about the mapserver-users mailing list