{"comment":{"created_at":"2011-10-11T07:38:53Z","body":"[springmeyer] Adding rcoup to the ticket so he'll see this ticket (since it related to his similiar nice fixes for input.postgis)","updated_at":"2011-10-11T07:38:53Z","url":"https://api.github.com/repos/mapnik-org/mapnik/issues/comments/2356742","id":2356742,"user":{"avatar_url":"https://secure.gravatar.com/avatar/941f68386168a8a6b60f2529a7830af7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/artemp","id":59056,"login":"artemp"}},"action":"created","issue":{"number":154,"created_at":"2011-10-11T07:38:51Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"In a mapfile having a non standard projection, even if the map element and all the layer elements have the same srs, Mapnik reproject the map, increasing the rendering time.\r\n\r\nHOW TO REPEAT:\r\n\r\nTake a shapefile (a not so small one, about 200 MB would be good) with the default srs '+proj=latlong +datum=WGS84'. Run nik2img producing an image and check the total time needed to render.\r\n\r\nNow project the same shapefile (for example, using ogr2ogr) and change the srs in the map and layers accordingly. Repeat the nik2img processing and you'll notice that the time is noticeably increased.\r\n\r\nPROPOSED SOLUTIONS:\r\n\r\n- Bypass the projection when the map and layer srs elements are the same (skipping it totally)\r\n\r\nor\r\n\r\n- Let mapnik know about the unit of the map and query the map accordingly.","comments":3,"title":"Reprojection forced where not needed","updated_at":"2011-10-11T07:38:53Z","url":"https://api.github.com/repos/mapnik-org/mapnik/issues/154","id":1871669,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/941f68386168a8a6b60f2529a7830af7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/artemp","id":59056,"login":"artemp"},"html_url":"https://github.com/mapnik-org/mapnik/issues/154","labels":[{"name":"Core_Library","url":"https://api.github.com/repos/mapnik-org/mapnik/labels/Core_Library","color":"FFFFFF"}],"state":"open"},"legacy":{"issue_id":1871669,"comment_id":2356742}}