Opened 14 years ago

Closed 11 years ago

#1275 closed defect (fixed)

zipped HGT Import fails on wingrass as "unzip" isn't in the package

Reported by: MartinOver Owned by: grass-dev@…
Priority: normal Milestone: 6.4.3
Component: Packaging Version: svn-releasebranch64
Keywords: r.in.srtm, wingrass, unzip Cc:
CPU: All Platform: MSWindows XP

Description

The import of srtm .hgt raster data is not working.

unzip: unknown command ERROR: The "unzip" program is required, please install it first

Change History (18)

comment:1 by msieczka, 14 years ago

Component: DefaultPackaging
CPU: x86-32All
Keywords: unzip missing on Win (r.in.srtm req) added; HGT Import removed

comment:2 by hamish, 14 years ago

Keywords: r.in.srtm wingrass added; unzip missing on Win (r.in.srtm req) removed

is this the standalone installer or installed by osgeo4w?

easy work around: unzip it yourself before running the program.

Hamish

in reply to:  2 ; comment:3 by martinover, 14 years ago

Replying to hamish:

is this the standalone installer or installed by osgeo4w?

easy work around: unzip it yourself before running the program.

Hamish

Hi Hamish,

It is in both the standalone and osgeo4w installation. The workaround does not work but I converted the hgt files via gdal_translate to GTiffs. The Problem is that I can import the Data in the standalone installation but can not export the dataset (empty image) or work with the dataset (for example wirth the raster calculator). In the osgeo4w installation I can´t even import the dataset. Is it possible for you to import and export the hgt files: http://dds.cr.usgs.gov/srtm/version2_1/SRTM3/Eurasia/

I tried both linux and windows systems.

Best regards,

Martin Over

in reply to:  3 comment:4 by hamish, 14 years ago

Replying to hamish:

easy work around: unzip it yourself before running the program.

Replying to martinover:

The workaround does not work

I am a bit surprised by that, it should.

The Problem is that I can import the Data in the standalone installation but can not export the dataset (empty image) or work with the dataset (for example wirth the raster calculator).

after import you need to change the working ("computational") region to match the bounds of the map. Run "g.region rast=your_map".

In the osgeo4w installation I can´t even import the dataset.

exact error messages are needed. (assuming it's not the same unzip one, which should only be shown if you feed it a .zip file)

Is it possible for you to import and export the hgt files: http://dds.cr.usgs.gov/srtm/version2_1/SRTM3/Eurasia/

(todo)

Hamish

in reply to:  3 comment:5 by neteler, 14 years ago

Replying to martinover:

Is it possible for you to import and export the hgt files: http://dds.cr.usgs.gov/srtm/version2_1/SRTM3/Eurasia/

I tried both linux and windows systems.

I imported such files yesterday with 6.4.1 on Linux, no problems occured.

in reply to:  description ; comment:6 by neteler, 13 years ago

Replying to MartinOver:

The import of srtm .hgt raster data is not working.

unzip: unknown command ERROR: The "unzip" program is required, please install it first

I have found it here: http://sourceforge.net/projects/mingw/files/MSYS/unzip/

Probably it would be an idea to copy it from the MSYS builder and add it to the winGRASS package?

comment:7 by hamish, 13 years ago

Milestone: 6.4.16.4.3
Summary: HGT Importzipped HGT Import fails on wingrass as "unzip" isn't in the package

6.4.2rc3 native wingrass installer still does not ship "unzip".

Hamish

in reply to:  6 ; comment:9 by neteler, 12 years ago

Version: 6.4.0svn-releasebranch64

An "easy" solution would be to add the "zip" package

http://sourceforge.net/projects/gnuwin32/files/zip/

to the MSYS package:

http://trac.osgeo.org/osgeo4w/wiki/pkg-msys

in reply to:  9 ; comment:10 by martinl, 12 years ago

Replying to neteler:

An "easy" solution would be to add the "zip" package

http://sourceforge.net/projects/gnuwin32/files/zip/

to the MSYS package:

http://trac.osgeo.org/osgeo4w/wiki/pkg-msys

done for msys-1.0.11-11 (1)

(1) http://trac.osgeo.org/osgeo4w/wiki/pkg-msys#Extrapackages

in reply to:  10 comment:11 by martinl, 12 years ago

Replying to martinl:

Replying to neteler:

An "easy" solution would be to add the "zip" package

http://sourceforge.net/projects/gnuwin32/files/zip/

to the MSYS package:

http://trac.osgeo.org/osgeo4w/wiki/pkg-msys

done for msys-1.0.11-11 (1)

(1) http://trac.osgeo.org/osgeo4w/wiki/pkg-msys#Extrapackages

such tools like zip and others should go probably to the new package (msys-tools or msys-extra)

http://trac.osgeo.org/osgeo4w/wiki/pkg-msys#TODO

comment:12 by hamish, 12 years ago

Keywords: unzip added

latest nightly wingrass installers still not shipping unzip.exe in extrabin or msys/bin.

comment:13 by neteler, 12 years ago

See also ticket #1952

in reply to:  10 ; comment:15 by hellik, 11 years ago

Replying to martinl:

Replying to neteler:

An "easy" solution would be to add the "zip" package

http://sourceforge.net/projects/gnuwin32/files/zip/

to the MSYS package:

http://trac.osgeo.org/osgeo4w/wiki/pkg-msys

done for msys-1.0.11-11 (1)

(1) http://trac.osgeo.org/osgeo4w/wiki/pkg-msys#Extrapackages

unzip [1] seems to be needed to close this ticket.

[1] http://gnuwin32.sourceforge.net/packages/unzip.htm

in reply to:  15 comment:16 by martinl, 11 years ago

Replying to hellik:

unzip [1] seems to be needed to close this ticket.

[1] http://gnuwin32.sourceforge.net/packages/unzip.htm

I have added unzip into msys package in 1.0.18-4 (1)

(1) http://trac.osgeo.org/osgeo4w/wiki/pkg-msys#Majorchanges

comment:17 by neteler, 11 years ago

Can the ticket be closed?

in reply to:  17 comment:18 by hellik, 11 years ago

Resolution: fixed
Status: newclosed

Replying to neteler:

Can the ticket be closed?

unzip available. closing ticket.

Note: See TracTickets for help on using tickets.