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.

Change History (2)

by rouault, 16 years ago

Attachment: geo_normalize_ticket4.patch added

comment:1 by warmerdam, 16 years ago

Resolution: fixed
Status: newclosed

Patch applied in libgeotiff trunk (r1503).

Note: See TracTickets for help on using tickets.