[PROJ] Performance of proj_create_crs_to_crs()
Paul Ramsey
pramsey at cleverelephant.ca
Sat Feb 16 17:01:51 PST 2019
So, having gotten all the axis swapping tap dancing working, I went to
run some of my favourite transforms around BC, finishing up with one
of my favourites...
st_transform('SRID=3005;POINT(1000000 0)',4267)
This takes a point from a NAD83 projected system (EPSG:3005) to a
NAD27 geodetic system (EPSG:4267).
Here's the crazy part: this transformation takes 400ms, and the time
is all spend in in proj, getting the PJ.
I ran 20-30 of them in a row and captured the workload in Instruments
in case these function calls ring any bells WRT overhead, screenshot
attached.
Fortunately for bulk conversion PostGIS already caches the projection
object, in fact most of my work this week was in renovating that part
of the code, but older versions of Proj are much much faster in
resolving projections from projection strings.
Thoughts?
P.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20190216/768d6881/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: screenshot_192.jpg
Type: image/jpeg
Size: 49209 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20190216/768d6881/attachment-0001.jpg>
More information about the PROJ
mailing list