[Chameleon] ROIFeatureTool - Resolved

Julien-Samuel Lacroix jlacroix at mapgears.com
Wed Sep 29 08:58:25 EST 2010


Commited and fixed. Thanks a lot! :)

Julien

On 10-09-27 06:59 PM, Jeff Hamm wrote:
> I resolved my problem by making the following changes in ROIManager/ROIRenderer.php (chameleon 2.6) :
>
>   around line 256  : //The magic string must contain the key words<!-- MapServer Template -->  on the first line of the template.
>                  $szTemplate = '[shpxy xf="," yf="," sf="|" proj="image"]';
>                  $hTemplate = fopen( $szTemplatePath, "w+" );
>                  fwrite( $hTemplate, "<!-- MapServer Template -->\n".$szTemplate );
>                  fclose( $hTemplate );
>
> around line 283 : //The query file must have an extension of *.qy (see http://www.mail-archive.com/mapserver-users@lists.osgeo.org/msg10119.html)
>                      // save the query results for future passes
>                      $aROI['query_file'] = getSessionSavePath()."/".uniqid("").".qy";
>                      $oNewMap->saveQuery( $aROI['query_file'] );
>
> Both changes are required by Mapserver>5.x
>
> Regards,
>
> Jeff Hamm
> www.geoprism.ca
>
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>

-- 
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/


More information about the Chameleon mailing list