[mapserver-users] not unique image filenames problem

E Perik erwin at perik.nu
Fri Mar 29 14:09:56 EST 2002


Hi Daniel and Puneet,

my assumption that mapserver could be the problem is not right. As you
stated it retrieves the url after the image is created. As the url and
the image are both correct, it leaves me with some sorting out.

Use Mapserver on WinXP with Apache and only local drives. Will need to
look into the disk-caching problem.

Have however had some internet related cache problems lately. When I
manually type an url it somehow comes up with some totally other site,
leaving the url as I typed it. Another chapter of the 'strange-cases'
magazine ;-)

As suspected the error.log did not show anything out of the ordinary.
Why should it ;-))

Both image and url created by Mapscript are correct. Verified that over
and over again. Storing the generated HTML-source into a HTML page and
loading it comes up with the image as it should be.

Did some testing and think it's somewhere in my PHP-Mapscript coding as
I have on other example now creating only the zoomed-image and that one
works perfectly. Need to see then John Woo movie soon ;-)

Thanks for the effort looking into it,

Erwin



PS. I can get you both a free subscription to the magazine. No problem
;-)






-----Original Message-----
From: owner-mapserver-users at lists.gis.umn.edu
[mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Daniel
Morissette
Sent: Friday, March 29, 2002 3:01 PM
To: E Perik
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [mapserver-users] not unique image filenames problem

E Perik wrote:
> 
> All is well for about 90% of the queries, but the other times it does
> not
> show the newly created image but it shows the "red-X".
> 
> Think in my case mapserver is slower in generating the image then PHP
is
> in generating the code which loads the image.
> 


This problem cannot be related to the time MapScript takes to create the
image, since it is $image->saveWebImage() that returns you the image
URL, and it doesn't return until the image is finished generating.  So
this possibility is completely out of the question.

However I've seen odd disk caching issues with Windoze servers in the
past, sometimes with local disks, but very often with network drives...
I hope this is not running off a network drive?

Also, did you check your server's error_log to look for error messages
that could help figure the source of the problem?


> Beats me ;-(
> 
> Seems like I have a subscription to the 'strange-cases' magazine ;-)
> 

I hear ya!  It's a strange one, but most of the time once we figure the
source of the problem we start wondering why it ever worked.  ;)

Good luck!
-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.




More information about the mapserver-users mailing list