[mapserver-users] Test shape files with shp2img

Jeff McKenna jmckenna at gatewaygeomatics.com
Thu Mar 12 09:32:07 EDT 2009


Jean-Daniel JDG. GONON wrote:
> Hi all
> 
>  
> 
> I want to test my map file (including .ecw and shape files) with shp2img.
> 
> I have added “C:\ms4w\Apache\cgi-bin” in environment path (in Windows XP 
> SP2).
> 
>  
> 
> But the cmd shp2img –m map.map –o test.png returns this error : 
> “msProcessProjection(): Projection library error. No such file or 
> directory <br>”
> 
>  
> 
> I see on this page 
> (http://www.mail-archive.com/mapserver-users@lists.umn.edu/msg04811.html) 
> I have to set environment PATH and PROJ_LIB.
> 
>  
> 
> I already add “C:\ms4w\Apache\cgi-bin” in environment path, what and how 
> do I add another ??
> 
>  
>

You must execute the file /ms4w/setenv.bat to set the necessary paths 
for the MS4W commandline tools.  If you have any questions, feel free to 
inquire on the ms4w-users mailing list.

-jeff



-- 
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/




More information about the mapserver-users mailing list