Opened 16 years ago
Closed 16 years ago
#4 closed enhancement (fixed)
[PATCH] Optimizations to avoid opening CSV files in geo_normalize.c
Reported by: | rouault | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | libgeotiff | Version: | |
Keywords: | Cc: |
Description
The attached patch contains several optimizations to avoid opening CSV files in geo_normalize.c for the already hard-coded ellipsoids, datums, units, prime meridian by moving the hard-code cases before the opening of the CSV file.
I've also added a new hard-coded case in GTIFGetPCSInfo() and GTIFGetProjTRFInfo() for UTM projections.
With the patch, gdalinfo on a UTM/WGS84 GeoTIFF doesn't access any CSV file. On my PC, GDAL'Opening that file 1000 times takes now 2.5s versus 11s without it.
Attachments (1)
Change History (2)
by , 16 years ago
Attachment: | geo_normalize_ticket4.patch added |
---|
comment:1 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch applied in libgeotiff trunk (r1503).