[GRASS-user] r.geomorphon add-on installation error on Arch-Linux

Hi,

I’m trying to install ‘r.geomorphon’ add-on module from http://sil.uc.edu/downloads.html on my recently-built Arch Linux system with GRASS7-svn. I’ve used this module on my old Ubuntu system a-lot, but somehow I can’t get it to install on Arch…

I did:

$ make MODULE_TOPDIR=/usr/local/grass-7.0.svn
$ sudo make MODULE_TOPDIR=/usr/local/grass-7.0.svn install

The ‘make’ command gives no error. The ‘make-install’ command gives an error that says:

/usr/bin/install -c /usr/local/grass-7.0.svn/bin/r.geomorphon /usr/local/grass-7.0.svn/bin/
/usr/bin/install: ‘/usr/local/grass-7.0.svn/bin/r.geomorphon’ and ‘/usr/local/grass-7.0.svn/bin/r.geomorphon’ are the same file
make: *** [install] Error 1

What should I do? I didn’t get this error in Ubuntu… Would appreciate any help, thanks!

In dire need,
Haziq Noor Ariff.

Hi, no solution unfortunately, but just to confirm that I get the same error at install on Ubuntu 12.10.

Paulo

On Wed 23 Jan 2013 01:30:31 PM CET, Haziq Noor Ariff wrote:

Hi,

I'm trying to install 'r.geomorphon' add-on module from
http://sil.uc.edu/downloads.html on my recently-built Arch Linux
system with GRASS7-svn. I've used this module on my old Ubuntu system
a-lot, but somehow I can't get it to install on Arch..

I did:

$ make MODULE_TOPDIR=/usr/local/grass-7.0.svn
$ sudo make MODULE_TOPDIR=/usr/local/grass-7.0.svn install

The 'make' command gives no error. The 'make-install' command gives an
error that says:

/usr/bin/install -c /usr/local/grass-7.0.svn/bin/r.geomorphon
/usr/local/grass-7.0.svn/bin/
/usr/bin/install: ‘/usr/local/grass-7.0.svn/bin/r.geomorphon’ and
‘/usr/local/grass-7.0.svn/bin/r.geomorphon’ are the same file
make: *** [install] Error 1

What should I do? I didn't get this error in Ubuntu... Would
appreciate any help, thanks!

In dire need,
Haziq Noor Ariff.

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

On Wed, Jan 23, 2013 at 1:30 PM, Haziq Noor Ariff
<haziqnoorariff@gmail.com> wrote:

Hi,

I'm trying to install 'r.geomorphon' add-on module from
http://sil.uc.edu/downloads.html on my recently-built Arch Linux system with
GRASS7-svn. I've used this module on my old Ubuntu system a-lot, but
somehow I can't get it to install on Arch..

I did:

$ make MODULE_TOPDIR=/usr/local/grass-7.0.svn
$ sudo make MODULE_TOPDIR=/usr/local/grass-7.0.svn install

The 'make' command gives no error. The 'make-install' command gives an error
that says:

/usr/bin/install -c /usr/local/grass-7.0.svn/bin/r.geomorphon
/usr/local/grass-7.0.svn/bin/
/usr/bin/install: ‘/usr/local/grass-7.0.svn/bin/r.geomorphon’ and
‘/usr/local/grass-7.0.svn/bin/r.geomorphon’ are the same file
make: *** [install] Error 1

What should I do? I didn't get this error in Ubuntu... Would appreciate any
help, thanks!

On Fedora F17 I get:

...
main.c: In function ‘main’:
main.c:317:5: error: implicit declaration of function
‘radial2cartesian’ [-Werror=implicit-function-declaration]
main.c:352:2: error: implicit declaration of function
‘write_contrast_colors’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make: *** [OBJ.x86_64-unknown-linux-gnu/main.o] Error 1

This needs to be fixed by the author...

Markus

Hi -

I have a zip file provided by a US state agency that was 'georeferenced within ArcGIS 10' in EPSG 3735. I have been unable to open it with GDAL (other than in a rectangular x,y, region as a tiff) and wonder if anyone has figured out how to connect the esri metadata with the tiff. When the zip file is expanded, it contains the following files:

xx_v2.txt (contains what looks like coordinates of 20 points)
xx.aux
xx.rrd
xx.tfwx (some research suggested removing the 'x', but that doesn't seem to help)
xx.tif
xx.tif.aux.xml (this contains metadata)

thanks for any assistance ....

Stu

xx_v2.txt (contains what looks like coordinates of 20 points)
xx.aux
xx.rrd
xx.tfwx (some research suggested removing the 'x', but that doesn't seem to

help)

xx.tif
xx.tif.aux.xml (this contains metadata)

please post the output of gdalinfo xx.tif

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/r-geomorphon-add-on-installation-error-on-Arch-Linux-tp5029263p5030063.html
Sent from the Grass - Users mailing list archive at Nabble.com.

On Jan 26, 2013, at 5:03 PM, Helmut Kudrnovsky wrote:

xx_v2.txt (contains what looks like coordinates of 20 points)
xx.aux
xx.rrd
xx.tfwx (some research suggested removing the 'x', but that doesn't seem to

help)

xx.tif
xx.tif.aux.xml (this contains metadata)

please post the output of gdalinfo xx.tif

I get -

Driver: GTiff/GeoTIFF
Files: /Volumes/Gigantosaurus/BP/BP_MAHTRU80/background/ODNRmines/TL024/TL024.tif
Size is 24888, 15040
Coordinate System is:
LOCAL_CS["unnamed",
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]]]
Origin = (0.000000000000000,37.600000000000001)
Pixel Size = (0.002500000000000,-0.002500000000000)
Metadata:
  AREA_OR_POINT=Area
  TIFFTAG_ARTIST=
  TIFFTAG_COPYRIGHT=
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
  TIFFTAG_SOFTWARE=ImageMill Imaging Library v1.006 (c)Gettes Software 2006
  TIFFTAG_XRESOLUTION=400
  TIFFTAG_YRESOLUTION=400
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( 0.0000000, 37.6000000)
Lower Left ( 0.0000000, 0.0000000)
Upper Right ( 62.2200000, 37.6000000)
Lower Right ( 62.2200000, 0.0000000)
Center ( 31.1100000, 18.8000000)
Band 1 Block=24888x1 Type=Byte, ColorInterp=Gray

I've also included the tif.aux.xml file as it seems to contain the correct metadata.
Is there a way to manually modify the metadata on the geotiff to reflect this information?

Thanks for looking into this ....

Stu

(attachments)

TL024.tif.aux.xml (24.1 KB)

Driver: GTiff/GeoTIFF
Files:

/Volumes/Gigantosaurus/BP/BP_MAHTRU80/background/ODNRmines/TL024/TL024.tif

Size is 24888, 15040
Coordinate System is:
LOCAL_CS["unnamed",

                     ^^^^^^

I have a zip file provided by a US state agency that was 'georeferenced

within ArcGIS 10' in EPSG 3735

if you are sure that all your data is in EPSG 3735, you can try to import
the tiff with r.in.gdal -o into an appropiate grass location:

-o Override projection (use location's projection)
(http://grass.osgeo.org/grass64/manuals/r.in.gdal.html)

if you want to assign e.g. EPSG 3735 to the tiff, you can to this with
gdal_translate:

gdal_translate -a_srs EPSG:3735 in.tif out.tif

-a_srs srs_def: Override the projection for the output file. The srs_def may
be any of the usual GDAL/OGR forms, complete WKT, PROJ.4, EPSG:n or a file
containing the WKT.
(http://www.gdal.org/gdal_translate.html)

but if you are not sure about the tif's coordinate system, ask the data
provider for better data...

HTH

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/r-geomorphon-add-on-installation-error-on-Arch-Linux-tp5029263p5030116.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Hi Stuwart,

What do you mean by connect the metadata to the Tif? Ypu mean get it in the right projection? Or export the metadata from Arc to some sort of metadata catalog (geonetwork)?

If you just want to get the correct coordinate system, then your best bet is to do as Helmut said. Import it with r.in.gdal or use gdal_translate.

Here is a breakdown of what each of those file normally contains in the ArcGIS world:

xx_v2.txt: This is not a standard arc file when dealing with tiff files. It’s probably something the data provider created
xx.aux - Auxiliary file which contains information about raster statistics, histogram, etc
xx.rrd - that is the pyramid layer. Used for fast rendering. Don’t think grass will use that

xx.tfwx - I believe this is the tif georeferencing file but normally you don’t have the last x

xx.tif - you actual data

xx.tif.aux.xml - Metadata created using ESRIs tool (ArcCatalog). I’ve often seen it using the FGDC metadata standard.

Now, looking at the xml file I see:
- PROJCS[“NAD_1983_StatePlane_Ohio_South_FIPS_3402_Feet”,GEOGCS[“GCS_North_American_1983”,DATUM[“D_North_American_1983”,SPHEROID[“GRS_1980”,6378137.0,298.257222101]],PRIMEM[“Greenwich”,0.0],UNIT[“Degree”,0.0174532925199433]],PROJECTION[“Lambert_Conformal_Conic”],PARAMETER[“False_Easting”,1968500.0],PARAMETER[“False_Northing”,0.0],PARAMETER[“Central_Meridian”,-82.5],PARAMETER[“Standard_Parallel_1”,38.73333333333333],PARAMETER[“Standard_Parallel_2”,40.03333333333333],PARAMETER[“Latitude_Of_Origin”,38.0],UNIT[“Foot_US”,0.3048006096012192],AUTHORITY[“EPSG”,3735]]

So it looks as thou your data is in epsg:3735. r.in.gdal with the override flag in a State Plane location should work

Cheers
Daniel

···

On Sat, Jan 26, 2013 at 2:10 PM, Stuart Edwards <sedwards2@cinci.rr.com> wrote:

Hi -

I have a zip file provided by a US state agency that was ‘georeferenced within ArcGIS 10’ in EPSG 3735. I have been unable to open it with GDAL (other than in a rectangular x,y, region as a tiff) and wonder if anyone has figured out how to connect the esri metadata with the tiff. When the zip file is expanded, it contains the following files:

xx_v2.txt (contains what looks like coordinates of 20 points)
xx.aux
xx.rrd
xx.tfwx (some research suggested removing the ‘x’, but that doesn’t seem to help)
xx.tif
xx.tif.aux.xml (this contains metadata)

thanks for any assistance …

Stu


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

Thanks Daniel and Helmut

On Jan 28, 2013, at 2:50 PM, Daniel Victoria wrote:

What do you mean by connect the metadata to the Tif? Ypu mean get it in the right projection? Or export the metadata from Arc to some sort of metadata catalog (geonetwork)?

I was hoping that there was some magic that would allow GRASS and/or GDAL to actually read the whole directory and figure out which files it needed to display the image in its correct projection and location. After quite a lot of time I have decided that this is not possible - although I do know a lot more about GDAL than when I started, which is not a bad thing.

If you just want to get the correct coordinate system, then your best bet is to do as Helmut said. Import it with r.in.gdal or use gdal_translate.

Yes, this works fine and the gtiff metadata is updated to reflect the correct projection. However when displayed, the 18" x 36" drawing is upside down, 1.5 ft x 3 ft in size and located in the bottom left corner of the region at 0,0. This is because the georeferencing of the corners (ullr) is missing. I tried to guess where the corners were and use gdal_translate to move it into position - I got it close, but no cigar.

Here is a breakdown of what each of those file normally contains in the ArcGIS world:
xx_v2.txt: This is not a standard arc file when dealing with tiff files. It's probably something the data provider created

this looks like a list of 20 georeferenced points - except that the equivalent pixel values aren't given anywhere that I can see

xx.aux - Auxiliary file which contains information about raster statistics, histogram, etc
xx.rrd - that is the pyramid layer. Used for fast rendering. Don't think grass will use that
xx.tfwx - I believe this is the tif georeferencing file but normally you don't have the last x

called a 'world' file - as in "what in the world can I do with this?"

xx.tif - you actual data
xx.tif.aux.xml - Metadata created using ESRIs tool (ArcCatalog). I've often seen it using the FGDC metadata standard.

Now, looking at the xml file I see:
-<SpatialReference xsi:type="typens:ProjectedCoordinateSystem"> <WKT>PROJCS["NAD_1983_StatePlane_Ohio_South_FIPS_3402_Feet",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",1968500.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-82.5],PARAMETER["Standard_Parallel_1",38.73333333333333],PARAMETER["Standard_Parallel_2",40.03333333333333],PARAMETER["Latitude_Of_Origin",38.0],UNIT["Foot_US",0.3048006096012192],AUTHORITY["EPSG",3735]]</WKT>

So it looks as thou your data is in epsg:3735. r.in.gdal with the override flag in a State Plane location should work

I could probably have printed the tif and georeferenced it myself ..... live and learn. I sent a note to the supplier pleading for non-proprietary formatting of public data files ......

thanks again,

Stu

On Mon, Jan 28, 2013 at 6:33 PM, Stuart Edwards <sedwards2@cinci.rr.com>wrote:

> xx.tfwx - I believe this is the tif georeferencing file but normally you
don't have the last x
called a 'world' file - as in "what in the world can I do with this?"

Hehe, nice... The world file is one way of storing the coordinates in
GeoTiff files. The GeoTiff format page in the gdal website has a nice
explanation [1]. See Georeferencing.

What you might want to try is remove the X at the end of the world file and
run gdalinfo again, to see if the coordinates of your image corners are
correct. But gdal might not identify the projection since that is described
inside the xml file.

Cheer
Daniel

[1] - http://www.gdal.org/frmt_gtiff.html

Hi,

this is just to let you know that I committed (r54918) on behalf of Jarek the add-on on the svn with changes made by the author.

Regards,
madi

On Fri, Jan 25, 2013 at 10:45 PM, Markus Neteler <neteler@osgeo.org> wrote:

On Wed, Jan 23, 2013 at 1:30 PM, Haziq Noor Ariff
<haziqnoorariff@gmail.com> wrote:

Hi,

I’m trying to install ‘r.geomorphon’ add-on module from
http://sil.uc.edu/downloads.html on my recently-built Arch Linux system with
GRASS7-svn. I’ve used this module on my old Ubuntu system a-lot, but
somehow I can’t get it to install on Arch…

I did:

$ make MODULE_TOPDIR=/usr/local/grass-7.0.svn
$ sudo make MODULE_TOPDIR=/usr/local/grass-7.0.svn install

The ‘make’ command gives no error. The ‘make-install’ command gives an error
that says:

/usr/bin/install -c /usr/local/grass-7.0.svn/bin/r.geomorphon
/usr/local/grass-7.0.svn/bin/
/usr/bin/install: ‘/usr/local/grass-7.0.svn/bin/r.geomorphon’ and
‘/usr/local/grass-7.0.svn/bin/r.geomorphon’ are the same file
make: *** [install] Error 1

What should I do? I didn’t get this error in Ubuntu… Would appreciate any
help, thanks!

On Fedora F17 I get:


main.c: In function ‘main’:
main.c:317:5: error: implicit declaration of function
‘radial2cartesian’ [-Werror=implicit-function-declaration]
main.c:352:2: error: implicit declaration of function
‘write_contrast_colors’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make: *** [OBJ.x86_64-unknown-linux-gnu/main.o] Error 1

This needs to be fixed by the author…

Markus


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

Margherita DI LEO
Postdoctoral Researcher

European Commission - DG JRC
Institute for Environment and Sustainability (IES). Unit H03 – FRC
Via Fermi, 2749
I-21027 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu

Disclaimer: The views expressed are purely those of the writer and may not in any circumstance be regarded as stating an official position of the European Commission.