[ms4w-users] Re: ms4w, GDAL_DATA and ogr
Jeff McKenna
jmckenna at dmsolutions.ca
Fri Apr 1 13:19:57 EST 2005
Hi Richard,
This is an interesting one, so i've CC'd the FWTools list as well for
assistance.
What i do know is that the GDAL_DATA environment variable is used for
GDAL to find supporting files. For MS4W, GDAL_DATA is set to
/ms4w/tools/ogr-utils because that directory contains supporting files
for S57 data. But i now see that /FWTools0.9.6/data/ does contains many
more reference files.
Are those missing reference files in MS4W causing your problem?
Hopefully someone from the FWTools list can help us out.
PS. For MapServer debugging I add the following to my httpd.conf:
SetEnv MS_ERRORFILE "/ms4w/tmp/ms_errorfile.txt"
jeff
Richard Duivenvoorde wrote:
> Hi list,
>
> hope this is usefull for somebody:
>
> I'm using fwtools and ms4w.
> Wanted to use a Virtual Datasource (OGRVRTDataSource) from a textfile
> based pointlayer, where the points where in coordinate system epsg:28992
> (dutch coordinate system).
>
> Using fwtools ogrinfo (only in the fwtools terminal) I was able to read
> and report about the coordinates in the file.
> But using the same file in ms4w mapserver for a layer failed. Changing
> the projection to WGS84 did succeed in both scenario's. My conclusion:
> it has something to do with the projection / epsg.
>
> Finally it appeared that the GDAL_DATA environment variable for apache
> was set to: "c:/ms4w/tools/ogr-utils": the ogr-utils directory as it
> comes with ms4w. Using this didn't succeed in a map.
> But when I changed the GDAL_DATA environment setting in the httpd.conf
> to the data dir of fwtools I had a map:
> SetEnv GDAL_DATA "c:\programs\FWTools0.9.6\data"
>
> Question:
> 1) are the files in the ms4w ogr-utils missing the right epsg
> information? Or did I make another mistake here...
> 2) I couldn't find any (debug) or error information in the apache or
> other logfiles. How will I be able to see error information in the
> future from ogr or gdal?
>
> Thanx
>
> Richard
>
--
Jeff McKenna
DM Solutions Group Inc.
http://www.dmsolutions.ca
More information about the ms4w-users
mailing list