[Cartoweb-users] SRID in Tooltips plugin

Dirk Jesko ml.dje at geocontent.de
Fri Mar 2 10:38:34 EST 2007


Hi Oliver,

thanks. I hoped there would be another way. But the proposed change 
seems to be fairly simple, so I will try to do it next week.

Regards,
Dirk



Oliver Christen wrote:
> Hi Dirk
>
> The Tooltips plugin miss some setter.
> Some times ago I added a setter for the column name, I suppose one can 
> do the same for the srid
>
> see function setDbGeomColumnName in QueryableLayer.php and its use in 
> ToolTipsService.php
>
>        if (!empty($layer->geomColName)) {
>            $queryableLayer->setDbGeomColumnName($layer->geomColName);
>        }
>
> $layer is the configuration string that is in the .ini file,
> simply add a new parameter srid in the .ini and add a "if" check in 
> the ToolTipsService.php and the setter function in QueryableLayer.php
>
> you are welcome to submit a patch for this :)
>
> Regards,
> Oliver
>
>
>
>> Hello,
>>
>> I just activated the tooltips plugin. It works great, except for one 
>> thing. The plugin always queries PostGIS with an SRID of -1. So far, 
>> I could figure out, that the srid is initialized to -1 in the 
>> ByXyQueryableLayer class. However, I can not find out where to change 
>> it. Therefore, I changed the initialization, but this can only be a 
>> temporary solution. Is there an easy way to set the srid, e.g. from 
>> the ini file?
>>
>>
>> Thanks,
>> Dirk
>> _______________________________________________
>> Cartoweb-users mailing list
>> Cartoweb-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>>
>
>


More information about the Cartoweb-users mailing list