Fix proj_transform order in Map::query_point

This commit is contained in:
Artem Pavlenko 2021-03-09 11:33:21 +00:00
parent 7cbbd7305b
commit 977c65e9de

View file

@ -745,7 +745,7 @@ featureset_ptr Map::query_point(unsigned index, double x, double y) const
mapnik::datasource_ptr ds = layer.datasource(); mapnik::datasource_ptr ds = layer.datasource();
if (ds) if (ds)
{ {
proj_transform * proj_trans_ptr = get_proj_transform(srs_ ,layer.srs()); proj_transform * proj_trans_ptr = get_proj_transform(layer.srs(), srs_);
double z = 0; double z = 0;
if (!proj_trans_ptr->equal() && !proj_trans_ptr->backward(x,y,z)) if (!proj_trans_ptr->equal() && !proj_trans_ptr->backward(x,y,z))
{ {