[GRASS-user] hdf4 missing in gdal 1.6.1-2

sela wrote:

I just realised that the hdf4-library is not included any more in gdal
1.6.1-2 (there is only a hdf5 support left).
Consequently, GRASS (6.4 rc4) does not read or import my ASTER hdf
images any more. I cannot even read the header file. So my question
is: how can I include the hdf4 library into the current gdal-version?

is that from Debian/experimental ?

if so, please consult the DebianGIS mailing list for advice on that, as
the grass project has little control over the issue.
  http://wiki.debian.org/DebianGis

(and take "experimental" and "unstable" at their word)

regards,
Hamish

Thanks for your reply, Hamish.

I have Ubuntu 9.04 installed and I use the repository for GRASS64 rc4 on
http://les-ejk.c.

As far as I know, I have never been using a repos on DebianGIS neither on
UbuntuGIS.

Greetings
Stefan

Hamish wrote:

sela wrote:

I just realised that the hdf4-library is not included any more in gdal
1.6.1-2 (there is only a hdf5 support left).
Consequently, GRASS (6.4 rc4) does not read or import my ASTER hdf
images any more. I cannot even read the header file. So my question
is: how can I include the hdf4 library into the current gdal-version?

is that from Debian/experimental ?

if so, please consult the DebianGIS mailing list for advice on that, as
the grass project has little control over the issue.
  http://wiki.debian.org/DebianGis

(and take "experimental" and "unstable" at their word)

regards,
Hamish

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
View this message in context: http://n2.nabble.com/hdf4-missing-in-gdal-1.6.1-2-tp3048480p3048948.html
Sent from the Grass - Users mailing list archive at Nabble.com.

I just killed gdal 1.6.1-2 and reinstalled gdal-bin 1.5.2-3, and now
everything works, my ASTER-HDF images are readable again. But I am still
wondering why they do not include the hdf4-library in the latest
gdal-version?

sela wrote:

Thanks for your reply, Hamish.

I have Ubuntu 9.04 installed and I use the repository for GRASS64 rc4 on
http://les-ejk.c.

As far as I know, I have never been using a repos on DebianGIS neither on
UbuntuGIS.

Greetings
Stefan

Hamish wrote:

sela wrote:

I just realised that the hdf4-library is not included any more in gdal
1.6.1-2 (there is only a hdf5 support left).
Consequently, GRASS (6.4 rc4) does not read or import my ASTER hdf
images any more. I cannot even read the header file. So my question
is: how can I include the hdf4 library into the current gdal-version?

is that from Debian/experimental ?

if so, please consult the DebianGIS mailing list for advice on that, as
the grass project has little control over the issue.
  http://wiki.debian.org/DebianGis

(and take "experimental" and "unstable" at their word)

regards,
Hamish

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
View this message in context: http://n2.nabble.com/hdf4-missing-in-gdal-1.6.1-2-tp3048480p3049068.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Hi all,

I have a vector layer with category numbers with very very high numbers.
Thats not very useful for further work. Now I want to change the cats to
an ascending order (1,2,3,...,n).

Is that possible in an easy way? Or even if there is a complicated one
it would be great.

Btw, there is no rule I can use to reclassify. Maybe some
'special'-extraction could help I don't see?

Any guess welcome,
Achim

achim wrote:

I have a vector layer with category numbers with very very high numbers.
Thats not very useful for further work. Now I want to change the cats to
an ascending order (1,2,3,...,n).

Is that possible in an easy way? Or even if there is a complicated one
it would be great.

r.reclass can create a reclass map. You can generate the reclass rules
using r.category and awk, e.g.:

r.category oldmap | awk '{print $1,"=",NR}' | r.reclass in=oldmap out=newmap

--
Glynn Clements <glynn@gclements.plus.com>

On 09/06/09 18:36, Glynn Clements wrote:

achim wrote:

I have a vector layer with category numbers with very very high numbers.
Thats not very useful for further work. Now I want to change the cats to
an ascending order (1,2,3,...,n).

Is that possible in an easy way? Or even if there is a complicated one
it would be great.

r.reclass can create a reclass map. You can generate the reclass rules
using r.category and awk, e.g.:

r.category oldmap | awk '{print $1,"=",NR}' | r.reclass in=oldmap out=newmap

As the OP is about vectors, here's a vector approach:

v.category option=del
v.category option=add

Moritz

P.S. For posterity, try to use more explicit subject lines for your mails :wink: