Opened 6 years ago

Closed 6 years ago

#2726 closed defect (fixed)

v.unpack fails when importing into a cartesian CRS

Reported by: micha Owned by: grass-dev@…
Priority: normal Milestone: 7.0.2
Component: Default Version: 7.0.1
Keywords: v.pack, v.unpack Cc:
CPU: Unspecified Platform: Linux

Description

WHen using v.pack/v.unpack to move vector maps to a different machine, and the LOCATION is a cartesian, unprojected, X-Y coordinate system , the operation fails with:

GRASS 7.0.1 (XY):~ > v.unpack ~/Desktop/Allkavels.pack 
Traceback (most recent call last):
  File "/usr/lib/grass70/scripts/v.unpack", line 211, in <module>
    sys.exit(main())
  File "/usr/lib/grass70/scripts/v.unpack", line 114, in main
    filename_b=loc_proj, proj=True):
  File "/usr/lib/grass70/etc/python/grass/script/core.py", line 895, in compare_key_value_text_files
    checkunits=units)
  File "/usr/lib/grass70/etc/python/grass/script/core.py", line 822, in _text_to_key_value_dict
    text = open(filename, "r").readlines()
IOError: [Errno 2] No such file or directory: '/home/micha/GIS/grass/XY/test/.tmp/work-vm/23766.0/PROJ_INFO'

The PROJ_INFO file ideed does not exist in an unprojected LOCATION.

Change History (5)

comment:1 Changed 6 years ago by martinl

Keywords: v.pack v.unpack added

comment:2 Changed 6 years ago by annakrat

I fixed it yesterday in r66019, not yet backported, please test.

comment:3 Changed 6 years ago by annakrat

I backported it in r66358, however I don't know if anyone else tested it. If yes, please close it.

comment:4 Changed 6 years ago by neteler

Milestone: 7.0.27.0.3

Ticket retargeted after milestone closed

comment:5 Changed 6 years ago by neteler

Milestone: 7.0.37.0.2
Resolution: fixed
Status: newclosed

No response, closing.

Note: See TracTickets for help on using tickets.