nakijun / tilers-tools

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

gdal_tiler.py fails on os.link on Win8 #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Win8
2. C:\WinPython-64bit-2.7.5.3\python-2.7.5.amd64>

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

C:\gdal\tilers_tools>gdal_tiler.py --cut "C:\BSB_ROOT\50\50_1.kap"
INFO:root: C:\BSB_ROOT\50\50_1.kap : NORTH PACIFIC OCEAN   EASTERN PART 
(C:\BSB_ROOT\50\50_1.kap)
INFO:root: NAD83, MERCATOR

C:\BSB_ROOT\50\50_1.vrt -> C:\BSB_ROOT\50/50_1.zyx
...................Traceback (most recent call last):
  File "C:\gdal\tilers_tools\gdal_tiler.py", line 184, in <module>
    main(sys.argv)
  File "C:\gdal\tilers_tools\gdal_tiler.py", line 177, in main
    parallel_map(process_src, flatten(res))
  File "C:\gdal\tilers_tools\tiler_functions.py", line 97, in parallel_map
    return map(func, iterable)
  File "C:\gdal\tilers_tools\gdal_tiler.py", line 66, in process_src
    prm.walk_pyramid()
  File "C:\gdal\tilers_tools\tiler_backend.py", line 695, in walk_pyramid
    self.write_metadata(None, [ch for img, ch, opacities in top_results])
  File "C:\gdal\tilers_tools\tiler_backend.py", line 831, in write_metadata
    copy_viewer(self.dest)
  File "C:\gdal\tilers_tools\tiler_functions.py", line 473, in copy_viewer
    link_or_copy(src, dst) # hard links as FF dereferences softlinks
  File "C:\gdal\tilers_tools\tiler_functions.py", line 462, in link_or_copy
    os.link(src, dst)
AttributeError: 'module' object has no attribute 'link'

What version of the product are you using?
3.1

What was the operating system?
Win8 x64

Please provide any additional information below.

Original issue reported on code.google.com by jaybors...@gmail.com on 8 Jul 2014 at 9:25

GoogleCodeExporter commented 9 years ago
I wonder if it makes any difference if you try a distribution from 
http://www.python.org instead of WinPython which you seem to be using.

Original comment by vadp.d...@gmail.com on 16 Jul 2014 at 4:00

GoogleCodeExporter commented 9 years ago
BTW see if this one works for you.

Original comment by vadp.d...@gmail.com on 16 Jul 2014 at 4:02

Attachments:

GoogleCodeExporter commented 9 years ago
Oops! This one must be better

Original comment by vadp.d...@gmail.com on 20 Jul 2014 at 12:11

Attachments:

GoogleCodeExporter commented 9 years ago
Testing the second version (July 20).  Seems to work OK... Thanks!

Original comment by jaybors...@gmail.com on 22 Jul 2014 at 8:15

GoogleCodeExporter commented 9 years ago
Implemented in Revision: 815116812641

Original comment by vadp.d...@gmail.com on 24 Jul 2014 at 9:10