[GRASS-dev] [GRASS GIS] #1275: HGT Import

#1275: HGT Import
------------------------+---------------------------------------------------
Reporter: MartinOver | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.1
Component: Default | Version: 6.4.0
Keywords: HGT Import | Platform: MSWindows XP
      Cpu: x86-32 |
------------------------+---------------------------------------------------
The import of srtm .hgt raster data is not working.

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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1275&gt;
GRASS GIS <http://grass.osgeo.org>

#1275: HGT Import
--------------------------------------------------+-------------------------
Reporter: MartinOver | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.1
Component: Packaging | Version: 6.4.0
Keywords: unzip missing on Win (r.in.srtm req) | Platform: MSWindows XP
      Cpu: All |
--------------------------------------------------+-------------------------
Changes (by msieczka):

  * keywords: HGT Import => unzip missing on Win (r.in.srtm req)
  * component: Default => Packaging
  * cpu: x86-32 => All

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1275#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1275: HGT Import
---------------------------------+------------------------------------------
Reporter: MartinOver | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.1
Component: Packaging | Version: 6.4.0
Keywords: r.in.srtm, wingrass | Platform: MSWindows XP
      Cpu: All |
---------------------------------+------------------------------------------
Changes (by hamish):

  * keywords: unzip missing on Win (r.in.srtm req) => r.in.srtm, wingrass

Comment:

is this the standalone installer or installed by osgeo4w?

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

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1275#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1275: HGT Import
---------------------------------+------------------------------------------
Reporter: MartinOver | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.1
Component: Packaging | Version: 6.4.0
Keywords: r.in.srtm, wingrass | Platform: MSWindows XP
      Cpu: All |
---------------------------------+------------------------------------------

Comment(by martinover):

Replying to [comment:2 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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1275#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#1275: HGT Import
---------------------------------+------------------------------------------
Reporter: MartinOver | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.1
Component: Packaging | Version: 6.4.0
Keywords: r.in.srtm, wingrass | Platform: MSWindows XP
      Cpu: All |
---------------------------------+------------------------------------------

Comment(by hamish):

> Replying to [comment:2 hamish]:
> > easy work around: unzip it yourself before running the program.
Replying to [comment:3 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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1275#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#1275: HGT Import
---------------------------------+------------------------------------------
Reporter: MartinOver | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.1
Component: Packaging | Version: 6.4.0
Keywords: r.in.srtm, wingrass | Platform: MSWindows XP
      Cpu: All |
---------------------------------+------------------------------------------

Comment(by neteler):

Replying to [comment:3 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.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1275#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#1275: HGT Import
---------------------------------+------------------------------------------
Reporter: MartinOver | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.1
Component: Packaging | Version: 6.4.0
Keywords: r.in.srtm, wingrass | Platform: MSWindows XP
      Cpu: All |
---------------------------------+------------------------------------------

Comment(by neteler):

Replying to [ticket:1275 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?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1275#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>

#1275: zipped HGT Import fails on wingrass as "unzip" isn't in the package
---------------------------------+------------------------------------------
Reporter: MartinOver | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: 6.4.0
Keywords: r.in.srtm, wingrass | Platform: MSWindows XP
      Cpu: All |
---------------------------------+------------------------------------------
Changes (by hamish):

  * milestone: 6.4.1 => 6.4.3

Comment:

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

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1275#comment:7&gt;
GRASS GIS <http://grass.osgeo.org>

#1275: zipped HGT Import fails on wingrass as "unzip" isn't in the package
---------------------------------+------------------------------------------
Reporter: MartinOver | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: 6.4.0
Keywords: r.in.srtm, wingrass | Platform: MSWindows XP
      Cpu: All |
---------------------------------+------------------------------------------

Comment(by neteler):

Strangely no "unzip" in http://download.osgeo.org/osgeo4w/versions.html -
could
http://sourceforge.net/projects/mingw/files/MSYS/Extension/zip/ be
packaged?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1275#comment:8&gt;
GRASS GIS <http://grass.osgeo.org>

#1275: zipped HGT Import fails on wingrass as "unzip" isn't in the package
---------------------------------+------------------------------------------
Reporter: MartinOver | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-releasebranch64
Keywords: r.in.srtm, wingrass | Platform: MSWindows XP
      Cpu: All |
---------------------------------+------------------------------------------
Changes (by neteler):

  * version: 6.4.0 => svn-releasebranch64

Comment:

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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1275#comment:9&gt;
GRASS GIS <http://grass.osgeo.org>

#1275: zipped HGT Import fails on wingrass as "unzip" isn't in the package
---------------------------------+------------------------------------------
Reporter: MartinOver | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-releasebranch64
Keywords: r.in.srtm, wingrass | Platform: MSWindows XP
      Cpu: All |
---------------------------------+------------------------------------------

Comment(by martinl):

Replying to [comment:9 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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1275#comment:10&gt;
GRASS GIS <http://grass.osgeo.org>

#1275: zipped HGT Import fails on wingrass as "unzip" isn't in the package
---------------------------------+------------------------------------------
Reporter: MartinOver | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-releasebranch64
Keywords: r.in.srtm, wingrass | Platform: MSWindows XP
      Cpu: All |
---------------------------------+------------------------------------------

Comment(by martinl):

Replying to [comment:10 martinl]:
> Replying to [comment:9 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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1275#comment:11&gt;
GRASS GIS <http://grass.osgeo.org>

#1275: zipped HGT Import fails on wingrass as "unzip" isn't in the package
----------------------------------------+-----------------------------------
Reporter: MartinOver | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-releasebranch64
Keywords: r.in.srtm, wingrass, unzip | Platform: MSWindows XP
      Cpu: All |
----------------------------------------+-----------------------------------
Changes (by hamish):

  * keywords: r.in.srtm, wingrass => r.in.srtm, wingrass, unzip

Comment:

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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1275#comment:12&gt;
GRASS GIS <http://grass.osgeo.org>

#1275: zipped HGT Import fails on wingrass as "unzip" isn't in the package
----------------------------------------+-----------------------------------
Reporter: MartinOver | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-releasebranch64
Keywords: r.in.srtm, wingrass, unzip | Platform: MSWindows XP
      Cpu: All |
----------------------------------------+-----------------------------------

Comment(by neteler):

See also ticket #1952

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1275#comment:13&gt;
GRASS GIS <http://grass.osgeo.org>

#1275: zipped HGT Import fails on wingrass as "unzip" isn't in the package
----------------------------------------+-----------------------------------
Reporter: MartinOver | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-releasebranch64
Keywords: r.in.srtm, wingrass, unzip | Platform: MSWindows XP
      Cpu: All |
----------------------------------------+-----------------------------------

Comment(by hamish):

* http://trac.osgeo.org/osgeo4w/wiki/pkg-msys
  * http://lists.osgeo.org/pipermail/grass-dev/2013-June/064214.html

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1275#comment:14&gt;
GRASS GIS <http://grass.osgeo.org>

#1275: zipped HGT Import fails on wingrass as "unzip" isn't in the package
----------------------------------------+-----------------------------------
Reporter: MartinOver | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-releasebranch64
Keywords: r.in.srtm, wingrass, unzip | Platform: MSWindows XP
      Cpu: All |
----------------------------------------+-----------------------------------

Comment(by hellik):

Replying to [comment:10 martinl]:
> Replying to [comment:9 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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1275#comment:15&gt;
GRASS GIS <http://grass.osgeo.org>

#1275: zipped HGT Import fails on wingrass as "unzip" isn't in the package
----------------------------------------+-----------------------------------
Reporter: MartinOver | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-releasebranch64
Keywords: r.in.srtm, wingrass, unzip | Platform: MSWindows XP
      Cpu: All |
----------------------------------------+-----------------------------------

Comment(by martinl):

Replying to [comment:15 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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1275#comment:16&gt;
GRASS GIS <http://grass.osgeo.org>

#1275: zipped HGT Import fails on wingrass as "unzip" isn't in the package
----------------------------------------+-----------------------------------
Reporter: MartinOver | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-releasebranch64
Keywords: r.in.srtm, wingrass, unzip | Platform: MSWindows XP
      Cpu: All |
----------------------------------------+-----------------------------------

Comment(by neteler):

Can the ticket be closed?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1275#comment:17&gt;
GRASS GIS <http://grass.osgeo.org>

#1275: zipped HGT Import fails on wingrass as "unzip" isn't in the package
---------------------------+------------------------------------------------
  Reporter: MartinOver | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-releasebranch64
Resolution: fixed | Keywords: r.in.srtm, wingrass, unzip
  Platform: MSWindows XP | Cpu: All
---------------------------+------------------------------------------------
Changes (by hellik):

  * status: new => closed
  * resolution: => fixed

Comment:

Replying to [comment:17 neteler]:
> Can the ticket be closed?

unzip available. closing ticket.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1275#comment:18&gt;
GRASS GIS <http://grass.osgeo.org>