[mapserver-users] Kernel Map MapServer 7 WMS Server Bug!?

Helton Nogueira Uchoa engenheiro.uchoa at gmail.com
Tue Jul 7 08:50:12 PDT 2015


Hi list,

I'm trying to make a WMS Server with a kernel (density) map with MapServer
7. In same situations (BBOX size, WIDTH and HEIGHT values) the image  is
returned with no information (white image). Is it a BUG?

*Example: image with kernel map*

http://localhost/cgi-bin/mapserv7-beta?MAP=%2Fvar%2Fwww%2Fhtml%2Fkernelmap%2Fheat-2.map&LAYERS=heatmap&BBOX=-79.369542201052,-39.684771100526,0,0&WIDTH=
*800*&HEIGHT=*400*
&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326

*Example: image with white image*

http://localhost/cgi-bin/mapserv7-beta?MAP=%2Fvar%2Fwww%2Fhtml%2Fkernelmap%2Fheat-2.map&LAYERS=heatmap&BBOX=-79.369542201052,-39.684771100526,0,0&WIDTH=
*800*&HEIGHT=*500*
&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326

MAP FILE:

  layer
    name "heatmap"
    type raster
    connectiontype kerneldensity
    connection "points"
    status on
    processing "RANGE_COLORSPACE=%color%"
    processing "KERNELDENSITY_RADIUS=%radius%"
    processing "KERNELDENSITY_COMPUTE_BORDERS=%border%"
    processing "KERNELDENSITY_NORMALIZATION=%norm%"
    offsite 0 0 0
    SCALETOKEN
      NAME "%radius%"
      VALUES
        "0" "15"
        "255000000" "20"
      END
    END
    SCALETOKEN
      NAME "%border%"
      VALUES
        "0" "ON"
        "255000000" "OFF"
      END
    END
    SCALETOKEN
      NAME "%norm%"
      VALUES
        "0" "AUTO"
        "255000000" "30"
      END
    END
    SCALETOKEN
      NAME "%color%"
      VALUES
        "0" "HSL"
        "255000000" "RGB"
      END
    END
    class
      style
        COLORRANGE  "#0000ff00"  "#0000ffff"
        DATARANGE 0 32
      end
      style
        COLORRANGE  "#0000ffff"  "#ff0000ff"
        DATARANGE 32 255
      end
    end
  end

  LAYER
    name "points"
    status on
    type POINT
    CONNECTION "user=postgres password=xx dbname=yy host=localhost"
    CONNECTIONTYPE POSTGIS
    DATA 'geom FROM atividades USING UNIQUE id_atividade USING SRID=4326'
    CLASS
     #MAXSCALE 275000000
     STYLE
      SIZE 2
     END # style
    END #class
  END # final do layer


Uchoa
--
Helton Nogueira *UCHOA* :: engenheiro.uchoa at gmail.com
*Information Technology and Geospatial Specialist - Project Manager*
*OSGeo Charter Member (www.osgeo.org <http://www.osgeo.org>)*
+55 *85* 8886-3909 (OI - *WhatsApp*) :: +55 *85* 9716-7769 (TIM) :: +55 *85*
 3037-8689 (MULTIPLAY)
Blog: helton.uchoa.com/
LinkedIn: br.linkedin.com/in/heltonuchoa/
Facebook: www.facebook.com/HeltonNogueiraUchoa
Twitter: https://twitter.com/helton_uchoa (@helton_uchoa)
Vimeo: https://vimeo.com/channels/engenheirouchoa
Papers: http://pt.scribd.com/heltonuchoa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150707/d87b09fd/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapserv7-beta-densitymap-800x500.png
Type: image/png
Size: 2335 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150707/d87b09fd/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapserv7-beta-densitymap-800x400.png
Type: image/png
Size: 16786 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150707/d87b09fd/attachment-0001.png>


More information about the MapServer-users mailing list