[mapserver-users] Reference obj & image file
Pushkar Pradhan
pushkar at ERC.MsState.Edu
Mon Mar 25 09:32:36 PST 2002
Vu,
This must be happening because your gd doesn't support gif imgs. Regarding
your 2nd ques. I couldn't understand it so not able to answer.
Work around for 1st problem is to convert all gifs to pngs (which you
already did).
> Thanks, Steve. Is there any free app allow me to resize the shape and
> save ?
>
> Other questions :
> 1. when I use a gif file, I got this error msg:
> msDrawReferenceMap(): General error message. Unable to load GIF
> reference image.
>
> [ The path is correct, because if I change the filename, I get another
> error
> msDrawReferenceMap(): Unable to access file. (ilkane_ref.gif)].
>
> What may cause this ?
>
> 2. Then I tried a .png file, it does display the reference picture, but
> the reference is not correct. I don't know if it is because .png is not
> usable as the doc states, or because my wrong parameter somewhere else ?
>
> Thanks,
>
> Vu
>
>
> -----Original Message-----
> From: owner-mapserver-users at lists.gis.umn.edu
> [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Stephen
> Woodbridge
> Sent: Saturday, March 23, 2002 7:32 AM
> To: Vu Pham
> Cc: mapserver-users at lists.gis.umn.edu
> Subject: Re: [mapserver-users] Reference obj & image file
>
>
> Vu,
>
> Your work-a-round to this problem was good, but there is a much easier
> way to do this that other might be interested in.
>
> If you want a reference image of say 200 x 200 then edit your map file
> and set the image SIZE 200 200 then use shp2img -m <mapfile> -o
> reference.gif
>
> and you are all done!
>
> Oh, don't forget to change your SIZE back to its orginal.
>
> -Steve
>
> Vu Pham wrote:
> >
> > Hi all,
> >
> > I would like to use the Reference object. The doc says I need I gif
> > file for the reference image. Is there any way to help me to have this
>
> > image file from the the shape file or any similar way without manually
>
> > drawing ? I am very bad in drawing.
> >
> > Thanks,
> >
> > Vu
>
------------------------------------------------------------------------------
PUSHKAR S. PRADHAN
Research Assistant
MISSISSIPPI STATE UNIVERSITY,
STARKVILLE, MS 39759.
Engineering Research Center
Box 9627
Mississippi State, MS 39762-9627
------------------------------------------------------------------------------
More information about the MapServer-users
mailing list