Map image resolution and weird asp issues
a j
sc0rp10nau at YAHOO.COM.AU
Mon Jul 11 18:47:20 PDT 2005
David,
Quick question, are you calling the CGI MapServer url
from within your asp pages? I know you are using an
asp page as a template, but just wanted to ask.
Also, might be out of scope or even not worth it, but
i'll just throw it out there. Use the AJAX methodology
for your mapping. What I mean by this is, you can
generate the map, legend, reference and scale images
from just a CGI-URL call to mapserver. This means you
don't really need any templates within your mapfile.
Just do up a normal asp (or even a basic html) page,
and have some javascript which takes click position
(for zoom/pan), construct a url, connect to the url,
get the requested image back, and upload that
particular image on the page.
This probably sounds a bit complicated, but it's not,
its quite simple, and the map loads pretty quick. (And
you'd be using some new methodologies as well).
As for your IE rendering PNG's as BMP's, i'll see if I
can replicate it, but wouldn't mind knowing how you
are trying to achieve that.
cheers,
Ajay
--- David Shorthouse <dps1 at ualberta.ca> wrote:
> Ajay (and others),
>
> Before posting, tried the OUTPUTFORMAT as you
> suggested. This works
> when the template is html, but does not when the
> template is asp. No matter
> what I do to the mapfile, the file format is always
> bmp. But, this is only
> true when the client browser is IE. In
> Mozilla/Firefox, the changes to the
> mapfile work as they should. Also, changing the
> resolution does nothing to
> the resolution of the image for either client
> browser. Something very
> peculiar is going on here and I'd like to know if
> anyone with the same
> config as I have also exhibits these alarming
> issues. Perhaps it is simply
> not possible to reliably call an image via MapServer
> within asp.
>
> David
>
> >-----Original Message-----
> >From: UMN MapServer Users List
> >[mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of
> Ajay Ranipeta
> >Sent: Saturday, July 09, 2005 11:42 PM
> >To: MAPSERVER-USERS at lists.umn.edu
> >Subject: Re: [UMN_MAPSERVER-USERS] Map image
> resolution and
> >weird asp issues
> >
> >Hi Dave,
> >
> >Not sure much about the BMP output, but this is
> what I have in
> >my mapfiles
> >for OUTPUTFORMAT
> >
> >--------------------------
> > # image format options
> > OUTPUTFORMAT
> > NAME png
> > DRIVER "GD/PNG"
> > MIMETYPE "image/png"
> > IMAGEMODE RGB
> > EXTENSION "png"
> > END
> >--------------------------
> >
> >You can also try to set the IMAGEMODE to PC256 and
> see if that helps.
> >
> >As for the image resolution, try the RESOLUTION
> option in your
> >mapfiles,
> >so for map mode, you might want to have "RESOLUTION
> 250" and
> >for browse mode
> >add in "RESOLUTION 72" (72 dpi is the default, so
> you don't
> >even need to set
> >this).
> >
> >For more help on the mapfile configuration, check
> this doc out:
>
>http://mapserver.gis.umn.edu/doc44/mapfile-reference.html
> >
> >hth
> >
> >Ajay
> >ps. Add those 2 options under the MAP section,
> possibly after the name.
> >
> >On Sat, 9 Jul 2005 22:01:56 -0600, David Shorthouse
>
> ><dps1 at UALBERTA.CA> wrote:
> >
> >>Hey folks,
> >>
> >> I have been trying to get MapServer to play
> nicely when static map
> >>images are generated within an asp page. I have
> the mapfile
> >configured to
> >>output png but strangely in IE, the image file is
> always bmp and
> >>consequently, is about 15X larger in file size
> than it ought to be. In
> >>Mozilla, the image is png as it ought to be and is
> the
> >appropriate file
> >>size. Anyone know what's going on here? As an
> aside, I have
> >two map files:
> >>one for browse mode and one for map mode. I was
> wondering how
> >one goes about
> >>messing with the map files such that the
> resolution of images
> >in map mode
> >>are not always 72 dpi. Interestingly in browse
> mode, the
> >image resolutions
> >>are all 96 dpi. I'd rather have about 250 dpi for
> map mode
> >and 72 dpi for
> >>browse mode.
> >>
> >>Thanks for any ideas,
> >>
> >>Dave
> >>
> >
>
>
Send instant messages to your online friends http://au.messenger.yahoo.com
More information about the MapServer-users
mailing list