nakijun / tilers-tools

Automatically exported from code.google.com/p/tilers-tools
1 stars 0 forks source link

Errors with certain NOAA KAP files #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Unpack test.zip in tiler_tools directory.

2. Run map2gdal.py:

$ python map2gdal.py --dest-dir ./test/old --cut-file test/old/13230_1.KAP
INFO:root: test/old/13230_1.KAP : BUZZARDS BAY (test/old/13230_1.KAP)
INFO:root: NAD83, POLYCONIC

$ python map2gdal.py --dest-dir ./test/new --cut-file test/new/13230_1.KAP
INFO:root: test/new/13230_1.KAP : BUZZARDS BAY (test/new/13230_1.KAP)
INFO:root: NAD83, POLYCONIC
 There is a problem to invert the interpolation matrix
 There is a problem to invert the interpolation matrix

3. Run gdal_tiler.py:

$ python gdal_tiler.py --overview-resampling=bilinear 
--base-resampling=bilinear -t test/old --cut --cutline test/old/13230_1.gmt -z 
11 test/old/13230_1.KAP

test/old/13230_1.KAP -> test/old/13230_1.zxy .

$ python gdal_tiler.py --overview-resampling=bilinear 
--base-resampling=bilinear -t test/new --cut --cutline test/new/13230_1.gmt -z 
11 test/new/13230_1.KAP

test/new/13230_1.KAP -> test/new/13230_1.zxy  There is a problem to invert the 
interpolation matrix
 There is a problem to invert the interpolation matrix
.

What is the expected output? What do you see instead?

old/13230_1.KAP and new/13230_1.KAP appear to have similar metadata. The old 
KAP file is from April, 2012. The new one was downloaded in January, 2013. I'm 
not sure if the problem is with the NOAA data, my own environment, or if a 
work-around is possible on the Python side.

What version of the product are you using?

Tiler Tools build from June, 2012

What was the operating system?

I have tested this on OSX and Ubuntu 12.04, GDAL versions 1.7.3 and 1.9.2.

Please provide any additional information below.

This seems to be related to the error: "There is a problem to invert the 
interpolation matrix". Additionally, the problem seems to occur on smaller 
scale charts.

Original issue reported on code.google.com by pgo...@lynkertech.com on 24 Jan 2013 at 5:46

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed at v2x.tilers-tools repository. 

GCP_POLYNOMIAL interpolation method is used by default now, but there is an 
option to use GCP_TPS (the earlier one).

Original comment by vadp.d...@gmail.com on 24 Mar 2013 at 11:48