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

thomas bonfort thomas.bonfort at gmail.com
Tue Jul 7 08:54:46 PDT 2015


Sorry, clicked on send to fast...
Can you try explicitely setting PROJECTION blocks on your mapfile
layers and report back. We seem to be having issues on these
intermediate layer cases when those are not set.

--
thomas

On 7 July 2015 at 17:52, thomas bonfort <thomas.bonfort at gmail.com> wrote:
> https://github.com/mapserver/mapserver/issues/5114#issuecomment-119091025
>
>
> On 7 July 2015 at 17:50, Helton Nogueira Uchoa
> <engenheiro.uchoa at gmail.com> wrote:
>> 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)
>> +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
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list