On Mon, Oct 27, 2008 at 10:59 AM, Rahkonen Jukka
<[EMAIL PROTECTED]> wrote:
> I wonder if nik2img could be made to support this kind of cases properly.
> There is no need to reproject the bbox of request because now the request and
> data are using the same projection. Thus the coordinates could perhaps just
> be passed on to the database query as they are given in the command line?
> So instead of these parameters
> -r 389725,6673682,392528,6676266
> which now lead to database query
> setSRID('BOX3D(392527.9999999671 6673681.999999999,500000
> 6676265.999999509)'::box3d,32635)
> the query might be simply
> BOX3D(389725 6673682,392528 6676266)
Do you realise that setSRID does not do any projection at all and that
from the point of view of the database those queries will return
exactly the same thing?
What you probably intend is the query to be somethinhg like:
st_transform( setSRID('BOX3D(392527.9999999671 6673681.999999999,500000
6676265.999999509)'::box3d,32635), 900913)
Where the last number is the actual projection of the database.
Have a nice day,
--
Martijn van Oosterhout <[EMAIL PROTECTED]> http://svana.org/kleptog/
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users