[Mapserver-users] RuntimeError: msSearchDiskTree(): Unable to access file.

Sean Gillies sgillies at frii.com
Thu Apr 17 09:16:26 EDT 2003


Sven,

I am not sure what is happening with your problem #4.

I have a work-around solution for you.  The error raised
by msSearchDiskTree is misleading, becuase a shapetree index
is not _really_ required.  In my opinion, msSearchDiskTree
should warn instead of raising an error.

The work around is to edit your mapscript.i file so that
this particular exception is avoided.  Yesterday I posted
a small bit of code to the "tips and tricks" section of
the PythonMapScript Wiki.  You could adapt that code to
your needs and never see that particular RuntimeError
again.

cheers,
Sean

On Thursday, April 17, 2003, at 04:08  AM, Sven Jacobi wrote:

> Hi list,
>
> I have following problem:
> I want to create a layer with aerial photos, but these files are too
> large so that I have to tile them.
> I have done this in the chronological order:
> 1. use gdaltindex to create the shapefiles (test.dbf, test.shx and 
> test.shp)
>       "/gdaltindex test.shp *.tif" /
>    It seemed to be correct, because with CGI there were no problems....
> 2. But when using Mapscript/Python. I received
>    "/RuntimeError: msSearchDiskTree(): Unable to access file."/
> 3. To get rid of this failure I decided to create a qix-file (I had a
>     similar failure in the past). Therefor I used shptree.
>    /"shptree test.shp"/
> 4. This works, but there is one problem: It only works once.
>     When I have written a new mapfile with my script, I get the same
>      runtime error as above. Although everything looks the same.
>
> Could there be any conflict between qix-file and the shp-file generated
> by gdaltindex. Both handle with indexing.
> I have no ideas any more....
>
> Any help?
>
> Thanks in forward,
>
> Sven
>
>
--
Sean Gillies
sgillies at frii.com
http://www.frii.com/~sgillies




More information about the mapserver-users mailing list