[Mapserver-users] Mapserver 401: Reference image bounding box

Julien, Heryk hjulien at nrcan.gc.ca
Tue Jan 6 10:42:43 EST 2004


Hi to all,
Thanks for your replies,
I found a solution to the bug but I don't understand why it worked!
I opened my "8 bit indexed gif" reference image in Corel Photo-Paint and
selected the option "optimize for web" and saved it in the same format (8
bit indexed gif). The new image works!
I see a bounding box!

Anyone understands what is going on?

Furthermore, does the reference map and main map ratio have to be identical
in order for the reference image to work correctly? My main map is 400X400
pix (1:1) while my reference map is 175X117 pix (1.5:1).

Thanks again

Héryk
NRCan

-----Message d'origine-----
De : Eric Bridger [mailto:eric at gomoos.org]
Envoyé : Tuesday, January 06, 2004 10:03 AM
À : Mapserver List
Objet : RE: [Mapserver-users] Mapserver 401: Reference image bounding
box


What size is your map?  Does the map aspect ratio match 175/117?

On Tue, 2004-01-06 at 09:39, Julien, Heryk wrote:
> Hi,
> I checked the image size and everything is okay. The base reference image
is
> a gif which measures 175 by 117 pix. The outputted gif reference image is
> the same size but the bounding box is missing!
> 
> Still trying to debug the reference image.
> 
> Thanks for the reply
> Bedankt
> 
> Héryk
> 
> **********
> Mapfile:
> REFERENCE
> 	COLOR  255 0 0
> 	EXTENT 493163 4857827 2100223 5910452
> 	STATUS ON
> 	OUTLINECOLOR 255 0 0
> 	SIZE 175 117
> 	IMAGE "..\data\raster\refQcMaritimesUTM83Z18.gif"
> END  #REFERENCE
> **********
> 
> 
> -----Message d'origine-----
> De : Till Adams [mailto:adams at terrestris.de]
> Envoyé : Tuesday, January 06, 2004 3:35 AM
> À : Julien, Heryk
> Cc : mapserverlist
> Objet : Re: [Mapserver-users] Mapserver 401: Reference image bounding
> box
> 
> 
> Julien,
> 
> I had this problem before - your image used for the reference map might 
> have a higher resolution than the defined box in your clinet - e.g. the 
> image has 600 x 400 pix and in your client you defined the reference map 
> to have 140 x 100 pix: Mapserver scales the image down to 150 x 100 pix 
> (also leading to performance loss) and with it the (red) bounding box, 
> which has 1 pixel linewidth.
> 
> Cheers,
> Till
> 
> Julien, Heryk schrieb:
> > Hi,
> > Anyone else having trouble or found a solution to the reference image
> > "bounding box" not being drawn?
> > I selected a red bounding box (outlinecolor 255 0 0) in my mapfile but
it
> is
> > not showing up on the reference image!
> > I'm using Mapserver 401.
> > 
> > Héryk
> > NRCan
> > 
> > 
> >> -----Message d'origine-----
> >>De : 	Julien, Heryk  
> >>Envoyé :	Thursday, December 18, 2003 2:28 PM
> >>À :	'mapserver-users at lists.gis.umn.edu'
> >>Objet :	reference image bounding box
> >>
> >>Hi,
> >>I'm having trouble with my reference image bounding box. The reference
> >>image appears and I can navigate in my map by clicking in the reference
> >>image however the bounding box doesn't display in the reference image.
> >>Anyone had that trouble before?
> >>
> >>Mapfile:
> >>#
> >># Start of reference map
> >>#
> >>REFERENCE
> >>	COLOR  -1 -1 -1
> >>	EXTENT 493163 4857827 2100223 5910452
> >>	STATUS ON
> >>	OUTLINECOLOR 255 0 0
> >>	SIZE 175 117
> >>	IMAGE "..\data\raster\refQcMaritimesUTM83Z18.gif"
> >>END  #REFERENCE
> >>
> >>==========================================
> >>Héryk
> >>NRCan
> >>
> > 
> > 
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > 
> 
> 
> -- 
> 
> NEU +++ NEU +++ NEU +++ NEU
> 
>     AveiN! ist Open Source
> Lizensiert unter der GNU GPL
> 
> -----
> 
> Dipl. Geogr. Till Adams
> terrestris, Paulsen&Adams GbR
> Siemensstr. 8 * 53121 Bonn
> Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57
> info at terrestris.de * www.terrestris.de
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 



_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list