Re: [GRASS-user] Is it possible to export a vector as new table in existing spatialite database?

2015-09-06 Thread John A Stevenson

On 04/09/15 18:38, Markus Neteler wrote:

On Fri, Sep 4, 2015 at 5:49 PM, John A Stevenson
<john.steven...@ed.ac.uk>  wrote:

I would like to export a vector as new table in existing spatialite
database.

Please let us know how it goes, then we may add that to the manual as
a new example.

Markus
When I tried exporting to Spatialite from GRASS using v.out.ogr, I got 
an error, and although the table was created, the geometry didn't work.  
(Example using nc_spm_08_grass7).


v.out.ogr --overwrite input=firestations@PERMANENT output=nc.sqlite 
format=SQLite dsco=SPATIALITE=YES


Gives:

---

Exporting 71 features...
ERROR 1: sqlite3_step() failed:
  firestations.GEOMETRY violates Geometry constraint [geom-
type or SRID not allowed] (19)
ERROR 1: sqlite3_step() failed:
  firestations.GEOMETRY violates Geometry constraint [geom-
type or SRID not allowed] (19)

<... lots of these ...>

ERROR 1: sqlite3_step() failed:
  firestations.GEOMETRY violates Geometry constraint [geom-
type or SRID not allowed] (19)
ERROR 1: COMMIT transaction failed: cannot commit - no
transaction is active
v.out.ogr complete. 71 features (Point type) written to  
(SQLite format).

(Sun Sep  6 22:07:37 2015) Command finished (3 sec)

---

The database is created, including a table with a GEOMETRY column, but 
when I try to view it with the Map Preview in the spatialite_gui 
software, it says "This Column doesn't contains any Geometry: sorry...".


However, if I export to a shapefile first then use ogr2ogr, it works:

v.out.ogr --overwrite input=firestations@PERMANENT 
output=nc_firestations.shp

v.out.ogr --overwrite input=geology@PERMANENT output=nc_geology.shp
ogr2ogr -f sqlite -dsco SPATIALITE=YES nc.sqlite nc_firestations.shp
ogr2ogr -f sqlite -dsco SPATIALITE=YES nc.sqlite nc_geology.shp -append


I'm not sure what is causing the error, but a Google search brings up a 
ticket for an already existing bug:


https://trac.osgeo.org/grass/ticket/2300

If not the case of the GEOMETRY column, then perhaps it is the case of 
the geometry type e.g. GRASS passes 'Point' but Spatialite wants 'POINT'?


I'm on GRASS 7.0.1 from the UbuntuGIS unstable repository.

Cheers
John

--
Dr John A Stevenson
RSE/Scottish Government Personal Research Fellow
(co-funded by Marie Curie Actions)
School of GeoSciences
The University of Edinburgh
Grant Institute
James Hutton Road
Edinburgh EH9 3FE
Scotland
PHONE: (+44) 131 650 7526
FAX:   (+44) 131 668 3184
email:john.steven...@ed.ac.uk
twitter: @volcan01010
web:http://www.geos.ed.ac.uk/homes/jsteven5
blog:http://all-geo.org/volcan01010
**ICELAND MOBILE: (+354) 8417106**


The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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


[GRASS-user] Is it possible to export a vector as new table in existing spatialite database?

2015-09-04 Thread John A Stevenson
I would like to export a vector as new table in existing spatialite 
database.


According to the GDAL pages (http://www.gdal.org/drv_sqlite.html) the 
SQLite driver supports "creating new SQLite database files, or adding 
tables to existing ones", but I'm not sure if this applies to 
spatialite, or how to create a v.out.ogr command to achieve this.


Is it possible?

John

--
Dr John A Stevenson
RSE/Scottish Government Personal Research Fellow
(co-funded by Marie Curie Actions)
School of GeoSciences
The University of Edinburgh
Grant Institute
James Hutton Road
Edinburgh EH9 3FE
Scotland
PHONE: (+44) 131 650 7526
FAX:   (+44) 131 668 3184
email: john.steven...@ed.ac.uk
twitter: @volcan01010
web: http://www.geos.ed.ac.uk/homes/jsteven5
blog: http://all-geo.org/volcan01010
**ICELAND MOBILE: (+354) 8417106**


The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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


[GRASS-user] GRASS 7 and gdal-grass-1.11.2 plugin

2015-04-21 Thread John A Stevenson

Hi,

I'm trying to install the GDAL-GRASS 7 plugin in order to plot GRASS 
data in QGIS.


I downloaded the source 
(http://download.osgeo.org/gdal/1.11.2/gdal-grass-1.11.2.tar.gz) and 
followed the instructions in the README.  When I try to configure with 
the following command:


```
CFLAGS=-O2 -Wall LDFLAGS=-s ./configure \
--with-grass=/usr/lib/grass70 \
--with-gdal=/usr/bin/gdal-config
```

I get the following error:

```
checking for G_asprintf in -lgrass_gis... no
checking for G_putenv in -lgrass_gis.7.0.svn... no
configure: error: --with-grass=/usr/lib/grass70 requested, but libraries 
not found!  Perhaps you need to set LD_LIBRARY_PATH to include 
/usr/lib/grass70/lib?

```

This is the same error as described in the gdal-grass README, but the 
workaround (creating grass.conf in /etc/ld.so.conf.d with 
/usr/lib/grass70/lib, then running sudo ldconfig) doesn't help.  I have 
also tried patching the configure.in and Makefile.in source files using 
the patch from here: https://trac.osgeo.org/gdal/ticket/5852 without 
success.


How can I point to compiler at the right place?


*OS: Linux Mint 17, based on Ubuntu 14.04 (Trusty).
*GRASS version : 7.0.0-1~exp2~trusty3 from 
ppa:ubuntugis/ubuntugis-unstable repository

(installs to /usr/lib/grass70.  Also installed grass-dev)
*GDAL version: 1.11.1+dfsg-1~exp2~trusty from 
ppa:ubuntugis/ubuntugis-unstable repository

(installs to /usr/bin)

Thanks,

John

--
Dr John A Stevenson
RSE/Scottish Government Personal Research Fellow
(co-funded by Marie Curie Actions)
School of GeoSciences
The University of Edinburgh
Grant Institute
James Hutton Road
Edinburgh EH9 3FE
Scotland
PHONE: (+44) 131 650 7526
FAX:   (+44) 131 668 3184
email: john.steven...@ed.ac.uk
twitter: @volcan01010
web: http://www.geos.ed.ac.uk/homes/jsteven5
blog: http://all-geo.org/volcan01010
**ICELAND MOBILE: (+354) 8417106**


The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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


Re: [GRASS-user] GRASS 7 and gdal-grass-1.11.2 plugin

2015-04-21 Thread John A Stevenson

Hi Stefan,

Thanks for the quick reply.  Based on the discussion, I changed the 
entries in my configure file from 7.0.svn to 7.0.0.  I also changed the 
paths in the Makefile to the proj tables and created a directory for the 
drivers.


```
sed -i 's/\.7\.0\.svn/\.7\.0\.0/g' configure
sed -i 's/etc\/ellipse/etc\/proj\/ellipse/g' Makefile.in
sed -i 's/etc\/datum/etc\/proj\/datum/g' Makefile.in
sudo mkdir /usr/local/share/gdal

CPPFLAGS=-I/usr/include/postgresql CFLAGS=-O2 -Wall LDFLAGS=-s 
./configure \

--with-grass=/usr/lib/grass70 \
--with-gdal=/usr/bin/gdal-config

make
sudo make install
```

The plugin now compiles and installs cleanly, but gdal doesn't seem to 
be using it:


# gdalinfo --formats | grep -i grass
 GRASSASCIIGrid (rov): GRASS ASCII Grid

Do you know how I can make it use it, or how I can tell if it is even 
looking for it?


Cheers
John

p.s. I had searched the developer list archives for gdal plugin, but 
that thread didn't appear.



On 21/04/15 15:54, Blumentrath, Stefan wrote:

Hi,

This has been discussed on the developers list. Have a look here:
http://osgeo-org.1560.x6.nabble.com/GDAL-GRASS-plugin-1-11-2-tt5196087.html

Cheers
Stefan

-Original Message-
From: grass-user-boun...@lists.osgeo.org 
[mailto:grass-user-boun...@lists.osgeo.org] On Behalf Of John A Stevenson
Sent: 21. april 2015 15:45
To: grass-user@lists.osgeo.org
Subject: [GRASS-user] GRASS 7 and gdal-grass-1.11.2 plugin

Hi,

I'm trying to install the GDAL-GRASS 7 plugin in order to plot GRASS data in 
QGIS.

I downloaded the source
(http://download.osgeo.org/gdal/1.11.2/gdal-grass-1.11.2.tar.gz) and followed 
the instructions in the README.  When I try to configure with the following 
command:

```
CFLAGS=-O2 -Wall LDFLAGS=-s ./configure \
  --with-grass=/usr/lib/grass70 \
  --with-gdal=/usr/bin/gdal-config ```

I get the following error:

```
checking for G_asprintf in -lgrass_gis... no checking for G_putenv in 
-lgrass_gis.7.0.svn... no
configure: error: --with-grass=/usr/lib/grass70 requested, but libraries not 
found!  Perhaps you need to set LD_LIBRARY_PATH to include /usr/lib/grass70/lib?
```

This is the same error as described in the gdal-grass README, but the 
workaround (creating grass.conf in /etc/ld.so.conf.d with /usr/lib/grass70/lib, 
then running sudo ldconfig) doesn't help.  I have also tried patching the 
configure.in and Makefile.in source files using the patch from here: 
https://trac.osgeo.org/gdal/ticket/5852 without success.

How can I point to compiler at the right place?


*OS: Linux Mint 17, based on Ubuntu 14.04 (Trusty).
*GRASS version : 7.0.0-1~exp2~trusty3 from
ppa:ubuntugis/ubuntugis-unstable repository (installs to /usr/lib/grass70.  
Also installed grass-dev)
*GDAL version: 1.11.1+dfsg-1~exp2~trusty from
ppa:ubuntugis/ubuntugis-unstable repository (installs to /usr/bin)

Thanks,

John

--
Dr John A Stevenson
RSE/Scottish Government Personal Research Fellow (co-funded by Marie Curie 
Actions) School of GeoSciences The University of Edinburgh Grant Institute 
James Hutton Road Edinburgh EH9 3FE Scotland
PHONE: (+44) 131 650 7526
FAX:   (+44) 131 668 3184
email: john.steven...@ed.ac.uk
twitter: @volcan01010
web: http://www.geos.ed.ac.uk/homes/jsteven5
blog: http://all-geo.org/volcan01010
**ICELAND MOBILE: (+354) 8417106**


The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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



--
Dr John A Stevenson
RSE/Scottish Government Personal Research Fellow
(co-funded by Marie Curie Actions)
School of GeoSciences
The University of Edinburgh
Grant Institute
James Hutton Road
Edinburgh EH9 3FE
Scotland
PHONE: (+44) 131 650 7526
FAX:   (+44) 131 668 3184
email: john.steven...@ed.ac.uk
twitter: @volcan01010
web: http://www.geos.ed.ac.uk/homes/jsteven5
blog: http://all-geo.org/volcan01010
**ICELAND MOBILE: (+354) 8417106**


The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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


Re: [GRASS-user] GRASS 7 and gdal-grass-1.11.2 plugin SOLVED

2015-04-21 Thread John A Stevenson

Hi Stefan,

After compiling and installing as described before, I was able to point 
GDAL at the GRASS plugin by setting the following variable:


export GDAL_DRIVER_PATH=/usr/lib/gdalplugins

$ ogrinfo --formats | grep -i grass
  - GRASS (readonly)

$ gdalinfo --formats | grep -i grass
  GRASS (ro): GRASS Database Rasters (5.7+)
  GRASSASCIIGrid (rov): GRASS ASCII Grid

Launching QGIS from the command line then lets me use Add Raster Layer 
(from my location's cellhd folder) and Add Vector Layer (choosing 
Directory as the source type).  Now I can view my GRASS 7 data in QGIS.


Thanks,
John

Background info on following thread: http://trac.osgeo.org/gdal/ticket/

On 21/04/15 15:54, Blumentrath, Stefan wrote:

Hi,

This has been discussed on the developers list. Have a look here:
http://osgeo-org.1560.x6.nabble.com/GDAL-GRASS-plugin-1-11-2-tt5196087.html

Cheers
Stefan

-Original Message-
From: grass-user-boun...@lists.osgeo.org 
[mailto:grass-user-boun...@lists.osgeo.org] On Behalf Of John A Stevenson
Sent: 21. april 2015 15:45
To: grass-user@lists.osgeo.org
Subject: [GRASS-user] GRASS 7 and gdal-grass-1.11.2 plugin

Hi,

I'm trying to install the GDAL-GRASS 7 plugin in order to plot GRASS data in 
QGIS.

I downloaded the source
(http://download.osgeo.org/gdal/1.11.2/gdal-grass-1.11.2.tar.gz) and followed 
the instructions in the README.  When I try to configure with the following 
command:

```
CFLAGS=-O2 -Wall LDFLAGS=-s ./configure \
  --with-grass=/usr/lib/grass70 \
  --with-gdal=/usr/bin/gdal-config ```

I get the following error:

```
checking for G_asprintf in -lgrass_gis... no checking for G_putenv in 
-lgrass_gis.7.0.svn... no
configure: error: --with-grass=/usr/lib/grass70 requested, but libraries not 
found!  Perhaps you need to set LD_LIBRARY_PATH to include /usr/lib/grass70/lib?
```

This is the same error as described in the gdal-grass README, but the 
workaround (creating grass.conf in /etc/ld.so.conf.d with /usr/lib/grass70/lib, 
then running sudo ldconfig) doesn't help.  I have also tried patching the 
configure.in and Makefile.in source files using the patch from here: 
https://trac.osgeo.org/gdal/ticket/5852 without success.

How can I point to compiler at the right place?


*OS: Linux Mint 17, based on Ubuntu 14.04 (Trusty).
*GRASS version : 7.0.0-1~exp2~trusty3 from
ppa:ubuntugis/ubuntugis-unstable repository (installs to /usr/lib/grass70.  
Also installed grass-dev)
*GDAL version: 1.11.1+dfsg-1~exp2~trusty from
ppa:ubuntugis/ubuntugis-unstable repository (installs to /usr/bin)

Thanks,

John

--
Dr John A Stevenson
RSE/Scottish Government Personal Research Fellow (co-funded by Marie Curie 
Actions) School of GeoSciences The University of Edinburgh Grant Institute 
James Hutton Road Edinburgh EH9 3FE Scotland
PHONE: (+44) 131 650 7526
FAX:   (+44) 131 668 3184
email: john.steven...@ed.ac.uk
twitter: @volcan01010
web: http://www.geos.ed.ac.uk/homes/jsteven5
blog: http://all-geo.org/volcan01010
**ICELAND MOBILE: (+354) 8417106**


The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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



--
Dr John A Stevenson
RSE/Scottish Government Personal Research Fellow
(co-funded by Marie Curie Actions)
School of GeoSciences
The University of Edinburgh
Grant Institute
James Hutton Road
Edinburgh EH9 3FE
Scotland
PHONE: (+44) 131 650 7526
FAX:   (+44) 131 668 3184
email: john.steven...@ed.ac.uk
twitter: @volcan01010
web: http://www.geos.ed.ac.uk/homes/jsteven5
blog: http://all-geo.org/volcan01010
**ICELAND MOBILE: (+354) 8417106**


The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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


[GRASS-user] Problem with g.region in lat-lon projection

2011-11-28 Thread John A Stevenson

Hi,

I am trying to set up a grid with a specified resolution using 
g.region.  The information about the grid that came with the data that I 
want to plot is:

 X grid origin:0.2812500
 Y grid origin:-89.81250
 X grid size: 640
 Y grid size: 480
 X grid resolution:0.5625000
 Y grid resolution:0.375

I set up the grid with the following command:

GRASS 6.4.1 (global_ll_wgs84):~/NAME/G2011  g.region w=0.2812500 
s=-89.81250 cols=640 rows=480 ewres=0.562500 nsres=0.375


I would expect this grid to cover the whole globe (e.g. 640*0.5625=360), 
but instead it just generates a thin strip, and the ewres is too small.


GRASS 6.4.1 (global_ll_wgs84):~/NAME/G2011  g.region -p
projection: 3 (Latitude-Longitude)
zone:   0
datum:  wgs84
ellipsoid:  wgs84
north:  74N
south:  89:48:45S
west:   0:16:52.5E
east:   24E
nsres:  0:20:28.59375
ewres:  0:02:13.417969
rows:   480
cols:   640
cells:  307200

Where am I going wrong?

John

--
Dr John A Stevenson
RSE/Scottish Government Personal Research Fellow
(co-funded by Marie Curie Actions)
School of GeoSciences
The University of Edinburgh
Grant Institute
West Mains Road
Edinburgh EH9 3JW
Scotland
PHONE: (+44) 131 650 7526
FAX:   (+44) 131 668 3184
email: john.steven...@ed.ac.uk
web: http://www.geos.ed.ac.uk/homes/jsteven5
blog: http://all-geo.org/volcan01010


The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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


[GRASS-user] Blog post featuring GRASS and other Open Source GIS tools

2011-11-24 Thread John A Stevenson

Hi all,

I've written a post for my blog about all the software that I use at 
work, in which GRASS features.


You can read it here:
http://all-geo.org/volcan01010/2011/11/all-the-software-a-geoscientists-needs-for-free/

If there is anything that you use that I have missed out, please add it 
to the comments.


Cheers

John

--
Dr John A Stevenson
RSE/Scottish Government Personal Research Fellow
(co-funded by Marie Curie Actions)
School of GeoSciences
The University of Edinburgh
Grant Institute
West Mains Road
Edinburgh EH9 3JW
Scotland
PHONE: (+44) 131 650 7526
FAX:   (+44) 131 668 3184
email: john.steven...@ed.ac.uk
web: http://www.geos.ed.ac.uk/homes/jsteven5
blog: http://all-geo.org/volcan01010


The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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


[GRASS-user] Wiki page for research articles involving GRASS

2011-06-21 Thread John A Stevenson

Hi,

Is there a wiki page with a list of publications that reference GRASS or 
used GRASS for the analysis?


I've just had two articles published about physical volcanology, and I 
used GRASS for LiDAR, multi-spectral infrared, georeferencing and 
plotting field data. I'll add them to the list.


Widespread inflation and drainage of a pāhoehoe flow field: the 
Nesjahraun, Þingvellir, Iceland

http://dx.doi.org/10.1007/s00445-011-0482-z

Lava penetrating water: the different behaviours of pāhoehoe and 'a'ā at 
the Nesjahraun, Þingvellir, Iceland

http://dx.doi.org/10.1007/s00445-011-0480-1

Cheers
John

--
Dr John A Stevenson
RSE/Scottish Government Personal Research Fellow
(co-funded by Marie Curie Actions)
School of GeoSciences
The University of Edinburgh
Grant Institute
West Mains Road
Edinburgh EH9 3JW
Scotland
PHONE: (+44) 131 650 7526
FAX:   (+44) 131 668 3184
email: john.steven...@ed.ac.uk
web: http://www.geos.ed.ac.uk/homes/jsteven5
blog: http://all-geo.org/volcan01010


The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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


[GRASS-user] EGU

2011-04-04 Thread John A Stevenson

Hi all,

Is anyone at EGU (European Geosciences Union) this week?  Are there any 
good GRASS / Open Source scientific software / GIS sessions to go to?


Cheers
John

--
Dr John A Stevenson
RSE/Scottish Government Personal Research Fellow
(co-funded by Marie Curie Actions)
School of GeoSciences
The University of Edinburgh
Grant Institute
West Mains Road
Edinburgh EH9 3JW
Scotland
PHONE: (+44) 131 650 7526
FAX:   (+44) 131 668 3184
email: john.steven...@ed.ac.uk
web: http://www.geos.ed.ac.uk/homes/jsteven5
blog: http://all-geo.org/volcan01010


The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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


[GRASS-user] Grid label format in psmap

2010-11-25 Thread John A Stevenson

Hi,

I have a UTM dataset that I am plotting with psmap.  I would like to 
have grid squares at 1000 m intervals.  I can do this easily with the 
following:


grid 1000
   color black
   numbers 1
   font helvetica
   fontsize 12
end*

*However, on the resulting plot, the gridline labels are truncated into 
kilometers e.g. 498, 7114, instead of 498000, 7114000.  Is there a 
parameter that I can modify somewhere so that I can control output 
format and display the full number.  (Similar to D_FORMAT / 
OUTPUT_DEGREE_FORMAT in GMT, I suppose).


Cheers
John

--
Dr John A Stevenson
RSE/Scottish Government Personal Research Fellow
(co-funded by Marie Curie Actions)
School of GeoSciences
The University of Edinburgh
Grant Institute
West Mains Road
Edinburgh EH9 3JW
Scotland
PHONE: (+44) 131 650 7526
FAX:   (+44) 131 668 3184
email: john.steven...@ed.ac.uk
web: http://www.geos.ed.ac.uk/homes/jsteven5 



The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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


Re: [GRASS-user] Natural Earth: public domain GIS datasets [SOLVED]

2010-01-18 Thread John A Stevenson

William Temperley wrote:


Are you on Ubuntu?

I am.  I apt-get purged the version of gdal-bin from the repositories 
and compiled a nice new gdal 1.6.3 from source.  It works now.


It's a really nice dataset.  Just having country outlines to use as a 
mask is an excellent result.


Cheers

John

--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


Re: [GRASS-user] Natural Earth: public domain GIS datasets

2010-01-17 Thread John A Stevenson
  08:06 6159   
/usr/lib/liblber-2.4.so.2.5.1
b50e3000-b50e4000 r--p c000 08:06 6159   
/usr/lib/liblber-2.4.so.2.5.1
b50e4000-b50e5000 rw-p d000 08:06 6159   
/usr/lib/liblber-2.4.so.2.5.1

b50e5000-b5115000 r-xp  08:06 6127   /usr/lib/libidn.so.11.5.44
b5115000-b5116000 ---p 0003 08:06 6127   /usr/lib/libidn.so.11.5.44
b5116000-b5117000 r--p 0003 08:06 6127   /usr/lib/libidn.so.11.5.44
b5117000-b5118000 rw-p 00031000 08:06 6127   /usr/lib/libidn.so.11.5.44
b5118000-b515f000 r-xp  08:06 6164   
/usr/lib/libldap_r-2.4.so.2.5.1
b515f000-b516 ---p 00047000 08:06 6164   
/usr/lib/libldap_r-2.4.so.2.5.1
b516-b5161000 r--p 00047000 08:06 6164   
/usr/lib/libldap_r-2.4.so.2.5.1
b5161000-b5162000 rw-p 00048000 08:06 6164   
/usr/lib/libldap_r-2.4.so.2.5.1

b5162000-b5164000 rw-p  00:00 0
b5164000-b516d000 r-xp  08:06 924
/lib/tls/i686/cmov/libcrypt-2.10.1.so
b516d000-b516e000 r--p 8000 08:06 924
/lib/tls/i686/cmov/libcrypt-2.10.1.so
b516e000-b516f000 rw-p 9000 08:06 924
/lib/tls/i686/cmov/libcrypt-2.10.1.so

b516f000-b5196000 rw-p  00:00 0
b5196000-b51be000 r-xp  08:06 2742   
/usr/lib/libgssapi_krb5.so.2.2
b51be000-b51bf000 r--p 00027000 08:06 2742   
/usr/lib/libgssapi_krb5.so.2.2
b51bf000-b51c rw-p 00028000 08:06 2742   
/usr/lib/libgssapi_krb5.so.2.2

b51c-b51c2000 r-xp  08:06 917/lib/libcom_err.so.2.1
b51c2000-b51c3000 r--p 1000 08:06 917/lib/libcom_err.so.2.1
b51c3000-b51c4000 rw-p 2000 08:06 917/lib/libcom_err.so.2.1
b51c4000-b5263000 r-xp  08:06 2746   /usr/lib/libkrb5.so.3.3
b5263000-b5268000 r--p 0009f000 08:06 2746   /usr/lib/libkrb5.so.3.3
b5268000-b5269000 rw-p 000a4000 08:06 2746   /usr/lib/libkrb5.so.3.3
b5269000-b5396000 r-xp  08:06 4560   
/lib/i686/cmov/libcrypto.so.0.9.8
b5396000-b539e000 r--p 0012c000 08:06 4560   
/lib/i686/cmov/libcrypto.so.0.9.8
b539e000-b53ab000 rw-p 00134000 08:06 4560   
/lib/i686/cmov/libcrypto.so.0.9.8

b53ab000-b53b rw-p  00:00 0
b53b-b53f1000 r-xp  08:06 4561   
/lib/i686/cmov/libssl.so.0.9.8
b53f1000-b53f2000 ---p 00041000 08:06 4561   
/lib/i686/cmov/libssl.so.0.9.8
b53f2000-b53f3000 r--p 00041000 08:06 4561   
/lib/i686/cmov/libssl.so.0.9.8
b53f3000-b53f6000 rw-p 00042000 08:06 4561   
/lib/i686/cmov/libssl.so.0.9.8

b53f6000-b613b000 r--p  08:06 6110   /usr/lib/libicudata.so.40.1
b613b000-b613c000 r--p 00d44000 08:06 6110   /usr/lib/libicudata.so.40.1
b613c000-b6262000 r-xp  08:06 6122   
/usr/lib/libicuuc.so.40.1Aborted


--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


Re: [GRASS-user] ps.map and line style

2010-01-12 Thread John A Stevenson

Vincent Bain wrote:

Hello,
in a map composition I need to draw contours with two particular
linestyles:
- a line bedecked with crosses: xxxx
- a double line: =
  

Hi Vincent,

I have plotted a double line like this:

vlines my_lines
   color yellow
   width 1.5
   label Chirp lines
   lpos 4
   style 000111
end

vlines my_lines
   color black
   width 3
   label Chirp lines
   lpos 4
   style 000111
end

The top entry in the file plots on top in the map.  This gives a black 
dotted line with a yellow middle.  Specifying the same legend position 
recreates the pattern in the legend.


Later

John

--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


Re: [GRASS-user] Compiling NVIZ / OpenGL with nVidia drivers - SOLVED

2010-01-07 Thread John A Stevenson

Hamish wrote:

Glynn wrote:
  

If there are separate OpenGL packages for nVidia and X.org,
there may be separate development packages, or there may be a single
package for use with either version.



those probably exist, but I've got no idea about them.  (libglu1-*)
  
Thanks for that.  I got it working by installing just the development 
packages for


mesa-common-dev
libglu1-mesa-dev

and providing the includes directory to configure: 
--with-opengl-includes=/usr/include/GL/


Previously, installing the mesa binaries had broken my nvidia driver, so 
this time I left them out.


Cheers

John

--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


Re: [GRASS-user] using GDAL to view netcdf files in GRASS

2009-12-01 Thread John A Stevenson

Carbonari, Katie (IS) wrote:


Hello. I'm trying to use GDAL to convert my netcdf file into a GTiff 
so it can be read into GRASS. I tried using  gdal_translate -of GTiff 
-b 1 NETCDF:FILE.nc:Outfile Outfile.tiff


You probably need to specify a coordinate system, too.  Do this with the 
-a_srs option. 

See http://www.gdal.org/gdal_utilities.html for details.  The easiest 
way is using the epsg codes.  On my system, I can find them by:


cat /usr/share/proj/epsg | grep -i lambert -A 1

There is also a list at (http://www.epsg-registry.org/) - look under 
Projected CRS type.  Choose the one that you need, and amend your code. 
e.g.


gdal_translate -of GTiff -a_srs epsg:12345 -b 1 NETCDF:FILE.nc:Outfile 
Outfile.tiff


You might also need to warp your map into the new projection

gdalwarp -t_srs epsg 12345 Outfile.tiff Outfile_warped.tiff

See the first parts of this tutorial for details
http://blog.thematicmapping.org/2008/03/generating-map-tiles-with-gdal2tiles.html

Hope that helps,

John

--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


Re: [GRASS-user] Export Raster to Google Earth Files

2009-10-14 Thread John A Stevenson

Hamish wrote:

easier:
I think you just have to export a geotiff then compose the KM? file
manually with the bounds.
  
Or you can use gdal2tiles.py to do this bit.  It will also create 
different zoom levels for you.


More information on a previous posting:

http://lists.osgeo.org/pipermail/grass-user/2009-May/050361.html

John

--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


[GRASS-user] UK postcode database

2009-09-21 Thread John A Stevenson

The UK postcode database has been posted on Wikileaks.

Now, just like a TomTom(TM) or GoogleEarth(TM), you too can find the 
lat-lon of any address in the UK.


http://wikileaks.org/wiki/UK_government_database_of_all_1,841,177_post_codes_together_with_precise_geographic_coordinates_and_other_information,_8_Jul_2009

Have fun,

John

--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


Re: [GRASS-user] New addon: r.denoise. Denoise topography including SRTM

2009-09-17 Thread John A Stevenson

Hi Frank,

Frank Broniewski wrote:

but could you provide some hints on general memory usage?
Xianfang said that the out of memory message came during the 
triangulation stage of denoising.  The triangulation is carried out by 
triangle.c, which he did not write.  I don't know how triangle uses 
memory.  Perhaps Hamish does?


Xianfang also recommended denoising small areas, perhaps with overlap, 
and seeing how well they can be merged.


Cheers

John

--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


Re: [GRASS-user] New addon: r.denoise. Denoise topography including SRTM

2009-09-16 Thread John A Stevenson

Hi Frank

Frank Broniewski wrote:
I want to try your module with my srtm data, but I always get out of memory 
messages. Maybe I am just to ambitious with my region settings :-) , 
How big a region are you using?  Have you had any luck testing it on a 
smaller region?


I have only ever run out of memory on a 24 million point region, but can 
happily (if slowly) denoise it if I halve the resolution (~6 million 
points).  I have 4Gb RAM.
but could 
you provide some hints on general memory usage?
  
I've emailed Xianfang Sun who wrote the denoising part, (I just wrote 
the GRASS interface) and will let you know what he says.
Or should I program a script for a moving window so I get smaller regions? Are 
there any problems then on the connecting borders, e.g. differnently smoothed 
surfaces at the edges
Each of the cells moves individually based on their neighbouring points, 
so the edges would be smoothed differently.  The magnitude of the 
differences would be very small, but many algorithms e.g. slope, shaded 
relief are very sensitive to them, so I think that they would show up.


Cheers

John

--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


[GRASS-user] GMT contours in ps.map

2009-08-27 Thread John A Stevenson

Hi,

Is there a way to combine contours generated in GMT with the vector data 
and legend generated in ps.map?


I have used the contouring in GRASS before, but GMT makes a really nice 
job of it, particularly with the labels. 

I don't have much experience with Postscript files.  Would it be 
possible to combine the output .ps files of the two programs?  Or should 
I export the map and contours from GMT (grdimage, grdcontour) and then 
somehow use it as a background in ps.map?  How would I ensure that they 
lined up correctly?


Cheers

John

--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


[GRASS-user] New addon: r.denoise. Denoise topography including SRTM

2009-08-17 Thread John A Stevenson

Hi,

I've uploaded a new module, r.denoise, to the addons repository.  The 
module can be used to remove noise/speckle from DEMs including SRTM 
data.  Removing noise can improve the results from other modules e.g. 
r.watershed, r.slope.aspect.  Compared to mean/median filtering with 
r.neighbors, r.denoise makes much smaller changes to the data and is 
able to preserve sharp edges.


The module is most easily installed on grass-6.5.svn via the command:

g.extension r.denoise

however, being a shell script, it can also be downloaded and copied to a 
directory on the path.


Further information:

Addons page:
http://grass.osgeo.org/wiki/GRASS_AddOns#r.denoise

Article in press in Geomorphology describing use of the denoising 
algorithm on Lidar, TOPSAR and SRTM.

http://dx.doi.org/10.1016/j.geomorph.2009.07.006

Enjoy,

John

--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


Re: [GRASS-user] Compiling addons - description.html

2009-08-13 Thread John A Stevenson
 
MANSRC=/usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/docs/html/r.surf.volcano.html
make[2]: Entering directory 
`/media/OS/Users/mbessjs3/Documents/grassdata/thingy/PERMANENT/.tmp/mbessjs3-pc/18662.0/r.surf.volcano'
/usr/local/grass-6.5.svn/include/Make/Script.make:47: warning: 
overriding commands for target `install'
/usr/local/grass-6.5.svn/include/Make/Rules.make:82: warning: ignoring 
old commands for target `install'

mkdir -p /usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/man/man1
GRASS_PERL=/usr/bin/perl VERSION_NUMBER=6.5.svn sh 
/usr/local/src/grass/develbranch_6/tools/g.html2man/g.html2man 
/usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/docs/html/r.surf.volcano.html 
/usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/man/man1/r.surf.volcano.1 
1
Converting: 
/usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/docs/html/r.surf.volcano.html 
to 
/usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/man/man1/r.surf.volcano.1
make[2]: Leaving directory 
`/media/OS/Users/mbessjs3/Documents/grassdata/thingy/PERMANENT/.tmp/mbessjs3-pc/18662.0/r.surf.volcano'
make[1]: Leaving directory 
`/media/OS/Users/mbessjs3/Documents/grassdata/thingy/PERMANENT/.tmp/mbessjs3-pc/18662.0/r.surf.volcano'

Installing r.surf.volcano...
/usr/local/grass-6.5.svn/include/Make/Script.make:47: warning: 
overriding commands for target `install'
/usr/local/grass-6.5.svn/include/Make/Rules.make:82: warning: ignoring 
old commands for target `install'

Installation of r.surf.volcano in /usr/local/grass-6.5.svn successfully
finished.
GRASS 6.5.svn (thingy):~/laptop/grassdata/thingy  g.manual r.surf.volcano
Starting browser firefox for module r.surf.volcano...
GRASS 6.5.svn (thingy):~/laptop/grassdata/thingy  ls -l 
/usr/local/grass-6.5.svn/docs/html/r.surf.volcano.html
-rw-r--r-- 1 mbessjs3 grass 2730 2009-07-03 17:50 
/usr/local/grass-6.5.svn/docs/html/r.surf.volcano.html



--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


[GRASS-user] Presentation online: Using GRASS to process aerial survey data

2009-08-13 Thread John A Stevenson

Hi,

I few weeks ago I gave a presentation on using GRASS to process high 
resolution aerial survey data e.g. LiDAR, aerial photos at the UK Open 
Source GIS conference.  The video is available online at:


http://uiwapmds01.nottingham.ac.uk/qcsplace/ondemand/Events09/aae138404da8a25d2b274ce1ee/run.htm
(Unfortunately it needs a Windows Media Player plugin, and opens in a popup)

I have also put a link to it on the Wiki at 
http://grass.osgeo.org/wiki/GRASS_Education_(Free_GIS_education), 
although I'm not sure if this is the best place.


Cheers

John

--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


[GRASS-user] WGS84 (epsg:4326) - OSBG36 British National Grid (epsg:27700) offset problem - SOLVED

2009-07-14 Thread John A Stevenson

Hi,

I had a problem importing GPS data and features digitised from Google 
Earth (both WGS84 datum) into locations with a British National Grid 
(OSBG36) projection.  I was working in a region in northwest Scotland, 
and I found that everything that I imported was plotting about 100 ENE 
of where it should do.


I have finally worked out why, but after a lot of searching, so I am 
posting a summary of what I found here so that google will pick it up in 
the archives if anyone else has the same problem in future.


The short answer is that the projection parameters that proj4 was using 
were wrong, but they are fixed now.  Noone using an up-to-date version 
of proj4 should have this problem, but the Dag rpm repository still has 
an old one.


The problem was that going to OSGB36 requires both a projection and a 
datum conversion {1}.  Prior to October 2007 {2}, proj was only carrying 
out the projection, thus resulting in the large offset.  You can check 
if you have the new version by running 'proj -v' or by looking at your 
epsg file:


cat /usr/share/proj/epsg | grep -A 1 British National Grid

# OSGB 1936 / British National Grid
27700 +proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=40 
+y_0=-10 +ellps=airy +datum=OSGB36 +units=m +no_defs  


The new versions have +datum=OSGB36.

If you have an old version, you can correct it by replacing the line with:

+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.999601 +x_0=40 +y_0=-10 
+ellps=airy 
+towgs84=446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894 +units=m 
+no_defs 


A complication is that OSGB36 is slightly distorted with respect to GPS 
projections (such as WGS84 and ETRS89) {3}.  This offset is small, and 
is only important for higher precision surveying.  Many searches about 
OSGB36 offsets bring up pages relating to this.  If you want to 
compensate for this too,
you can download a nadgrid file and use it {4}.  For my data, this moved 
the points by about 1 m.


I hope that this helps anyone with the same problem,

Cheers

John

{1} - http://lists.maptools.org/pipermail/proj/2005-November/001854.html
{2} - http://trac.osgeo.org/proj/changeset/1416
{3} - 
http://www.ordnancesurvey.co.uk/oswebsite/gps/osnetfreeservices/about/surveying_osnet.html#6

{4} - http://osdir.com/ml/gis.proj-4.devel/2006-11/msg00056.html

--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


[GRASS-user] g.parser header definitions

2009-07-01 Thread John A Stevenson

Hi,

I am having problems with g.parser.  I am trying to convert one of my 
shell scripts into a module.


I've looked at the manual page and can run the example shell script 
there, but when I change the settings in the top section to describe my 
own variables it crashes with: 


execl() failed: Exec format error

Is there any more documentation on how to write the headers?  I have 
some other questions:

- what does the gisprompt option do?
- what types are available?  string, integer, float?
- what does the answer option do?

Cheers

John

--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


Re: [GRASS-user] Repository for RH Enterprise Linux / Scientific Linux ? - SOLVEDish

2009-06-30 Thread John A Stevenson


Under CentOS Dag Wieer's RPM Repository satisfies some of my GRASS 
Dependencies, which might also work with ScientificLinux (since both 
are built from RHEL Source)???  Sorry I am NOT familiar with SL, so I 
can NOT be more definitive...


   http://dag.wieers.com/rpm/

NOTE: Dag's Repositories can also be accessed directly from YUM, APT and
  UP2DATE...


Thanks,

In the end I got GDAL and Proj and most of my other dependencies from 
the Dag Wieers repository.  It turns out that the Dag repository in 
Scientific Linux 
(ftp://ftp.scientificlinux.org/linux/extra/dag/redhat/el4/en/x86_64/RPMS.dag/) 
doesn't have the same packages as the main Dag repository 
(http://dag.wieers.com/rpm/packages/?M=D), so I had to change that.


I'm having problems with the wxpython and vdigit still, as it says that 
there is some kind of version number mismatch, but I don't know if that 
is related to repositories or down to my messy installation.


Cheers

John


--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


[GRASS-user] Repository for RH Enterprise Linux / Scientific Linux ?

2009-06-29 Thread John A Stevenson

Hi,

I'm trying to install GRASS on a machine running Scientific linux.  It's 
a slow job of compiling dependancies from source, as the repositories 
are very limited.


Does anyone know of a repository with rpms of Grass and other GIS 
software (and the dependancies e.g. proj, gdal)?  What is the les-ejk of 
the Redhat world?


Cheers

John

--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


Re: [GRASS-user] problem creating point layer from CSV file

2009-06-23 Thread John A Stevenson
To set the column type in db.in.ogr for a csv file, you have to create 
another file (e.g. points_in.csvt) with the column types.


See:
g.manual db.in.ogr

or

http://www.gdal.org/ogr/drv_csv.html

Alternatively, load the csv file with v.in.ascii, which will give you a 
chance to describe the column types.


Later

John


Tim Michelsen wrote:

Hello,
I tried to create a point vector from a table with coordinates:

db.in.ogr dsn=points_in.csv output=points key=myid
v.in.db --overwrite table=points x=UTM_E y=UTM_N key=myid 
output=points_vect

= ERROR: x/y/z column must be integer or double

Why do I get this error?
How to I change the table column format for an imported ascii (CSV) 
table in order to match integer or double?


Thanks for your help.

Kind regards,
Timmie

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




--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


[GRASS-user] ps.map file title

2009-06-11 Thread John A Stevenson

Is there a way to set the title of the file in ps.map?

If I convert the ps file using GMT's ps2raster -Tf, then the resulting 
file has title:

Map layer = some_map  Mapset = some_mapset

I can change this if I edit the ps file by hand, but was just wondering 
if there was a setting in ps.map that wasn't documented in the g.manual 
page.


Cheers

John

--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


[GRASS-user] Icelandic / international characters in databases and ps.map

2009-06-03 Thread John A Stevenson

Hi,

After initially being put off by seeing complicated scripts, I've 
started to use psmap.  I wanted to use the postscript fill patterns to 
create a geological map that would reproduce in black and white.  It's 
really good - the commands are pretty easy and the results look clear 
and excellent.


Anyway.  I have digitised some of the main peaks in the region, whose 
names contain Icelandic characters.  Their names contain Icelandic 
characters.  Using v.db.select, they appear to have stored correctly.  
When I use labels created from the vector, the characters appear as gaps 
with d.labels and as nonsense symbols using ps.map.


I read on the psmap g.manual page about character encoding, but don't 
know how it applies to the labels/database.


Can anyone help?

Cheers

John

--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


[GRASS-user] wxpython gui and v.digit

2009-06-03 Thread John A Stevenson

Hi,

I have installed from source Grass65 devel_branch today.  It compiled 
without problems.


When I run g.gui wxpython, it gives me the following warning:

WARNING: Vector digitizer is not available (No module named grass6_wxvdigit)

How do I enable this module?

Thanks,

John

--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


Re: [GRASS-user] Icelandic / international characters in databases and ps.map - SOLVED

2009-06-03 Thread John A Stevenson

Hi,

Solved.  Firstly, I had to compile grass with freetype (which I didn't 
have) and freetype includes.


./configure ... --with-freetype 
--with-freetype-includes=/usr/include/freetype2/


I backed up my vector (as peaks_iso), then, as described in the thread, 
I opened the its dbf file in Open Office using character encoding 
ISO-8859-1.  I had to retype the Icelandic characters into the database, 
and saved it.


I remade the labels using peaks_iso and it worked fine.

Thank you.

John



Miha Staut wrote:
This thread might help (see the ending comment by Glynn). 


http://n2.nabble.com/Character-encoding-problem-td2185961.html#a2191493

Miha


--- On Wed, 3/6/09, John A Stevenson john.steven...@manchester.ac.uk wrote:

  

From: John A Stevenson john.steven...@manchester.ac.uk
Subject: [GRASS-user] Icelandic / international characters in databases and 
ps.map
To: GRASS user list grass-user@lists.osgeo.org
Date: Wednesday, 3 June, 2009, 10:44 AM
Hi,

After initially being put off by seeing complicated
scripts, I've started to use psmap.  I wanted to use
the postscript fill patterns to create a geological map that
would reproduce in black and white.  It's really good -
the commands are pretty easy and the results look clear and
excellent.

Anyway.  I have digitised some of the main peaks in
the region, whose names contain Icelandic characters. 
Their names contain Icelandic characters.  Using
v.db.select, they appear to have stored correctly. 
When I use labels created from the vector, the characters

appear as gaps with d.labels and as nonsense symbols using
ps.map.

I read on the psmap g.manual page about character encoding,
but don't know how it applies to the labels/database.

Can anyone help?

Cheers

John

--

Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk

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





  

  



--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 





--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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


[GRASS-user] Raster Google Earth script using gdal2tiles.py

2009-05-13 Thread John A Stevenson

Hi,

I've seen various ways of getting GRASS rasters into Google Earth tiles 
but always seemed to have trouble with the colours or the 
reprojections.  This is what I finally found worked for me, so am 
posting it in case it is useful to anyone else.  It requires a recent 
version of gdal (I have 1.5.2) to provied the gdal2tiles.py script, and 
the ImageMagick program mogrify to make null regions of the map (which 
were white in my map) transparent.


I hope that it is useful.

Later

John

r.out.ge

#!/bin/bash
# Export map to Google Earth tiles.

map=$1

# Export map as png and make null data transparent
g.region rast=$map
export `g.region zoom=$map -lg` # Get map bounds in Lat Long
r.out.png $map
mogrify -transparent white $map.png

# Georeference and reproject output
gdal_translate -a_srs EPSG:4326 -a_ullr $nw_long $nw_lat $se_long 
$se_lat $map.png $map.tif

gdalwarp -t_srs EPSG:4326 -rc $map.tif $map\4326.tif

# Tile for Google Earth
gdal2tiles.py -title $map -forcekml $map\4326.tif $map

--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


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