don't project query point if host projection is geographic

This commit is contained in:
Artem Pavlenko 2006-12-31 11:42:57 +00:00
parent 4772a16eb6
commit bb035bdc54

View file

@ -330,7 +330,12 @@ namespace mapnik
double y = lat; double y = lat;
double z = 0; double z = 0;
mapnik::projection dest(srs_); mapnik::projection dest(srs_);
if (!dest.is_geographic())
{
dest.forward(x,y); dest.forward(x,y);
}
mapnik::projection source(layer.srs()); mapnik::projection source(layer.srs());
proj_transform prj_trans(source,dest); proj_transform prj_trans(source,dest);
prj_trans.backward(x,y,z); prj_trans.backward(x,y,z);