[Chameleon] CWC2 and PROJ

Paul Spencer pspencer at dmsolutions.ca
Tue Oct 11 22:48:13 EDT 2005


Daniel,

I believe you might be able to put this into an apache SetEnv  
directive and get it to work, and you might be able to do the same  
for IIS (but I would have no clue how to do that!).  Unfortunately,  
as is, cwc2 builds a map object entirely using mapscript and doesn't  
provide the opportunity to do this.  It would probably be an easy  
hack to add it into your cwc2.php though.  You would probably want to  
do it around line 711 where the imageurl and imagepath is set.   
Ultimately, this would become a setting in cwc2.xml ...

Cheers

Paul

On 11-Oct-05, at 4:54 PM, Avramov,Daniel [Ontario] wrote:

> We've been experiencing issues with getting the PROJ_LIB working  
> properly
> If we put the proj directory in c:\    cwc2 will work fine but we  
> want it in another directory/drive.
>
> cwc2 builds its own MapFile and doesn't write CONFIG PROJ_LIB ...  
> out into that MapFIle.
> Is it possible to use php_mapscript to write to that MapFile to set  
> the config proj_lib appropriately?
>
> OR
>
> Does Chameleon / cwc2 use a base Mapfile or code that can be  
> altered that we could add the config proj_lib setting to so that  
> cwc2 will work?
>
> Would the following code placed in the proper file do anything to  
> help?
> putenv( "PROJ_LIB=e:\mapapps\ms461_c22_php4311\proj\nad" );
>
>
> Thanks,
> Daniel and Debbie.
>
>
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>

+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+






More information about the Chameleon mailing list