[mapserver-users] Problems getting a JP2 or TIFF raster layerdrawen
Pano Voudouris
pvoudouris at gaiocorp.com
Thu May 28 09:49:25 PDT 2009
You are right Jukka. It DOES work. Not sure what I was doing there! Just
retried it and its fine.
Pano
-----Original Message-----
From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi]
Sent: 27 May 2009 11:45
To: Pano Voudouris; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Problems getting a JP2 or TIFF raster
layerdrawen
Hi,
I just tried, and for me Mapserver 5.2.1 with mode=map does show rasters as
well. Have you selected the layers to be shown with "&layers=..."? Naturally
if their status is DEFAULT this is not needed.
-Jukka Rahkonen-
> -----Alkuperäinen viesti-----
> Lähettäjä: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta
> Pano Voudouris
> Lähetetty: 27. toukokuuta 2009 11:23
> Vastaanottaja: mapserver-users at lists.osgeo.org
> Aihe: RE: [mapserver-users] Problems getting a JP2 or TIFF
> raster layerdrawen
>
> How are you trying to display the mapfile? Just by using cgi-bin? E.g.
> .../mapserv.exe?map=<path_to_mapfile>&mode=map ...etc?
> I have found- and I am not sure if this is a bug or not that
> the mode=map ignores any raster layers. If you use
> mode=browse or mapscript it works w/out a problem. Anyone? Is
> this a known issue??
>
> Pano
>
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of
> Michael Da Silva Pereira
> Sent: 27 May 2009 10:15
> To: David Martinez Morata
> Cc: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] Problems getting a JP2 or TIFF
> raster layer drawen
>
> Hi,
>
> I've tried by even disabling my shapefile all together and
> only trying to display the raster and still no luck.
>
> Thanks
>
> 2009/5/27 David Martinez Morata <damarmo at gmail.com>:
> > Hello.
> > Try to change the palcement of your layers and configure
> your shape
> > with TRANSPARENT TRUE varible..
> > Something like
> >
> > LAYER
> > NAME '2627D'
> > TYPE RASTER
> > STATUS ON
> > DATA "/var/www/ms-tmp/2627D.JP2"
> > END
> > LAYER
> > NAME vereenigingroads
> > STATUS ON
> > DATA vereenigingroads/
> > vereenigingroads.shp
> > TYPE LINE
> > TRANSPARENT TRUE
> > CLASS
> > NAME 'the world'
> > COLOR 0 0 0
> > END
> > END
> >
> > 2009/5/27 Michael Da Silva Pereira
> <michael.dasilvapereira at iburstafrica.com>
> >>
> >> Hi,
> >>
> >> I am having a problem displaying a JP2 / TIFF image in
> mapserver, it
> >> draws my shape files. However I can not get it to draw my RASTER
> >> layer :(
> >>
> >> Any Suggestions?
> >>
> >>
> >>
> >>
> >> MAP
> >> SIZE 1300 600
> >> DEBUG 5
> >>
> >> EXTENT 23.5 -34 23.6 -25
> >> IMAGECOLOR 180 180 250
> >> UNITS DD
> >> SCALEBAR
> >> STATUS EMBED
> >> UNITS KILOMETERS
> >> INTERVALS 3
> >> TRANSPARENT TRUE
> >> OUTLINECOLOR 0 0 0
> >> END
> >> LEGEND
> >> STATUS EMBED
> >> POSITION LR
> >> TRANSPARENT TRUE
> >> END
> >> WEB
> >> TEMPLATE global.html
> >> IMAGEPATH "/var/www/ms-tmp/"
> >> IMAGEURL "/ms-tmp/"
> >> END
> >> LAYER
> >> NAME vereenigingroads
> >> STATUS ON
> >> DATA vereenigingroads/vereenigingroads.shp
> >> TYPE LINE
> >> CLASS
> >> NAME 'the world'
> >> COLOR 0 0 0
> >> END
> >> END
> >> LAYER
> >> NAME '2627D'
> >> TYPE RASTER
> >> STATUS ON
> >> DATA "/var/www/ms-tmp/2627D.JP2"
> >> END
> >> END
> >>
> >> root at michael-laptop:/var/www/ms-tmp# /usr/lib/cgi-bin/mapserv -v
> >> MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
> OUTPUT=WBMP
> >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV
> >> SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE
> >>
> >> [Wed May 27 08:47:04 2009].804606 msLoadMap(): 0.009s [Wed May 27
> >> 08:47:04 2009].845677 msDrawMap(): Layer 0
> (vereenigingroads), 0.039s
> >> [Wed May 27 08:47:04 2009].845729
> msDrawRasterLayerLow(2627D): entering.
> >> [Wed May 27 08:47:06 2009].130721 msDrawMap(): Layer 1 (2627D),
> >> 1.285s [Wed May 27 08:47:06 2009].131031 msDrawMap():
> Drawing Label
> >> Cache,
> 0.000s
> >> [Wed May 27 08:47:06 2009].131063 msDrawMap() total time:
> 1.326s [Wed
> >> May 27 08:47:06 2009].163796 msSaveImage() total time: 0.033s [Wed
> >> May 27 08:47:06 2009].163926 msFreeMap(): freeing map at 0x91168b8.
> >> [Wed May 27 08:47:06 2009].163974 freeLayer(): freeing layer at
> 0x911d508.
> >> [Wed May 27 08:47:06 2009].163995 freeLayer(): freeing layer at
> 0x911e1d0.
> >> [Wed May 27 08:47:06 2009].164011 freeLayer(): freeing layer at
> 0x9246188.
> >> [Wed May 27 08:47:06 2009].164025 freeLayer(): freeing layer at
> 0x92fea48.
> >> [Wed May 27 08:47:06 2009].164045 shp2img total time: 1.369s
> >>
> >>
> >> root at michael-laptop:/var/www/ms-tmp# du -hs 2627D.JP2 129M
> >> 2627D.JP2
> >>
> >>
> >> --
> >>
> >> Regards,
> >> Michael da Silva Pereira
> >> Mobile: +27 84 245 2376
> >> Office: +27 11 251 2036
> >> _______________________________________________
> >> mapserver-users mailing list
> >> mapserver-users at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
> >
> >
> > --
> > Martinez Morata David
> > Thinking GIS
> >
>
>
>
> --
>
> Regards,
> Michael da Silva Pereira
> Mobile: +27 84 245 2376
> Office: +27 11 251 2036
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> _______________________________________________
> 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