[mapserver-users] Kernel Density maps and WMS Time

Domenico Febbo domenico.febbo at gmail.com
Tue Jun 6 06:12:10 PDT 2017


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.html>


More information about the mapserver-users mailing list