[Mapserver-users] msBuildPath: Unable to access file.

Merrett, Mike mike.merrett at city.whitehorse.yk.ca
Wed Jun 2 12:08:12 EDT 2004


There are two (that I have found) ways to get a little more info out of
mapserver

if you are using php - try calling this function after suspected error
areas:
function mapserver_error() {

	$ms_err_msg ="";
	$ms_error = ms_GetErrorObj();

	while($ms_error && $ms_error->code != MS_NOERR)
	{
	    $ms_err_msg  .= "MapServer Error in :" . $ms_error->routine . "
" .  $ms_error->message ."\n";
	    $ms_error = $ms_error->next();
	}
	return $ms_err_msg;
}



The other is to set an envionment variable MS_ERRORFILE  to some file name
-- then look at it -- this should work in any enviromnent -- the docs say
that you can (in 4.2) put a "CONFIG MS_ERRORFILE fn.log" in the MAP file but
I have not been able to verify this yet.

Hope this helps,
	Mike Merrett


-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]On Behalf Of Scot
Wilcoxon
Sent: June 1, 2004 11:30 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] msBuildPath: Unable to access file.


I persuaded PostGIS to quit complaining, but now I get an empty image
and the only thing in a log file is:
	msBuildPath: Unable to access file.

My wild guess is that the image is trying to be built in a directory
someplace.

Any way to persuade more detailed error messages to be emitted?  Adding
"DEBUG ON" to .map objects produced nothing -- or I don't know where
such debug info is supposed to appear.

I'm using an EXTENT from the example1-*.map files, which includes a view
of the state in which my data is.  It looks like the MULTILINESTRING(())
values in the_geom has similar values to my .map EXTENT.  I don't know
if it is relevant that table spatial_ref_sys is empty.  (Should
MULTILINESTRING be "TYPE POLYGON" or "TYPE LINE"?)


_______________________________________________
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