[mapserver-dev] Mapserver trunk & postgis 2.0

Salvatore Larosa S_Larosa at libero.it
Thu Mar 8 06:00:28 EST 2012


Sorry, I was convinced that Andrea had the problem of a raster display!
However, taking advantage of the availability of Stephen!

My map file is:
MAP
  IMAGETYPE      png
  EXTENT         -100.0146627565979998 9.9853372434017587 -69.9853372434015597 
40.0146627565981987
  SIZE           600 600
  #SHAPEPATH      "../data"
  CONFIG MS_ERRORFILE "stderr"
  DEBUG 10 
LAYER
	NAME katrina
	TYPE raster
	STATUS ON
	DATA "PG:host=localhost port=5432 dbname='workshop' user='postgres' 
password='*********' schema='public' table='katrina' mode='2'"	
	PROCESSING "NODATA=-32768"
	PROCESSING "SCALE=-100.5,100.5"
	PROCESSING "SCALE_BUCKETS=201"
END
END

and then:

sam at debian~$ shp2img -m /home/sam/www/katrina.map -o /home/sam/www/katrina.png 
-l katrina
[Thu Mar  8 11:50:33 2012].404176 msDrawMap(): rendering using outputformat 
named png (AGG/PNG).
[Thu Mar  8 11:50:33 2012].404298 msDrawMap(): WMS/WFS set-up and query, 0.000
s
[Thu Mar  8 11:50:33 2012].406252 msDrawRasterLayerLow(katrina): entering.
[Thu Mar  8 11:50:33 2012].690629 LoadGDALImage(katrina): NODATA value -32768 
in GDAL
file or PROCESSING directive largely ignored.  Not yet fully supported for
unclassified scaled data.  The NODATA value is excluded from auto-scaling
min/max computation, but will not be transparent.
[Thu Mar  8 11:50:33 2012].693783 LoadGDALImage(katrina): NODATA value -32768 
in GDAL
file or PROCESSING directive largely ignored.  Not yet fully supported for
unclassified scaled data.  The NODATA value is excluded from auto-scaling
min/max computation, but will not be transparent.
[Thu Mar  8 11:50:33 2012].696929 LoadGDALImage(katrina): NODATA value -32768 
in GDAL
file or PROCESSING directive largely ignored.  Not yet fully supported for
unclassified scaled data.  The NODATA value is excluded from auto-scaling
min/max computation, but will not be transparent.
[Thu Mar  8 11:50:33 2012].700532 msDrawMap(): Layer 0 (katrina), 0.296s
[Thu Mar  8 11:50:33 2012].700575 msDrawMap(): Drawing Label Cache, 0.000s
[Thu Mar  8 11:50:33 2012].700609 msDrawMap() total time: 0.298s
[Thu Mar  8 11:50:33 2012].725200 msSaveImage(/home/sam/www/katrina.png) total 
time: 0.025s
[Thu Mar  8 11:50:33 2012].725349 msFreeMap(): freeing map at 0x269ed40.


i get an image totally gray!

I need to check if the problem is in the GDAL libraries (r24093)!

Thanks



>----Messaggio originale----
>Da: woodbri at swoodbridge.com
>Data: 07/03/2012 18.25
>A: <mapserver-dev at lists.osgeo.org>
>Ogg: Re: [mapserver-dev] Mapserver trunk &amp; postgis 2.0
>
>First it would help if you post your LAYER block or DATA statement.
>
>In the MAP section put something like:
>
>     CONFIG MS_ERRORFILE "stderr"
>     DEBUG 10
>
>And you might also try adding the DEBUG to the actual LAYER block. Under 
>apache, the error messages will go into the apache error.log
>
>-Steve W
>
>On 3/7/2012 11:35 AM, Salvatore Larosa wrote:
>> I am having the same problem, but I fear that the
>>
>> command raster2pgsql did not work properly,
>>
>> at least in my case!
>> Can you see your raster display somewhere?
>> How did your map file?
>>
>> Here [1] it seems to work!
>>
>>
>> Regards!
>>
>>
>> [1] - http://trac.osgeo.org/postgis/ticket/497
>>
>>
>>     ----Messaggio originale----
>>     Da: aperi2007 at gmail.com
>>     Data: 05/03/2012 15.06
>>     A: <mapserver-dev at lists.osgeo.org>
>>     Ogg: [mapserver-dev] Mapserver trunk & postgis 2.0
>>
>>     Hi,
>>     Is supported postgis 2.0 on Mapserver trunk ?
>>
>>     I'm testing that version of mapserver and will use postgis 2.0 beta2.
>>
>>     I'm having some trouble, mapserver give no errors, but the map is
>>     fully white.
>>
>>     I see also the bounding-box is forgotten.
>>     How is possible to growth the log level to have more information
>>     from mapserver ?
>>
>>     thx,
>>
>>
>>     --
>>     -----------------
>>     Andrea Peri
>>     . . . . . . . . .
>>     qwerty àèìòù
>>     -----------------
>>
>>
>>
>>
>>
>> _______________________________________________
>> mapserver-dev mailing list
>> mapserver-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
>_______________________________________________
>mapserver-dev mailing list
>mapserver-dev at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>




More information about the mapserver-dev mailing list