Re: [mapserver-users] Kernel Density maps and WMS Time

2017-06-06 Thread Berger, Cora
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 
>To: mapserver-users@lists.osgeo.org
>Subject: [mapserver-users] Kernel Density maps and WMS Time
>Message-ID:
>   q...@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@lists.osgeo.org
>https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>--
>
>End of mapserver-users Digest, Vol 113, Issue 7
>***
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Kernel Density maps and WMS Time

2017-06-06 Thread Domenico Febbo
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.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Kernel density layer tile clipping

2016-12-13 Thread Dave Barter
Can anyone help me troubleshoot some tile clipping we are getting when using 
Kernel Desity layers?

I have set up the layer as below but am still seeing tiles clipped at certain 
zoom levels. I tried increasing the tile size which improved things but not 
100%:-

LAYER
 NAME feature_heatmap
 SIZEUNITS meters
 TYPE raster
 CONNECTIONTYPE kerneldensity
 CONNECTION "point_data"
 STATUS ON


 PROCESSING "RANGE_COLORSPACE=HSL"
 PROCESSING "KERNELDENSITY_RADIUS=25"
 PROCESSING "KERNELDENSITY_COMPUTE_BORDERS=ON"
 PROCESSING "KERNELDENSITY_NORMALIZATION=AUTO"
 OFFSITE 0 0 0

   CLASS
 STYLE
   COLORRANGE  "#"  "#FFFF"
   DATARANGE 0 255
 END
   END
   #MAXSCALE 2
   DEBUG 0
END


Any ideas appreciated.

Dave Barter
d...@phased.co.uk
@citizenfishy
www.phased.co.uk

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Kernel Density

2016-12-01 Thread Dave Barter
Figured it out.

My bad as the map file was correct. Turns out the values were set the same 
across the points down to a bug in our application editor!!

Thansk for helping me get to this point.

Dave Barter
d...@phased.co.uk
@citizenfishy
www.phased.co.uk

> On 1 Dec 2016, at 14:56, thomas bonfort  wrote:
> 
> Forget my datarange comment, I should have re-read the docs. I see nothing 
> wrong with your setup, so you should be getting a different output provided 
> you are certain your [val] attribute is effectively ranging from 0 to 100.
> You might get some insights with:
> - Try manually setting your STYLE->SIZE (0 then 100 then 255)
> - Try with AUTO normalization once you've re-enabled [val] binding
> 
> --
> thomas
> 
> On Thu, Dec 1, 2016 at 3:39 PM thomas bonfort  > wrote:
> At a first glance your mapfile seems correct. Can you try switching your 
> datarange to  0 50, and make sure that you are not using a tiled display on 
> your viewer?
> 
> --
> thomas
> 
> On Thu, Dec 1, 2016 at 3:27 PM Dave Barter  > wrote:
> Can anyone on the list help with this:-
> 
> http://gis.stackexchange.com/questions/219669/mapserver-kernel-density-layer-weight
>  
> 
> 
> 
> Dave Barter
> d...@phased.co.uk 
> @citizenfishy
> www.phased.co.uk 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users 
> 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Kernel Density

2016-12-01 Thread Dave Barter
Thanks, this has got to the nub of it as:-

SIZE 1 and SIZE 100 and SIZE 255 show no difference so SIZE is not making it in 
to the Kernelt density layer at all?


Dave Barter
d...@phased.co.uk
@citizenfishy
www.phased.co.uk

> On 1 Dec 2016, at 14:56, thomas bonfort  wrote:
> 
> Forget my datarange comment, I should have re-read the docs. I see nothing 
> wrong with your setup, so you should be getting a different output provided 
> you are certain your [val] attribute is effectively ranging from 0 to 100.
> You might get some insights with:
> - Try manually setting your STYLE->SIZE (0 then 100 then 255)
> - Try with AUTO normalization once you've re-enabled [val] binding
> 
> --
> thomas
> 
> On Thu, Dec 1, 2016 at 3:39 PM thomas bonfort  > wrote:
> At a first glance your mapfile seems correct. Can you try switching your 
> datarange to  0 50, and make sure that you are not using a tiled display on 
> your viewer?
> 
> --
> thomas
> 
> On Thu, Dec 1, 2016 at 3:27 PM Dave Barter  > wrote:
> Can anyone on the list help with this:-
> 
> http://gis.stackexchange.com/questions/219669/mapserver-kernel-density-layer-weight
>  
> 
> 
> 
> Dave Barter
> d...@phased.co.uk 
> @citizenfishy
> www.phased.co.uk 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users 
> 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Kernel Density

2016-12-01 Thread thomas bonfort
Forget my datarange comment, I should have re-read the docs. I see nothing
wrong with your setup, so you should be getting a different output provided
you are certain your [val] attribute is effectively ranging from 0 to 100.
You might get some insights with:
- Try manually setting your STYLE->SIZE (0 then 100 then 255)
- Try with AUTO normalization once you've re-enabled [val] binding

--
thomas

On Thu, Dec 1, 2016 at 3:39 PM thomas bonfort 
wrote:

> At a first glance your mapfile seems correct. Can you try switching your
> datarange to  0 50, and make sure that you are not using a tiled display on
> your viewer?
>
> --
> thomas
>
> On Thu, Dec 1, 2016 at 3:27 PM Dave Barter  wrote:
>
> Can anyone on the list help with this:-
>
>
> http://gis.stackexchange.com/questions/219669/mapserver-kernel-density-layer-weight
>
>
> Dave Barter
> d...@phased.co.uk
> @citizenfishy
> www.phased.co.uk
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Kernel Density

2016-12-01 Thread thomas bonfort
At a first glance your mapfile seems correct. Can you try switching your
datarange to  0 50, and make sure that you are not using a tiled display on
your viewer?

--
thomas

On Thu, Dec 1, 2016 at 3:27 PM Dave Barter  wrote:

> Can anyone on the list help with this:-
>
>
> http://gis.stackexchange.com/questions/219669/mapserver-kernel-density-layer-weight
>
>
> Dave Barter
> d...@phased.co.uk
> @citizenfishy
> www.phased.co.uk
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Kernel Density

2016-12-01 Thread Dave Barter
Can anyone on the list help with this:-

http://gis.stackexchange.com/questions/219669/mapserver-kernel-density-layer-weight
 



Dave Barter
d...@phased.co.uk
@citizenfishy
www.phased.co.uk

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Kernel Density maps

2015-12-17 Thread Domenico Febbo
Dear all,
I'm playing with Kernel Density maps [1]  on MAPSERVER 7.0.0 and I have
some questions/suggestions:

1) It could be useful to set the "KERNELDENSITY_RADIUS" also in map units
not only in pixel in order to save density distribution during zoom in/out

2) I didin't find a way to use KERNELDENSITY_ATTRIBUTE, do you have
examples or information?

3) How to generate a LEGEND of raster values for the HEATMAP?


[1] http://mapserver.org/output/kerneldensity.html

Regards, Domenico.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users