[ms4w-users] ms4w, GDAL_DATA and ogr

Richard Duivenvoorde richard at duif.net
Fri Apr 1 09:41:21 EST 2005


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


More information about the ms4w-users mailing list