On 24 Nov 2008, at 15:05, Alexandre GARRAUD wrote:

> Hello,
>
> I have set debug mode in my PG. Example if I do:
>
> Map m = (256.256)
> ...
> m.query_map_info (0,0,0)
I assume you meant query _map_point in which case input parameters  
are : layer index, x ,y
>
> ==> DEBUG MAPNIK => query at point tol = -0.0117188 (-1.0)
> ==> DEBUG PG => select asbinary (geom) as geom, "id", "state", "type"
> from node where geom setSRID & & ( 'BOX3D(-1 0,-1 0)'::box3d, 4326 )
>       
> What is tolerance ? why -0.0117188 ?

Perhaps, tolerance is not a best name but it represents buffer around  
query point. It is calculated internally at the moment.
I agree buffer parameter should be exposed.
> and why BOX3D(-1 0,-1 0) ?
>
This is default (invalid envelope). There were many confusions  
regarding this approach. I'll create a ticket to have default envelope  
to initialise to something like :  [-1,-1,1,1].

> Alexandre
>
HTH
Artem

> Alexandre GARRAUD a écrit :
>> Hello all,
>>
>> i would like to use the method "query_map_point" with a buffer, but I
>> can not find this option, there does?
>>
>> Alexandre
>> _______________________________________________
>> Mapnik-users mailing list
>> [email protected]
>> https://lists.berlios.de/mailman/listinfo/mapnik-users
>
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users
>

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to