On 20 Feb 2008, at 10:37, Martijn van Oosterhout wrote:
> On Feb 20, 2008 10:26 AM, Carl Heinze <[EMAIL PROTECTED]> wrote:
>> ERROR: BOX3D parser - couldnt parse. It should look like: BOX3D
>> (xmin ymin zmin,xmax ymax zmax) or BOX3D(xmin ymin,xmax ymax)
>> STATEMENT: select asbinary(way) as geom,"railway" from (select *
>> from planet_osm_roads order by z_order) as roads where way &&
>> setSRID('BOX3D(7.999999999999998 48.22062728491966,1.#INF
>> 1.#INF)'::box3d,4326)
>
> Don't know where it's coming from, but that 1.#INF is Not Normal
> (tm)...
I think the problem was projection Lat/Lon into Lat/Lon and mapnik
was returning radians instead of degrees.
>>> from mapnik import *
>>> p = Projection("+proj=latlong +datum=WGS84")
>>> p.forward(Coord(-1.25,51.75))
Coord(-0.0218166156499,0.903207887907)
>>> c.x * (180.0/3.14159)
-1.2500010558307231
>>> c.y * (180.0/3.14159)
51.750043711391939
>
> Have a nice day,
> --
> Martijn van Oosterhout <[EMAIL PROTECTED]> http://svana.org/kleptog/
Artem
> _______________________________________________
> 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