Re: [GRASS-user] Re: Cannot create dbf database

2011-09-27 Thread Craig Leat
Hamish wrote: GRASS 6.4.1 (wgs84lo29):~ v.in.ogr -e dsn=contours lo29.shp out=contours2 shapfiles don't like spaces in their names. rename the file(s) to make them sql compliant. Thanks for this. The table is created correctly if I remove the space from the shapefile name. Maybe v.in.ogr

[GRASS-user] Cannot create dbf database

2011-09-26 Thread Craig Leat
Hi, I have been able to import a shapefile into a new location, but I receive an error when I try to copy this vector: GRASS 6.4.1 (WGS84Lo29):~ g.copy vect=contours,test Copy vector contours@Lotheni to current mapset as test DBMI-DBF driver error: Cannot create dbf database: cat

Re: [GRASS-user] Re: Cannot create dbf database

2011-09-26 Thread Craig Leat
Thanks for the tips. I deleted the location and started over, just to be sure. GRASS 6.4.1 (wgs84lo29):~ v.in.ogr -e dsn=contours lo29.shp out=contours2 GRASS 6.4.1 (wgs84lo29):~ db.tables -p contours contours2 heights GRASS 6.4.1 (wgs84lo29):~ v.db.connect -p contours2 Vector map

Re: [GRASS-user] Remote Sessions with NX (NoMachine)???

2009-10-19 Thread Craig Leat
Glynn Clements wrote: I think that this change might be necessary, although I don't know if the problem which you report is related to it. --- display/drivers/XDRIVER/Respond.c (revision 39378) +++ display/drivers/XDRIVER/Respond.c (working copy) @@ -4,6 +4,7 @@ void XD_Respond(void) { +

Re: [GRASS-user] Remote Sessions with NX (NoMachine)???

2009-10-18 Thread Craig Leat
Lawrence Houston wrote: While running Sessions Remotely using NX (www.NoMachine.com) I can have problems using GRASS's XDRIVER: With NX 2.1 the XDRIVER successfully displays Raster Images, although with NX 3.X the XDRIVER Window remains Blank without the Raster Image being Visible!!!  Would

Re: [GRASS-user] Tcl/Tk gui and nviz errors

2009-07-31 Thread Craig Leat
This seems to be a bug with newer ubuntu versions because they no longer ship with /etc/X11/rgb.txt. See the following bug report for details: https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/300935 I copied /usr/share/pixmap/rgb.txt to /etc/X11/ and restarted X. Now Tcl/Tk gui works, but

Re: [GRASS-user] Tcl/Tk gui and nviz errors

2009-07-31 Thread Craig Leat
nviz -q Error in startup script: Togl: couldn't get visual    while executing togl $Nv_(TOP).canvas -rgba true -double true -depth true    (procedure Nv_makeGUI line 56)    invoked from within Nv_makeGUI $Nv_(AREA)    (file

[GRASS-user] Tcl/Tk gui and nviz errors

2009-07-30 Thread Craig Leat
Hi I am getting errors (after updating and re-compiling) trying to start the Tcl/Tk gui and nviz, as shown below. I am using GRASS 6.5 r38466 on ubuntu 9.04.  Any ideas on what I have done wrong? Thanks Craig $ grass65 -tcltk Cleaning up temporary files ... Starting GRASS ... Error in startup

Re: [GRASS-user] Tcl/Tk gui and nviz errors

2009-07-30 Thread Craig Leat
Maris Nartiss: That's strange. It's there for ages and I don't see any changes on TCL/Tk side about supported color names. Can You provide information about Your TCL and Tk versions? $ dpkg -l | grep tk8 ii tk8.5 8.5.6-3 Tk toolkit for

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

2009-06-10 Thread Craig Leat
sela wrote: 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? This may be a packaging problem. See gdal wiki for details,

Re: [GRASS-user] Compilation error with i.atcorr

2009-05-20 Thread Craig Leat
Hi Markus Craig Leat: I am receiving a compilation error with the i.atcorr module Markus Neteler: the problem is fixed: the recently increased cache did not fit on 32bit CPUs but only on 64bit. Now it is reduced to 4096 and it compiles again on 32bit, too. Great to hear you tracked this one

Re: [GRASS-user] Error in sqlite3_step()

2009-04-06 Thread Craig Leat
Dylan: Yeah. I have recently noticed this type of behavior after switching to sqlite. I was unable to patch two vectors (and att tables) after defining new columns of type varchar(20). I re-made the columns as 'text' and v.patch worked as expected. Maybe we need some special, internal

Re: [GRASS-user] Error in sqlite3_step()

2009-04-03 Thread Craig Leat
Moritz wrote: What does v.db.connect -p show for each of the two maps ? v.db.connect -p map=SBC1 Vector map s...@craig is connected by: layer 1 table SBC1 in database /home/craig/GIS/grassdata/uMDM_ll/craig/sqlite.db through driver sqlite with key cat v.db.connect -p map=SBC2 Vector map

Re: [GRASS-user] Error in sqlite3_step()

2009-04-03 Thread Craig Leat
Moritz, Thanks for the suggestions. I think I've got something: Craig Leat wrote: I am receiving the following error when patching two point vector maps: v.patch -e in=SBC1,SBC2 out=SBC_0607 Patching vector map s...@craig... DBMI-SQLite driver error: Error in sqlite3_step(): SQL logic

Re: [GRASS-user] Error in sqlite3_step()

2009-04-03 Thread Craig Leat
I have a problem with v.db.dropcol, it's changing the length of columns. db.describe -c table=SBC1 driver=sqlite database=/home/craig/GIS/grassdata/uMDM_ll/craig/sqlite.db ncols: 6 nrows: 197842 Column 1: cat:INTEGER:20 Column 2: CLASS_NAME:CHARACTER:1 Column 3: LM:CHARACTER:1 Column 4:

Re: [GRASS-user] Error in sqlite3_step()

2009-04-03 Thread Craig Leat
Moritz Lennert wrote: Don't have time to look into this now, but it must be a problem in the special sqlite implementation in that script: if [ $driver = sqlite ] ; then #echo Using special trick for SQLite # http://www.sqlite.org/faq.html#q13 v.info --q -c

[GRASS-user] Error in sqlite3_step()

2009-04-02 Thread Craig Leat
I am receiving the following error when patching two point vector maps: v.patch -e in=SBC1,SBC2 out=SBC_0607 Patching vector map s...@craig... DBMI-SQLite driver error: Error in sqlite3_step(): SQL logic error or missing database ERROR: Cannot insert new record: 'insert into SBC_0607 values (

Re: [GRASS-user] Vector map attributes

2009-03-30 Thread Craig Leat
Hi Thanks for the comments. Moritz: I have a vector map with points representing latrines and each point has an attribute describing the place name. I ran v.edit to snap points with a threshold of 5m Because you think that these points are actually duplicates, or because you want the information

[GRASS-user] Vector map attributes

2009-03-25 Thread Craig Leat
Hello I have a vector map with points representing latrines and each point has an attribute describing the place name. I ran v.edit to snap points with a threshold of 5m and v.info reports 7296 features for the cleaned map. I now wish to count the number of latrines in each place, so I ran: echo

Re: [GRASS-user] qgis + grass-plugin = gdal-problem (update)

2009-03-01 Thread Craig Leat
Hi Achim Achim wrote: starting qgis(1.0.1) with grass64 I can open a grass location, but when I open a rastermap, qgis terminates with following error: qgis: symbol lookup error: /usr/lib/gdalplugins/gdal_GRASS.so: undefined symbol: G_no_gisinit When I start qgis with grass63 installed,

Re: [GRASS-user] wxpython: vdigit crash

2009-02-15 Thread Craig Leat
Hi My problem with wxpython vdigit crashing was solved by deleting the symbolic link to: /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_gdi_.so This symbolic link was created during the early days of vdigit when it was listed as a requirement. I have noticed another user [1] apparently

Re: [GRASS-user] wxpython: vdigit crash

2009-02-03 Thread Craig Leat
Hi Martin Martin Landa: right, here it works;-) Try to enable also vdigit debuging export GRASS_WX_DEBUG=3 g.gisenv set=DEBUG=3 last 50 lines of debug output should be enough... 50 lines of debug output attached. This snippet looks strange (the last two values are very LARGE): D3/3:

[GRASS-user] wxpython: vdigit crash

2009-02-02 Thread Craig Leat
Hi I am using the wxpython gui in GRASS 6.5 and all seems to work well except the vector digitizer. Any attempt to digitize a new or existing vector crashes the gui. I have built from source (on Ubuntu 7.10) and expect that I've done something silly while building. Please give me a hint as to

RE: [GRASS-user] profile tools in GRASS GIS 6.4.ORC2 (Solved)

2009-02-01 Thread Craig Leat
Hi Jhon Ortiz wrote: Im working with grass 6.4.0RC2 in Ubuntu 8.04 [and using wxpython] I tried Interactively create profile of a raster map. I drew Profile transect with the mouse in map display, but when I make click in the profile button to create the profile, don't display anything and

Re: [GRASS-user] Character encoding problem

2009-01-21 Thread Craig Leat
Hi Glynn wrote: I can't comment on GDAL/OGR issues, but the display library will accept data in any encoding recognised by iconv[1] when using FreeType fonts. You just need to specify the encoding via the charset= option. [1] Provided that GRASS was built to use iconv(); this is

Re: [GRASS-user] Compile grass6_devel with ffmpeg support?

2008-11-24 Thread Craig Leat
Nikos wrote: However, this file [avformat.h] is not installed at least when installing ffmpeg from the ubuntu repositories. I will give another try to compile ffmpeg from its source... but I don't think I'll get to it these days. I'm on ubuntu 7.10 32-bit (different from your system), but

Re: [GRASS-user] Polish format?

2008-11-17 Thread Craig Leat
Hi Richard Richard Chirgwin wrote: Hi - has anyone got experience in importing files in what's called Polish format into Grass-GIS? If you have access to a Windows machine you could try [1] a polish to shape converter. [1] http://www.msh-tools.com/Ptxt2shp.html Craig

Re: [GRASS-user] Construction in grass

2008-11-08 Thread Craig Leat
Hi Torsten Torsten Eckart wrote: Hallo, could anyone give me a hint how to construct in grass on the best way? I want to draw dams in an drainage stream system , they have to have especial withs and heights. How to construct the streams the best way?Than I want to calculate the amount of

Re: [GRASS-user] dem - long section

2008-11-01 Thread Craig Leat
Hi Edmondo Edmondo wrote: there is in grass (or in QGis ?) a way to extracting long section along a transect with annotation? E.g : elevation, station, etc... This has come up a few times in the past: GRASS options: http://article.gmane.org/gmane.comp.gis.grass.user/23786/match=profile

Re: [GRASS-user] working with orthophotos

2008-10-16 Thread Craig Leat
Hi Christian christian Brandt wrote: I imported a georeferenced orthophoto (tif with tfw) with all bands (RGB) using r.in.gdal. The result (3 raster layers red, green and blue) looks like very , what means that there is not much to recognize any more on the orthophoto. Any suggestions

[GRASS-user] readline completion under bash

2008-09-19 Thread Craig Leat
Hi I'm working on my paper for FOSS4G2008 and was about to say something about the lack of command completion in GRASS when I remembered seeing the option --with-readline in the configure script. I can't find anything on readline (besides the configure option) in the html docs and I'm left

Re: [GRASS-user] readline completion under bash

2008-09-19 Thread Craig Leat
Hamish wrote: http://grass.osgeo.org/wiki/GRASS_AddOns#Readline_completion http://www.sorokine.info/grass-complete/ http://grass.osgeo.org/download/addons.php compiled-in readline support is only used with r.mapcalc. I don't know if it will work with GRASS 6, maybe a keen user might like

[GRASS-user] gmath and LAPACK/BLAS dependency

2008-09-08 Thread Craig Leat
Hi I'm having trouble linking in /grass6_devel/imagery/i.ortho.photo/photo.2image, see [1] for details and I think my trouble may be caused by gmath and LAPACK/BLAS. My configure script contains --with-blas=no --with-lapack=no based on the comment Note: LAPACK/BLAS support is intended for future

[GRASS-user] Linking error in photo.2image

2008-09-06 Thread Craig Leat
Hi When running make in /grass6_devel/imagery/i.ortho.photo/photo.2image I get a linking error as follows: /usr/bin/ld: OBJ.i686-pc-linux-gnu/mark.o(.text+0x94a): unresolvable R_386_32 relocation against symbol `line' /usr/bin/ld: final link failed: Nonrepresentable section on output collect2:

[GRASS-user] v.digspline replacement

2008-08-13 Thread Craig Leat
Hi The replacement for v.digspline is v.generalize? I'm unsure because this thread seems to indicate v.digspline used xmons (my guess) and was interactive? http://www.nabble.com/v.digit-in-Grass5.0b-to8602457.html#a8602458 v.digspline also existed in 5.3? If so, it should appear in the porting

Re: [GRASS-user] image to image registration

2008-07-21 Thread Craig Leat
Hi Wesley Wesley Roberts wrote: I have a mosaiced digital aerial photograph data set and an orthorecitifed and atmospherically corrected Ikonos data set of the same area. I would like to register the Ikonos data (4m res) to the digital aerial photography (1m res). Is this task possible in

Re: [GRASS-user] installation problems in user space

2008-06-26 Thread Craig Leat
Hi On Thu, 26 Jun 2008 14:00:21 +0200, Abhinandan Raghavan wrote: I'm having trouble with installing grass in my directory. I would like to install grass locally as I don't have root privileges. I've completed installing proj4 in a local area but cannot get grass to realize that it has been

Re: [GRASS-user] Panning with r.profile or the gis.m profiler

2008-05-15 Thread Craig Leat
Michael Barton wrote: You can pan the display, but not at the same time you are trying to draw a profile line. So then the best that can be done is to run multiple transects with r.profile while outputting a file with co-ordinates, then stitch them together and calculate the chainage

[GRASS-user] Panning with r.profile or the gis.m profiler

2008-05-13 Thread Craig Leat
Hi Is there a way to pan in the map display while using r.profile or the gis.m profile tool? I'm using GRASS 6.3.0RC3. Regards Craig ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Question about MODIS band 5 destriping?

2008-04-10 Thread Craig Leat
Glynn Clements wrote: The main issue is that you can't store both the real and imaginary components (or, alternatively, magnitude and phase) in a single map. Hi It appears to me that this could be done if the raster maps supported layers, AKA surfaces in my work group. Regards Craig

Re: [GRASS-user] Fixing Collared DRGs

2008-04-02 Thread Craig Leat
Tom Russo wrote: ... v.to.rast input=o48112d2_bounds output=o48112d2_bounds use=val value=1 (this one generates a raster that's 1 inside the neatline, null outside) echo o48112d2_withoutcollar=if(!isnull(o48112d2_bounds),o48112d2_withcollar,null()) | r.mapcalc (this

Re: [GRASS-user] Failure to display raster maps (no problems with vectors)

2008-03-20 Thread Craig Leat
Hi Roy I'm not sure what your problem might be if other apps work correctly, but I can offer some encouragement that this all works properly with my system(s). Are you running the latest versions of nxnode, nxserver and nxclient? Try upgrading those apps if you can and while you're at it you

[GRASS-user] v.digit background colour

2008-02-28 Thread Craig Leat
Hi It appears that the v.digit option: settings - Symbology - Background is broken, because I am unable to change the background colour. A further annoyance is that the background colour changes from white to cyan whenever a background vector is added. If a raster is added the background

[GRASS-user] Re: v.digit background colour

2008-02-28 Thread Craig Leat
Craig Leat wrote: Hi It appears that the v.digit option: settings - Symbology - Background is broken, because I am unable to change the background colour. A further annoyance is that the background colour changes from white to cyan whenever a background vector is added. If a raster is added

Re: [GRASS-user] v.split: Strange behaviour

2008-02-21 Thread Craig Leat
Jachym Cepicky wrote: hi, what about v.edit ? # new file with vertexes v.to.points in=roads out=tmp -v # copy original file g.copy vect=roads,myroads # run v.edit for line in `v.out.ascii tmp`; do eval `echo $line|sed -e s/^/x=/ -e s/|/; y=/ -e s/|.*//`; echo $line;

Re: [GRASS-user] Building wxgrass vdigit

2008-01-30 Thread Craig Leat
Martin Landa wrote: Hi Craig, 2008/1/28, Craig Leat [EMAIL PROTECTED]: I am trying out the new wxpython gui from trunk for the first time and I am running into some trouble with building vdigit. My system is an i586 32 bit Ubuntu Gutsy (7.10) box and I have built the 6.3 RC3 branch from

Re: [GRASS-user] Building wxgrass vdigit

2008-01-30 Thread Craig Leat
Craig Leat wrote: I'll try building the whole of GRASS again, just in case I missed something and will report back. Thanks for the help so far. Hi Glynn I have just completed the make distclean, ./configure, make sequence while ignoring the instructions in Martin's README. Configure

[GRASS-user] v.in.ogr fails on dbf with long column names

2008-01-11 Thread Craig Leat
Hi I have a shapefile and attributes in a dbf file. The dbf has two columns where the first ten characters of the column names are identical. The dbf driver appears to only consider the first ten letters of the name and so v.in.ogr fails reporting that two columns have the same name. Is there a

Re: [GRASS-user] v.in.ogr fails on dbf with long column names

2008-01-11 Thread Craig Leat
functionality: http://sqlitebrowser.sourceforge.net/index.html ~ Eric. Daniel Victoria wrote: On Jan 11, 2008 10:42 AM, Craig Leat [EMAIL PROTECTED] wrote: BTW the dbf is too big (94,000 rows) to load into OpenOffice Calc. How about OpenOfice Base? It appears to open dBase files

[GRASS-user] g.mremove leaves directories and files in /group/

2008-01-09 Thread Craig Leat
Hi I ran g.mremove to purge a bunch of rasters with three bands. g.list Indicates that the files were deleted but I still see references to the deleted files in the /grassdata/../../group/ directory. The add GRASS raster layer dialog of qgis lists these bogus groups as being available. Any

Re: [GRASS-user] Working with a large number of maps

2008-01-09 Thread Craig Leat
JerryNelson wrote: When you get this all working, please post a description of the final outcome in the grass wiki. Thanks, Jerry Hi I have added a new entry to the FAQ to the best of my understanding of the problem and its solutions. Please visit

Re: [GRASS-user] Working with a large number of maps

2007-12-19 Thread Craig Leat
Glynn Clements wrote: Craig Leat wrote: I have 139 high resolution images, which I need to use as a background map for some digitizing work. How do the individual maps relate to the overall region? If they are (approximately) tiles, I would suggest using a hierarchical approach

Re: [GRASS-user] Working with a large number of maps

2007-12-18 Thread Craig Leat
Martin Landa wrote: Hi, 2007/12/18, Craig Leat [EMAIL PROTECTED]: [snip] What kind of verbose output are you expecting? Martin Hi I don't know what to expect, but was hoping for something like: r.patch progress: Currently processing map: abc.red, progress: 80% Total progress: 15

Re: [GRASS-user] Working with a large number of maps

2007-12-18 Thread Craig Leat
Craig wrote: snip I can think of three workarounds. 1. Enter Rainer Krug and MapServer. I don't think my time frames allow for learning another software suite right now. 2. Use a script to build a .grc file with a group for gis.m. Before attempting this I would like to know

[GRASS-user] r.patch example in the manual

2007-12-17 Thread Craig Leat
Hello List I'm trying the r.patch example given in the manual for 6.3.0RC3 and there appears to be a problem passing the output from g.mlist to g.region. So, in fact, I haven't managed to try r.patch yet. I followed the example and this is what I got back: GRASS 6.3.0RC3 (msunduzi_lo31):~

Re: [GRASS-user] r.patch example in the manual

2007-12-17 Thread Craig Leat
Martin Landa-2 wrote: 2007/12/17, Craig Leat: I'm trying the r.patch example given in the manual for 6.3.0RC3 Instead of ' use ` ... MAPS=`g.mlist type=rast sep=, pat=*.red` Thanks Martin. Another question: I notice the pattern option to g.mlist has been shortened to pat

[GRASS-user] Working with a large number of maps

2007-12-17 Thread Craig Leat
Hi I have 139 high resolution images, which I need to use as a background map for some digitizing work. Loading 139x3 layers into gis.m is a real pain and I can think of three workarounds. 1. Enter Rainer Krug and MapServer. I don't think my time frames allow for learning another software