[GRASS-user] wxPython in 6.3.0RC4?
Hi list, I've just installed the RC4 version, but wxgrass is not installed. I was wondering why then the release news mentions that "Additionally, this release debuts a new graphical GIS manager and menu system, while an improved version of the old GUI display manager has been retained for legacy support." Is the SVN version the one that has wxgrass in it? Was some kind of flag missing when I compiled grass? Best, Jaime - ¡Capacidad ilimitada de almacenamiento en tu correo! No te preocupes más por el espacio de tu cuenta con Correo Yahoo!: http://correo.espanol.yahoo.com/___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] problems starting wxPython gui using wingrass
[EMAIL PROTECTED] wrote: > (1) > > gcc -I/usr/local/src/grass_trunk/dist.i686-pc-linux-gnu/include -g -Wall > -fPIC -DPACKAGE=\""grasslibs"\" -I/usr/include/gdal > -DPACKAGE=\""grasslibs"\"-I/usr/include/ffmpeg > -I/usr/local/src/grass_trunk/dist.i686-pc-linux-gnu/include -o > OBJ.i686-pc-linux-gnu/gsd_img_mpeg.o -c gsd_img_mpeg.c > In file included from /usr/include/ffmpeg/avformat.h:36, > from gsd_img_mpeg.c:10: > /usr/include/ffmpeg/avcodec.h:2447: warning: �ImgReSampleContext� is > deprecated > /usr/include/ffmpeg/avcodec.h:2450: warning: �ImgReSampleContext� is > deprecated > In file included from gsd_img_mpeg.c:10: > /usr/include/ffmpeg/avformat.h:282: warning: �AVFrac� is deprecated > gsd_img_mpeg.c:11:21: error: swscale.h: No such file or directory > gsd_img_mpeg.c:19: error: �SWS_BICUBIC� undeclared here (not in a > function) > gsd_img_mpeg.c: In function �add_video_stream�: > gsd_img_mpeg.c:39: warning: �return� with no value, in function returning > non-void > gsd_img_mpeg.c: In function �write_video_frame�: > gsd_img_mpeg.c:155: warning: unused variable �img_convert_ctx� > make: *** [OBJ.i686-pc-linux-gnu/gsd_img_mpeg.o] Error 1 > [EMAIL PROTECTED]:/usr/local/src/grass_trunk/lib/ogsf$ This one is because you need a newer version of FFMPEG (or remove the --with-ffmpeg switch). Error #4 (NVIZ) is a consequence of this; OGSF fails to build due to FFMPEG issues, and NVIZ fails because OGSF is missing. As Michael points out, (2) and (3) are because you need to use --with-python (which requires SWIG) to build the wxPython digitising module. -- Glynn Clements <[EMAIL PROTECTED]> ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] How to list all unique pixel values (of a raster) covered by polygons (areas) for each polygon separately(?)
Giovanni, thank you for your proposal. The link to the FAQ (the one that Jose provided) looks like a solution. But your idea is clever as well and I had a similar way in my mind. If I got it correct you suggest: 1. VectorTargetAreas ~~~v.to.rast (based on unique attribute like cat or FID~~~> RasterTargetAreas (all pixels of a "TargetArea" have now the same value 2.MASK out everything besides the "TargetAreas" ---looping to create as many MASKS as the the number of the "TargetAreas" 3. For each MASK run r.stats 4 (I would also like to have) add the output list(s) as a new table (column pixval) into the initial VectorTargetAreas (with db.connect, db.addcol, etc). Let's say for a polygons which covers 20 pixels it would be like: FID - cat - pixval 1- 1 -200 2- 1 -198 3- 1 -234 ..- .. - . 20 - 1 -765 Is it possible to put all this together? r.stats and output into a new column (pixval) On Thu, 2008-01-17 at 18:25 +0100, G. Allegri wrote: > Just a rapid idea. > You could make just one rasterized map of your polygons and then > insert in a loop this, giving each pixel a unique category value: > > r.mapcalc "MASK = if(raster=$i,1,null())" > with $1 the cat value (deriving from you original polygon) > > and then run r.stats, which will work only for the un-masked pixels. > > I don't have time to try this method, hope it helps. > GIovanni > > 2008/1/17, [EMAIL PROTECTED] > <[EMAIL PROTECTED]>: > > Salut Jose! > > > > This is what I am doing... and I only have 7 polygons - so > > it is ok. > > > > But if I have 50 polygons... I am not so sure how to script > > it to get (finally) a table with all pixels for each unique > > polygon for 2 different images of the same location (for > > raster MODIS year 2006 and then another of the same area > > MODIS 2007!). > > > > I want to run a regression with the pixel values... (pairs > > of 2006 and 2007 values). > > > > Thank you, > > > > Nikos. > > > > > > > > On Thu, 17 Jan 2008 16:42:31 + > > "Jose Gomez-Dans" <[EMAIL PROTECTED]> wrote: > > > On Jan 17, 2008 4:30 PM, > > > <[EMAIL PROTECTED]> wrote: > > > > > > > How can I get listed all unique pixel values enclosed > > > in > > > > each of the polygons I digitised (and for which the > > > univ. > > > > stats are calculated)? > > > > > > > > > > Can't you just rasterise your polygons, and use that as a > > > mask with > > > r.mapcalc? You can loop around in your shell. I tend to > > > do that with python, > > > but it's similar in GRASS. You can also try starspan. > > > Or < > > > http://grass.gdf-hannover.de/wiki/Aggregate_Values> > > > > > > Cheers, > > > Jose > > > > > > > > > > > > -- > > > Centre for Terrestrial Carbon Dynamics > > > Department of Geography, University College London > > > Gower Street, London WC1E 6BT, UK > > > > > > . > > Nikos Alexandris - Ph.D. Candidate > > . > > Department of Remote Sensing > >and > > Landscape Information Systems > > (FeLIS) > > . > > Faculty of Forestry and Natural Environment > > Albert-Ludwigs-University Freiburg > > . > > Tel. +49 (0) 761 203 3697 > > Fax. +49 (0) 761 203 3701 > > Skype: Nikos.Alexandris > > . > >Address: Tennenbacher str. 4 > > D-79106 Freiburg i. Br. > > Germany > > . > > ___ > > grass-user mailing list > > grass-user@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/grass-user > > -- Nikos Alexandris . Department of Remote Sensing & Landscape Information Systems Faculty of Forestry & Environmental Sciences, Albert-Ludwigs-University Freiburg . Tel. +49 (0) 761 203 3697 / Fax. +49 (0) 761 203 3701 / Skype: Nikos.Alexandris . Address: Tennenbacher str. 4, D-79106 Freiburg i. Br., Germany signature.asc Description: This is a digitally signed message part ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Strategies for using v.surf.rst (getting rid of those segmentation boxes)
Jonathan Greenberg wrote: > I'm using v.surf.rst, and I'm wondering what the best strategies for > getting rid of those rectangular segmentation boxes are, while also > not having the high local peaks around lone sample points? Thanks! this is probably not much help, but a uniform distribution of input points is the best solution. it doesn't deal well with a high density of points right next to a low density area. for your current data try increasing npmin, segmax. r.surf.nnbathy from the wiki addons page is another option. Hamish Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Strategies for using v.surf.rst (getting rid of those segmentation boxes)
Grassers: I'm using v.surf.rst, and I'm wondering what the best strategies for getting rid of those rectangular segmentation boxes are, while also not having the high local peaks around lone sample points? Thanks! --j -- Jonathan A. Greenberg, PhD Postdoctoral Scholar Center for Spatial Technologies and Remote Sensing (CSTARS) University of California, Davis One Shields Avenue The Barn, Room 250N Davis, CA 95616 Cell: 415-794-5043 AIM: jgrn307, MSN: [EMAIL PROTECTED], Gchat: jgrn307 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Vector drawings in PDF -> converting them
Grass 6.2 appears to be even less agreeable to the DXF format that Inkscape writes than it was to the one Illustrator did. I'm still playing with it, but no luck yet. Dylan Beaudette wrote: On Thursday 17 January 2008 11:10:39 am Kurt Heston wrote: Dylan, Will do. Is there a specific feature I should look for that solves my specific problem? --K Kurt- Well, I would take a look at all of the vector (path) tools available in Inkscape. I have not used to to work with much GIS data, but I do know that it can import PDF data as vector (path) primitives. Feel free to post your findings back to the list. Cheers, Dylan Dylan Beaudette wrote: On Wednesday 16 January 2008 11:22:02 pm Kurt Heston wrote: I have a TON of vector drawings available to me in PDF format that I'm georeferencing. So far, I'm doing it by converting them to PNGs and using r.to.vect to massage them. This is really tedious and the data isn't as clean as a straight vector conversion would be. In Illustrator, I can see that all the vector math is there. That is, the PDF isn't simply a wrapper around raster data. I've tried opening the PDFs in Illustrator and exporting them as DXFs, but Grass ignores a lot of the data when I do this...they look very different in Grass once imported. I can export them as SVG from Illustrator, but surprisingly, there doesn't appear to be a single open-source tool available out there that converts SVG into some mainstream GIS file format. Does anyone have experience doing this type of conversion? Pointers welcome. ___ Check out Inkscape. Dylan ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Problem with r.out.ascii
PikoBoZ wrote: > Im trying to use the r.out.ascii command but it fails > Got an existing mapset, with some elevation rasters in it (.tiff > converted in grass raster) > I'd like to extract the xyz values of a DEM to txt file > I use this syntax in the grass shell: > [code] > r.out.ascii input=mnt output=testmnt.txt > [/code] > testmnt.txt is created and the header is written,but the x,y,z values > are > missing, only stars appear in it, like this: > [code] > north: 2787570 > south: 1546950 > east: 1284500 > west: -47544.1 > rows: 931 > cols: 999 > * * * * * * * * * * * * * > * * * * * * * * * * * * * > * * * * * * * * * * * * * > [/code] > Is anybody understands what happens? r.out.ascii exports a rectangular array of values (like for a spreadsheet with x & y axes), in your above example 931x999 cells. The "*"s represent NULL data. Raster ops. work on the current zoom region. see the g.region module. e.g. set to the region to the exact extent of the raster map with: g.region rast=mnt > Does a r.out.xyz command exist? or any other way to get x,y,z values > from a raster? yes, there is a r.out.xyz, but only in grass 6.3. http://grass.ibiblio.org/grass63/manuals/html63_user/r.out.xyz.html http://trac.osgeo.org/grass/browser/grass/trunk/scripts/r.out.xyz but that is just a more obvious alias for "r.stats -1gn", so for GRASS 6.2 you can use that. Hamish Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
RE: [GRASS-user] i.landsat.rgb problem
Leonardo wrote: > > i tried i.landsat.rgb on GRASS 6.3 but I have this error message > > and the color tables of the three raster are setted with all > > values white. > > I obtained this three brov raster from i.fusion.brovey applied on > > Landsat images. > > > >i.landsat.rgb -p [EMAIL PROTECTED] [EMAIL PROTECTED] > >[EMAIL PROTECTED] strength=90 > >Processing [EMAIL PROTECTED] .. > >/usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 36.9801: integer > >expression expected > >/usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 15.7707: integer > >expression expected > >Processing [EMAIL PROTECTED] .. > >/usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 39.6825: integer > >expression expected > >/usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 15.1483: integer > >expression expected > >Processing [EMAIL PROTECTED] .. > >/usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 24.107: integer > >expression expected > >/usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 13.: integer > >expression expected > >Color table for <[EMAIL PROTECTED]> set to rules > >Color table for <[EMAIL PROTECTED]> set to rules > >Color table for <[EMAIL PROTECTED]> set to rules i.landsat.rgb is designed for LANDSAT-5 and 7 color band data. ie 0-255 CELL maps (no floating point). I'll look into that later. Philipp Steigenberger wrote: > "i.fusion.brovey -l ms1=20 ms2=40 ms3=50 pan=80 outputprefix=ls7 --o" > the output maps I get are gray. Three different grays, but not like > it should look like. Those 3 maps are individual red, green, and blue channels. Display with d.rgb or combine with r.composite (but you'll lose hard fought information that way). > I'm not admin on my system so I have no idea if the script (*.diff) > from Martin is working in my case too. > > Same problem in another color? ;o) No. Hamish Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Vector drawings in PDF -> converting them
On Thursday 17 January 2008 11:10:39 am Kurt Heston wrote: > Dylan, > > Will do. Is there a specific feature I should look for that solves my > specific problem? > > --K Kurt- Well, I would take a look at all of the vector (path) tools available in Inkscape. I have not used to to work with much GIS data, but I do know that it can import PDF data as vector (path) primitives. Feel free to post your findings back to the list. Cheers, Dylan > > Dylan Beaudette wrote: > > On Wednesday 16 January 2008 11:22:02 pm Kurt Heston wrote: > >> I have a TON of vector drawings available to me in PDF format that I'm > >> georeferencing. So far, I'm doing it by converting them to PNGs and > >> using r.to.vect to massage them. This is really tedious and the data > >> isn't as clean as a straight vector conversion would be. In > >> Illustrator, I can see that all the vector math is there. That is, the > >> PDF isn't simply a wrapper around raster data. > >> > >> I've tried opening the PDFs in Illustrator and exporting them as DXFs, > >> but Grass ignores a lot of the data when I do this...they look very > >> different in Grass once imported. I can export them as SVG from > >> Illustrator, but surprisingly, there doesn't appear to be a single > >> open-source tool available out there that converts SVG into some > >> mainstream GIS file format. > >> > >> Does anyone have experience doing this type of conversion? Pointers > >> welcome. > >> ___ > > > > Check out Inkscape. > > > > Dylan > > ___ > grass-user mailing list > grass-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-user -- Dylan Beaudette Soil Resource Laboratory http://casoilresource.lawr.ucdavis.edu/ University of California at Davis 530.754.7341 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Vector drawings in PDF -> converting them
Dylan, Will do. Is there a specific feature I should look for that solves my specific problem? --K Dylan Beaudette wrote: On Wednesday 16 January 2008 11:22:02 pm Kurt Heston wrote: I have a TON of vector drawings available to me in PDF format that I'm georeferencing. So far, I'm doing it by converting them to PNGs and using r.to.vect to massage them. This is really tedious and the data isn't as clean as a straight vector conversion would be. In Illustrator, I can see that all the vector math is there. That is, the PDF isn't simply a wrapper around raster data. I've tried opening the PDFs in Illustrator and exporting them as DXFs, but Grass ignores a lot of the data when I do this...they look very different in Grass once imported. I can export them as SVG from Illustrator, but surprisingly, there doesn't appear to be a single open-source tool available out there that converts SVG into some mainstream GIS file format. Does anyone have experience doing this type of conversion? Pointers welcome. ___ Check out Inkscape. Dylan ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] topological error
Hi, 2008/1/17, Leonardo Lami <[EMAIL PROTECTED]>: > I have a little topological error on a GRASS vector (that I linked to > the mail). > It is an example square vector with a topological error in the left top > angle. > > I try to clean it with the various options of v.clean but without > results and v.digit doesn't show it with a different color when I edit > the vector. > > How can remove this type of error? v.clean in=errore out=errore_clean tool=break,rmarea thresh=0,0.5 --o first to break (split line on each intersection) lines/boundaries then to remove small areas. Take care about threshold value used for removing small areas. Martin -- Martin Landa <[EMAIL PROTECTED]> * http://gama.fsv.cvut.cz/~landa * ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] problems starting wxPython gui using wingrass
If the digitizing module needs SWIG to compile, I suggest that the developers of the digitizing module do the SWIG processing and have those preprocessed files in the source, so that endusers compiling GRASS don't have to worry about yet another developer-only extra. I don't know how common or "standard" SWIG is on other systems, but it's not part of the older OSX developer tools (Xcode 2) still in wide use, though it was added to the Leopard developer tools (Xcode 3). GDAL and MapServer do this. Qgis does this at least for the release source. On Jan 17, 2008, at 11:55 AM, Michael Barton wrote: I have no idea about the others. But the wxPython errors are because you need to install swig and configure --with-python in order to create the new digitizing module. The rest of the gui looks like it's OK. - William Kyngesburye http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] problems starting wxPython gui using wingrass
Hi, due to the problems, I disabled compiling vdigit by default for now. It can be compiled manually, see README for detailed information. http://trac.osgeo.org/grass/changeset/29739 Martin 2008/1/17, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Thanks a lot! > > I will check this out later... or maybe tomorrow! > > On Thu, 17 Jan 2008 18:49:05 +0100 > "Martin Landa" <[EMAIL PROTECTED]> wrote: > > Hi, > > > > related to wxpython > > > > make -C vdigit || echo > > /usr/local/src/grass_trunk/gui/wxpython/vdigit >> /usr/lo > > cal/src/grass_trunk/error.log > > make[1]: Entering directory > > `/usr/local/src/grass_trunk/gui/wxpython/vdigit' > > Makefile:27: warning: overriding commands for target > > `clean' > > ../../../include/Make/Rules.make:72: warning: ignoring > > old commands for target ` > > clean' > > swig -c++ -python -shadow grass6_wxvdigit.i > > make[1]: swig: Command not found > > make[1]: *** [grass6_wxvdigit_wrap.cxx] Error 127 > > make[1]: Leaving directory > > `/usr/local/src/grass_trunk/gui/wxpython/vdigit' > > > > 1) swig is missing (just read the error output...) > > 2) please take a look also at README > > (gui/wxpython/README) > > 3) the code in gui/wxpython/vdigit is needed only for > > experimental > > digitization tool, the rest of GUI will work even if this > > fails... > > > > Martin > > > > 2008/1/17, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]>: > > > wxgrass doesn't work. > > > > > > Error's after "make" below. > > > > > > > > > Following modules are missing the 'description.html' > > file > > > in src code: > > > > > > -- > > > GRASS GIS compilation log > > > - > > > Started compilation: Thu Jan 17 16:20:58 CET 2008 > > > -- > > > Errors in: > > > /usr/local/src/grass_trunk/lib/ogsf > > > /usr/local/src/grass_trunk/gui/wxpython/vdigit > > > /usr/local/src/grass_trunk/gui/wxpython > > > /usr/local/src/grass_trunk/visualization/nviz > > > -- > > > > > > On Thu, 17 Jan 2008 08:15:40 -0700 > > > Michael Barton <[EMAIL PROTECTED]> wrote: > > > > I'm glad that you're finally getting the correct > > code. > > > > I'm confused about it's availability too. Please let > > us > > > > know how it runs once you can get it and test it. > > > > > > > > Michael > > > > > > > > C. Michael Barton, Professor of Anthropology > > > > Director of Graduate Studies > > > > School of Human Evolution & Social Change > > > > Center for Social Dynamics & Complexity > > > > Arizona State University > > > > > > > > Phone: 480-965-6262 > > > > Fax: 480-965-7671 > > > > www: > > > > > > > > > > > > > > > > On Jan 17, 2008, at 4:54 AM, > > > > [EMAIL PROTECTED] wrote: > > > > > > > > > Thank you for the clarification (again). > > > > > > > > > > (1) ??? I can put my hand on fire (greek... or > > > > universal > > > > > expression) that I was getting an error with "svn > > up" > > > > but > > > > > now not! > > > > > > > > > > (2) Yes... trunk... (sorry for insisting). > > > > > > > > > > > > > > > On Thu, 17 Jan 2008 10:28:41 +0100 > > > > > "Martin Landa" <[EMAIL PROTECTED]> wrote: > > > > >> Hi, > > > > >> > > > > >> 2008/1/16, Nikos Alexandris > > > > >> <[EMAIL PROTECTED]>: > > > > >>> I am sorry for bothering again. > > > > >>> > > > > >>> I am on ubuntu. > > > > >>> > > > > >>> I updated (sudo svn up) from within > > > > >> > > > > >> general note, why are you running 'svn up' as > > sudo?? > > > > >> > > > > >>> the /usr/local/src/MyGRASSsourceDirectory > > > > >>> Configured-compilled-installed. > > > > >>> > > > > >>> No wxgrass anywhere.. only a few irrelevant > > scripts > > > > >> under... : > > > > >>> > > > > >>> GRASS 6.3.0RC4 > > > > >> > > (Peloponnese_HGRS87):/usr/local/grass-6.3.0RC4/etc/gui > > > > > > > > > >>> ls > > > > >>> icons scripts > > > > >>> > > > > >>> So... I go in /usr/loca/src/MyGRASSsrcDir/gui > > > > >>> > > > > >>> directory and I only find "wxpython" as a folder > > > > which > > > > >> does not contain > > > > >>> any "wxgrass" script. > > > > >>> > > > > >>> GRASS 6.3.0RC4 > > > > >>> > > > > >> > > > > > > > > > > > > > > > (Peloponnese_HGRS87):/usr/local/src/release_20080109_grass_6_3_0RC4/ > > > > > > > > > gui/wxpython > > > > >>> ls > > > > >>> archive gm.wxp grass-interface.dtd > > mapdisp.py > > > > >> scripts > > > > >>> gism.py grassgui.py Makefile > > render.py > > > > >> > > > > >> Once more, in grass 6.3 is old wxpython code. Use > > > > >> svn-trunk instead. > > > > >> > > > > >> svn checkout > > https://svn.osgeo.org/grass/grass/trunk > > > > >> grass_trunk > > > > >> > > > > >> Martin > > > > >> > > > > >> -- > > > > >> Martin Landa <[EMAIL PROTECTED]> * > > > > >> http://gama.fsv.cvut.cz/~landa * > > > > > > > > > > > > > . > > > Nikos Alexandris - Ph.D. Candidate > > > . > > > Department of Remote Sensing > > >and > > >
Re: [GRASS-user] problems starting wxPython gui using wingrass
I have no idea about the others. But the wxPython errors are because you need to install swig and configure --with-python in order to create the new digitizing module. The rest of the gui looks like it's OK. Michael __ Michael Barton, Professor Professor of Anthropology Director of Graduate Studies School of Human Diversity & Social Change Center for Social Dynamics & Complexity Arizona State University Tempe, AZ 85287-2402 USA voice: 480-965-6262; fax: 480-965-7671 www: http://www.public.asu.edu/~cmbarton On Jan 17, 2008, at 10:04 AM, [EMAIL PROTECTED] wrote: FYI attached all (4) errors as a text file. On Thu, 17 Jan 2008 09:00:31 -0700 Michael Barton <[EMAIL PROTECTED]> wrote: Nikos, You need to CD to each directory with a problem and type make to see what kind of errors you're getting. It looks like you've got errors in several modules. Michael C. Michael Barton, Professor of Anthropology Director of Graduate Studies School of Human Evolution & Social Change Center for Social Dynamics & Complexity Arizona State University Phone: 480-965-6262 Fax: 480-965-7671 www: On Jan 17, 2008, at 8:29 AM, [EMAIL PROTECTED] wrote: wxgrass doesn't work. Error's after "make" below. Following modules are missing the 'description.html' file in src code: -- GRASS GIS compilation log - Started compilation: Thu Jan 17 16:20:58 CET 2008 -- Errors in: /usr/local/src/grass_trunk/lib/ogsf /usr/local/src/grass_trunk/gui/wxpython/vdigit /usr/local/src/grass_trunk/gui/wxpython /usr/local/src/grass_trunk/visualization/nviz -- On Thu, 17 Jan 2008 08:15:40 -0700 Michael Barton <[EMAIL PROTECTED]> wrote: I'm glad that you're finally getting the correct code. I'm confused about it's availability too. Please let us know how it runs once you can get it and test it. Michael C. Michael Barton, Professor of Anthropology Director of Graduate Studies School of Human Evolution & Social Change Center for Social Dynamics & Complexity Arizona State University Phone: 480-965-6262 Fax: 480-965-7671 www: On Jan 17, 2008, at 4:54 AM, [EMAIL PROTECTED] wrote: Thank you for the clarification (again). (1) ??? I can put my hand on fire (greek... or universal expression) that I was getting an error with "svn up" but now not! (2) Yes... trunk... (sorry for insisting). On Thu, 17 Jan 2008 10:28:41 +0100 "Martin Landa" <[EMAIL PROTECTED]> wrote: Hi, 2008/1/16, Nikos Alexandris <[EMAIL PROTECTED]>: I am sorry for bothering again. I am on ubuntu. I updated (sudo svn up) from within general note, why are you running 'svn up' as sudo?? the /usr/local/src/MyGRASSsourceDirectory Configured-compilled-installed. No wxgrass anywhere.. only a few irrelevant scripts under... : GRASS 6.3.0RC4 (Peloponnese_HGRS87):/usr/local/grass-6.3.0RC4/etc/gui ls icons scripts So... I go in /usr/loca/src/MyGRASSsrcDir/gui directory and I only find "wxpython" as a folder which does not contain any "wxgrass" script. GRASS 6.3.0RC4 (Peloponnese_HGRS87):/usr/local/src/release_20080109_grass_6_3_0RC4/ gui/wxpython ls archive gm.wxp grass-interface.dtd mapdisp.py scripts gism.py grassgui.py Makefile render.py Once more, in grass 6.3 is old wxpython code. Use svn-trunk instead. svn checkout https://svn.osgeo.org/grass/grass/trunk grass_trunk Martin -- Martin Landa <[EMAIL PROTECTED]> * http://gama.fsv.cvut.cz/~landa * . Nikos Alexandris - Ph.D. Candidate . Department of Remote Sensing and Landscape Information Systems (FeLIS) . Faculty of Forestry and Natural Environment Albert-Ludwigs-University Freiburg . Tel. +49 (0) 761 203 3697 Fax. +49 (0) 761 203 3701 Skype: Nikos.Alexandris . Address: Tennenbacher str. 4 D-79106 Freiburg i. Br. Germany . . Nikos Alexandris - Ph.D. Candidate . Department of Remote Sensing and Landscape Information Systems (FeLIS) . Faculty of Forestry and Natural Environment Albert-Ludwigs-University Freiburg . Tel. +49 (0) 761 203 3697 Fax. +49 (0) 761 203 3701 Skype: Nikos.Alexandris . Address: Tennenbacher str. 4 D-79106 Freiburg i. Br. Germany . ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.or
Re: [GRASS-user] problems starting wxPython gui using wingrass
Thanks a lot! I will check this out later... or maybe tomorrow! On Thu, 17 Jan 2008 18:49:05 +0100 "Martin Landa" <[EMAIL PROTECTED]> wrote: > Hi, > > related to wxpython > > make -C vdigit || echo > /usr/local/src/grass_trunk/gui/wxpython/vdigit >> /usr/lo > cal/src/grass_trunk/error.log > make[1]: Entering directory > `/usr/local/src/grass_trunk/gui/wxpython/vdigit' > Makefile:27: warning: overriding commands for target > `clean' > ../../../include/Make/Rules.make:72: warning: ignoring > old commands for target ` > clean' > swig -c++ -python -shadow grass6_wxvdigit.i > make[1]: swig: Command not found > make[1]: *** [grass6_wxvdigit_wrap.cxx] Error 127 > make[1]: Leaving directory > `/usr/local/src/grass_trunk/gui/wxpython/vdigit' > > 1) swig is missing (just read the error output...) > 2) please take a look also at README > (gui/wxpython/README) > 3) the code in gui/wxpython/vdigit is needed only for > experimental > digitization tool, the rest of GUI will work even if this > fails... > > Martin > > 2008/1/17, [EMAIL PROTECTED] > <[EMAIL PROTECTED]>: > > wxgrass doesn't work. > > > > Error's after "make" below. > > > > > > Following modules are missing the 'description.html' > file > > in src code: > > > -- > > GRASS GIS compilation log > > - > > Started compilation: Thu Jan 17 16:20:58 CET 2008 > > -- > > Errors in: > > /usr/local/src/grass_trunk/lib/ogsf > > /usr/local/src/grass_trunk/gui/wxpython/vdigit > > /usr/local/src/grass_trunk/gui/wxpython > > /usr/local/src/grass_trunk/visualization/nviz > > -- > > > > On Thu, 17 Jan 2008 08:15:40 -0700 > > Michael Barton <[EMAIL PROTECTED]> wrote: > > > I'm glad that you're finally getting the correct > code. > > > I'm confused about it's availability too. Please let > us > > > know how it runs once you can get it and test it. > > > > > > Michael > > > > > > C. Michael Barton, Professor of Anthropology > > > Director of Graduate Studies > > > School of Human Evolution & Social Change > > > Center for Social Dynamics & Complexity > > > Arizona State University > > > > > > Phone: 480-965-6262 > > > Fax: 480-965-7671 > > > www: > > > > > > > > > > > > On Jan 17, 2008, at 4:54 AM, > > > [EMAIL PROTECTED] wrote: > > > > > > > Thank you for the clarification (again). > > > > > > > > (1) ??? I can put my hand on fire (greek... or > > > universal > > > > expression) that I was getting an error with "svn > up" > > > but > > > > now not! > > > > > > > > (2) Yes... trunk... (sorry for insisting). > > > > > > > > > > > > On Thu, 17 Jan 2008 10:28:41 +0100 > > > > "Martin Landa" <[EMAIL PROTECTED]> wrote: > > > >> Hi, > > > >> > > > >> 2008/1/16, Nikos Alexandris > > > >> <[EMAIL PROTECTED]>: > > > >>> I am sorry for bothering again. > > > >>> > > > >>> I am on ubuntu. > > > >>> > > > >>> I updated (sudo svn up) from within > > > >> > > > >> general note, why are you running 'svn up' as > sudo?? > > > >> > > > >>> the /usr/local/src/MyGRASSsourceDirectory > > > >>> Configured-compilled-installed. > > > >>> > > > >>> No wxgrass anywhere.. only a few irrelevant > scripts > > > >> under... : > > > >>> > > > >>> GRASS 6.3.0RC4 > > > >> > (Peloponnese_HGRS87):/usr/local/grass-6.3.0RC4/etc/gui > > > > > > > >>> ls > > > >>> icons scripts > > > >>> > > > >>> So... I go in /usr/loca/src/MyGRASSsrcDir/gui > > > >>> > > > >>> directory and I only find "wxpython" as a folder > > > which > > > >> does not contain > > > >>> any "wxgrass" script. > > > >>> > > > >>> GRASS 6.3.0RC4 > > > >>> > > > >> > > > > > > > > > > (Peloponnese_HGRS87):/usr/local/src/release_20080109_grass_6_3_0RC4/ > > > > > > > gui/wxpython > > > >>> ls > > > >>> archive gm.wxp grass-interface.dtd > mapdisp.py > > > >> scripts > > > >>> gism.py grassgui.py Makefile > render.py > > > >> > > > >> Once more, in grass 6.3 is old wxpython code. Use > > > >> svn-trunk instead. > > > >> > > > >> svn checkout > https://svn.osgeo.org/grass/grass/trunk > > > >> grass_trunk > > > >> > > > >> Martin > > > >> > > > >> -- > > > >> Martin Landa <[EMAIL PROTECTED]> * > > > >> http://gama.fsv.cvut.cz/~landa * > > > > > > > > > . > > Nikos Alexandris - Ph.D. Candidate > > . > > Department of Remote Sensing > >and > > Landscape Information Systems > > (FeLIS) > > . > > Faculty of Forestry and Natural Environment > > Albert-Ludwigs-University Freiburg > > . > > Tel. +49 (0) 761 203 3697 > > Fax. +49 (0) 761 203 3701 > > Skype: Nikos.Alexandris > > . > >Address: Tennenbacher str. 4 > > D-79106 Freiburg i. Br. > > Germany > > . > > > > > -- > Martin Landa <[EMAIL P
Re: [GRASS-user] problems starting wxPython gui using wingrass
Hi, related to wxpython make -C vdigit || echo /usr/local/src/grass_trunk/gui/wxpython/vdigit >> /usr/lo cal/src/grass_trunk/error.log make[1]: Entering directory `/usr/local/src/grass_trunk/gui/wxpython/vdigit' Makefile:27: warning: overriding commands for target `clean' ../../../include/Make/Rules.make:72: warning: ignoring old commands for target ` clean' swig -c++ -python -shadow grass6_wxvdigit.i make[1]: swig: Command not found make[1]: *** [grass6_wxvdigit_wrap.cxx] Error 127 make[1]: Leaving directory `/usr/local/src/grass_trunk/gui/wxpython/vdigit' 1) swig is missing (just read the error output...) 2) please take a look also at README (gui/wxpython/README) 3) the code in gui/wxpython/vdigit is needed only for experimental digitization tool, the rest of GUI will work even if this fails... Martin 2008/1/17, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > wxgrass doesn't work. > > Error's after "make" below. > > > Following modules are missing the 'description.html' file > in src code: > -- > GRASS GIS compilation log > - > Started compilation: Thu Jan 17 16:20:58 CET 2008 > -- > Errors in: > /usr/local/src/grass_trunk/lib/ogsf > /usr/local/src/grass_trunk/gui/wxpython/vdigit > /usr/local/src/grass_trunk/gui/wxpython > /usr/local/src/grass_trunk/visualization/nviz > -- > > On Thu, 17 Jan 2008 08:15:40 -0700 > Michael Barton <[EMAIL PROTECTED]> wrote: > > I'm glad that you're finally getting the correct code. > > I'm confused about it's availability too. Please let us > > know how it runs once you can get it and test it. > > > > Michael > > > > C. Michael Barton, Professor of Anthropology > > Director of Graduate Studies > > School of Human Evolution & Social Change > > Center for Social Dynamics & Complexity > > Arizona State University > > > > Phone: 480-965-6262 > > Fax: 480-965-7671 > > www: > > > > > > > > On Jan 17, 2008, at 4:54 AM, > > [EMAIL PROTECTED] wrote: > > > > > Thank you for the clarification (again). > > > > > > (1) ??? I can put my hand on fire (greek... or > > universal > > > expression) that I was getting an error with "svn up" > > but > > > now not! > > > > > > (2) Yes... trunk... (sorry for insisting). > > > > > > > > > On Thu, 17 Jan 2008 10:28:41 +0100 > > > "Martin Landa" <[EMAIL PROTECTED]> wrote: > > >> Hi, > > >> > > >> 2008/1/16, Nikos Alexandris > > >> <[EMAIL PROTECTED]>: > > >>> I am sorry for bothering again. > > >>> > > >>> I am on ubuntu. > > >>> > > >>> I updated (sudo svn up) from within > > >> > > >> general note, why are you running 'svn up' as sudo?? > > >> > > >>> the /usr/local/src/MyGRASSsourceDirectory > > >>> Configured-compilled-installed. > > >>> > > >>> No wxgrass anywhere.. only a few irrelevant scripts > > >> under... : > > >>> > > >>> GRASS 6.3.0RC4 > > >> (Peloponnese_HGRS87):/usr/local/grass-6.3.0RC4/etc/gui > > > > > >>> ls > > >>> icons scripts > > >>> > > >>> So... I go in /usr/loca/src/MyGRASSsrcDir/gui > > >>> > > >>> directory and I only find "wxpython" as a folder > > which > > >> does not contain > > >>> any "wxgrass" script. > > >>> > > >>> GRASS 6.3.0RC4 > > >>> > > >> > > > > > > (Peloponnese_HGRS87):/usr/local/src/release_20080109_grass_6_3_0RC4/ > > > > > gui/wxpython > > >>> ls > > >>> archive gm.wxp grass-interface.dtd mapdisp.py > > >> scripts > > >>> gism.py grassgui.py Makefile render.py > > >> > > >> Once more, in grass 6.3 is old wxpython code. Use > > >> svn-trunk instead. > > >> > > >> svn checkout https://svn.osgeo.org/grass/grass/trunk > > >> grass_trunk > > >> > > >> Martin > > >> > > >> -- > > >> Martin Landa <[EMAIL PROTECTED]> * > > >> http://gama.fsv.cvut.cz/~landa * > > > > > . > Nikos Alexandris - Ph.D. Candidate > . > Department of Remote Sensing >and > Landscape Information Systems > (FeLIS) > . > Faculty of Forestry and Natural Environment > Albert-Ludwigs-University Freiburg > . > Tel. +49 (0) 761 203 3697 > Fax. +49 (0) 761 203 3701 > Skype: Nikos.Alexandris > . >Address: Tennenbacher str. 4 > D-79106 Freiburg i. Br. > Germany > . > -- Martin Landa <[EMAIL PROTECTED]> * http://gama.fsv.cvut.cz/~landa * ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] How to list all unique pixel values (of a raster) covered by polygons (areas) for each polygon separately(?)
Just a rapid idea. You could make just one rasterized map of your polygons and then insert in a loop this, giving each pixel a unique category value: r.mapcalc "MASK = if(raster=$i,1,null())" with $1 the cat value (deriving from you original polygon) and then run r.stats, which will work only for the un-masked pixels. I don't have time to try this method, hope it helps. GIovanni 2008/1/17, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Salut Jose! > > This is what I am doing... and I only have 7 polygons - so > it is ok. > > But if I have 50 polygons... I am not so sure how to script > it to get (finally) a table with all pixels for each unique > polygon for 2 different images of the same location (for > raster MODIS year 2006 and then another of the same area > MODIS 2007!). > > I want to run a regression with the pixel values... (pairs > of 2006 and 2007 values). > > Thank you, > > Nikos. > > > > On Thu, 17 Jan 2008 16:42:31 + > "Jose Gomez-Dans" <[EMAIL PROTECTED]> wrote: > > On Jan 17, 2008 4:30 PM, > > <[EMAIL PROTECTED]> wrote: > > > > > How can I get listed all unique pixel values enclosed > > in > > > each of the polygons I digitised (and for which the > > univ. > > > stats are calculated)? > > > > > > > Can't you just rasterise your polygons, and use that as a > > mask with > > r.mapcalc? You can loop around in your shell. I tend to > > do that with python, > > but it's similar in GRASS. You can also try starspan. > > Or < > > http://grass.gdf-hannover.de/wiki/Aggregate_Values> > > > > Cheers, > > Jose > > > > > > > > -- > > Centre for Terrestrial Carbon Dynamics > > Department of Geography, University College London > > Gower Street, London WC1E 6BT, UK > > > . > Nikos Alexandris - Ph.D. Candidate > . > Department of Remote Sensing >and > Landscape Information Systems > (FeLIS) > . > Faculty of Forestry and Natural Environment > Albert-Ludwigs-University Freiburg > . > Tel. +49 (0) 761 203 3697 > Fax. +49 (0) 761 203 3701 > Skype: Nikos.Alexandris > . >Address: Tennenbacher str. 4 > D-79106 Freiburg i. Br. > Germany > . > ___ > grass-user mailing list > grass-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-user > ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] How to list all unique pixel values (of a raster) covered by polygons (areas) for each polygon separately(?)
Salut Jose! This is what I am doing... and I only have 7 polygons - so it is ok. But if I have 50 polygons... I am not so sure how to script it to get (finally) a table with all pixels for each unique polygon for 2 different images of the same location (for raster MODIS year 2006 and then another of the same area MODIS 2007!). I want to run a regression with the pixel values... (pairs of 2006 and 2007 values). Thank you, Nikos. On Thu, 17 Jan 2008 16:42:31 + "Jose Gomez-Dans" <[EMAIL PROTECTED]> wrote: > On Jan 17, 2008 4:30 PM, > <[EMAIL PROTECTED]> wrote: > > > How can I get listed all unique pixel values enclosed > in > > each of the polygons I digitised (and for which the > univ. > > stats are calculated)? > > > > Can't you just rasterise your polygons, and use that as a > mask with > r.mapcalc? You can loop around in your shell. I tend to > do that with python, > but it's similar in GRASS. You can also try starspan. > Or < > http://grass.gdf-hannover.de/wiki/Aggregate_Values> > > Cheers, > Jose > > > > -- > Centre for Terrestrial Carbon Dynamics > Department of Geography, University College London > Gower Street, London WC1E 6BT, UK . Nikos Alexandris - Ph.D. Candidate . Department of Remote Sensing and Landscape Information Systems (FeLIS) . Faculty of Forestry and Natural Environment Albert-Ludwigs-University Freiburg . Tel. +49 (0) 761 203 3697 Fax. +49 (0) 761 203 3701 Skype: Nikos.Alexandris . Address: Tennenbacher str. 4 D-79106 Freiburg i. Br. Germany . ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] problems starting wxPython gui using wingrass
FYI attached all (4) errors as a text file. On Thu, 17 Jan 2008 09:00:31 -0700 Michael Barton <[EMAIL PROTECTED]> wrote: > Nikos, > > You need to CD to each directory with a problem and type > make to see what kind of errors you're getting. It looks > like you've got errors in several modules. > > Michael > > C. Michael Barton, Professor of Anthropology > Director of Graduate Studies > School of Human Evolution & Social Change > Center for Social Dynamics & Complexity > Arizona State University > > Phone: 480-965-6262 > Fax: 480-965-7671 > www: > > > > On Jan 17, 2008, at 8:29 AM, > [EMAIL PROTECTED] wrote: > > > wxgrass doesn't work. > > > > Error's after "make" below. > > > > > > Following modules are missing the 'description.html' > file > > in src code: > > > -- > > GRASS GIS compilation log > > - > > Started compilation: Thu Jan 17 16:20:58 CET 2008 > > -- > > Errors in: > > /usr/local/src/grass_trunk/lib/ogsf > > /usr/local/src/grass_trunk/gui/wxpython/vdigit > > /usr/local/src/grass_trunk/gui/wxpython > > /usr/local/src/grass_trunk/visualization/nviz > > -- > > > > On Thu, 17 Jan 2008 08:15:40 -0700 > > Michael Barton <[EMAIL PROTECTED]> wrote: > >> I'm glad that you're finally getting the correct code. > >> I'm confused about it's availability too. Please let > us > >> know how it runs once you can get it and test it. > >> > >> Michael > >> > >> C. Michael Barton, Professor of Anthropology > >> Director of Graduate Studies > >> School of Human Evolution & Social Change > >> Center for Social Dynamics & Complexity > >> Arizona State University > >> > >> Phone: 480-965-6262 > >> Fax: 480-965-7671 > >> www: > >> > >> > >> > >> On Jan 17, 2008, at 4:54 AM, > >> [EMAIL PROTECTED] wrote: > >> > >>> Thank you for the clarification (again). > >>> > >>> (1) ??? I can put my hand on fire (greek... or > >> universal > >>> expression) that I was getting an error with "svn up" > >> but > >>> now not! > >>> > >>> (2) Yes... trunk... (sorry for insisting). > >>> > >>> > >>> On Thu, 17 Jan 2008 10:28:41 +0100 > >>> "Martin Landa" <[EMAIL PROTECTED]> wrote: > Hi, > > 2008/1/16, Nikos Alexandris > <[EMAIL PROTECTED]>: > > I am sorry for bothering again. > > > > I am on ubuntu. > > > > I updated (sudo svn up) from within > > general note, why are you running 'svn up' as sudo?? > > > the /usr/local/src/MyGRASSsourceDirectory > > Configured-compilled-installed. > > > > No wxgrass anywhere.. only a few irrelevant scripts > under... : > > > > GRASS 6.3.0RC4 > > (Peloponnese_HGRS87):/usr/local/grass-6.3.0RC4/etc/gui > >>> > > ls > > icons scripts > > > > So... I go in /usr/loca/src/MyGRASSsrcDir/gui > > > > directory and I only find "wxpython" as a folder > >> which > does not contain > > any "wxgrass" script. > > > > GRASS 6.3.0RC4 > > > > >>> > >> > > > (Peloponnese_HGRS87):/usr/local/src/release_20080109_grass_6_3_0RC4/ > >> > >>> gui/wxpython > > ls > > archive gm.wxp grass-interface.dtd > mapdisp.py > scripts > > gism.py grassgui.py Makefile > render.py > > Once more, in grass 6.3 is old wxpython code. Use > svn-trunk instead. > > svn checkout https://svn.osgeo.org/grass/grass/trunk > grass_trunk > > Martin > > -- > Martin Landa <[EMAIL PROTECTED]> * > http://gama.fsv.cvut.cz/~landa * > >> > > > > > > . > > Nikos Alexandris - Ph.D. Candidate > > . > > Department of Remote Sensing > >and > > Landscape Information Systems > > (FeLIS) > > . > > Faculty of Forestry and Natural Environment > > Albert-Ludwigs-University Freiburg > > . > > Tel. +49 (0) 761 203 3697 > > Fax. +49 (0) 761 203 3701 > > Skype: Nikos.Alexandris > > . > >Address: Tennenbacher str. 4 > > D-79106 Freiburg i. Br. > > Germany > > . > . Nikos Alexandris - Ph.D. Candidate . Department of Remote Sensing and Landscape Information Systems (FeLIS) . Faculty of Forestry and Natural Environment Albert-Ludwigs-University Freiburg . Tel. +49 (0) 761 203 3697 Fax. +49 (0) 761 203 3701 Skype: Nikos.Alexandris . Address: Tennenbacher str. 4 D-79106 Freiburg i. Br.
Re: [GRASS-user] How to list all unique pixel values (of a raster) covered by polygons (areas) for each polygon separately(?)
On Jan 17, 2008 4:30 PM, <[EMAIL PROTECTED]> wrote: > How can I get listed all unique pixel values enclosed in > each of the polygons I digitised (and for which the univ. > stats are calculated)? > Can't you just rasterise your polygons, and use that as a mask with r.mapcalc? You can loop around in your shell. I tend to do that with python, but it's similar in GRASS. You can also try starspan. Or < http://grass.gdf-hannover.de/wiki/Aggregate_Values> Cheers, Jose -- Centre for Terrestrial Carbon Dynamics Department of Geography, University College London Gower Street, London WC1E 6BT, UK ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] How to list all unique pixel values (of a raster) covered by polygons (areas) for each polygon separately(?)
I tried to make it clear in the title... but I am not sure that it's easy to understand. Using v.rast.stats I get uni-variate statistics from a raster (in my case a MODIS image with 250m pixel size) based on polygons I digitised manually (areas). How can I get listed all unique pixel values enclosed in each of the polygons I digitised (and for which the univ. stats are calculated)? Need them for further statistical analysis... There must be a way to do this instead of creating unique raster(s) for each polygon and using r.stats... ! ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] problems starting wxPython gui using wingrass
Nikos, You need to CD to each directory with a problem and type make to see what kind of errors you're getting. It looks like you've got errors in several modules. Michael C. Michael Barton, Professor of Anthropology Director of Graduate Studies School of Human Evolution & Social Change Center for Social Dynamics & Complexity Arizona State University Phone: 480-965-6262 Fax: 480-965-7671 www: On Jan 17, 2008, at 8:29 AM, [EMAIL PROTECTED] wrote: wxgrass doesn't work. Error's after "make" below. Following modules are missing the 'description.html' file in src code: -- GRASS GIS compilation log - Started compilation: Thu Jan 17 16:20:58 CET 2008 -- Errors in: /usr/local/src/grass_trunk/lib/ogsf /usr/local/src/grass_trunk/gui/wxpython/vdigit /usr/local/src/grass_trunk/gui/wxpython /usr/local/src/grass_trunk/visualization/nviz -- On Thu, 17 Jan 2008 08:15:40 -0700 Michael Barton <[EMAIL PROTECTED]> wrote: I'm glad that you're finally getting the correct code. I'm confused about it's availability too. Please let us know how it runs once you can get it and test it. Michael C. Michael Barton, Professor of Anthropology Director of Graduate Studies School of Human Evolution & Social Change Center for Social Dynamics & Complexity Arizona State University Phone: 480-965-6262 Fax: 480-965-7671 www: On Jan 17, 2008, at 4:54 AM, [EMAIL PROTECTED] wrote: Thank you for the clarification (again). (1) ??? I can put my hand on fire (greek... or universal expression) that I was getting an error with "svn up" but now not! (2) Yes... trunk... (sorry for insisting). On Thu, 17 Jan 2008 10:28:41 +0100 "Martin Landa" <[EMAIL PROTECTED]> wrote: Hi, 2008/1/16, Nikos Alexandris <[EMAIL PROTECTED]>: I am sorry for bothering again. I am on ubuntu. I updated (sudo svn up) from within general note, why are you running 'svn up' as sudo?? the /usr/local/src/MyGRASSsourceDirectory Configured-compilled-installed. No wxgrass anywhere.. only a few irrelevant scripts under... : GRASS 6.3.0RC4 (Peloponnese_HGRS87):/usr/local/grass-6.3.0RC4/etc/gui ls icons scripts So... I go in /usr/loca/src/MyGRASSsrcDir/gui directory and I only find "wxpython" as a folder which does not contain any "wxgrass" script. GRASS 6.3.0RC4 (Peloponnese_HGRS87):/usr/local/src/release_20080109_grass_6_3_0RC4/ gui/wxpython ls archive gm.wxp grass-interface.dtd mapdisp.py scripts gism.py grassgui.py Makefile render.py Once more, in grass 6.3 is old wxpython code. Use svn-trunk instead. svn checkout https://svn.osgeo.org/grass/grass/trunk grass_trunk Martin -- Martin Landa <[EMAIL PROTECTED]> * http://gama.fsv.cvut.cz/~landa * . Nikos Alexandris - Ph.D. Candidate . Department of Remote Sensing and Landscape Information Systems (FeLIS) . Faculty of Forestry and Natural Environment Albert-Ludwigs-University Freiburg . Tel. +49 (0) 761 203 3697 Fax. +49 (0) 761 203 3701 Skype: Nikos.Alexandris . Address: Tennenbacher str. 4 D-79106 Freiburg i. Br. Germany . ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
RE: [GRASS-user] i.landsat.rgb problem
>Hi all, >i tried i.landsat.rgb on GRASS 6.3 but I have this error message and the >color tables of the three raster are setted with all values white. >I obtained this three brov raster from i.fusion.brovey applied on >Landsat images. > >i.landsat.rgb -p [EMAIL PROTECTED] [EMAIL PROTECTED] >[EMAIL PROTECTED] strength=90 >Processing [EMAIL PROTECTED] .. >/usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 36.9801: integer >expression expected >/usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 15.7707: integer >expression expected >Processing [EMAIL PROTECTED] .. >/usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 39.6825: integer >expression expected >/usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 15.1483: integer >expression expected >Processing [EMAIL PROTECTED] .. >/usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 24.107: integer >expression expected >/usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 13.: integer >expression expected >Color table for <[EMAIL PROTECTED]> set to rules >Color table for <[EMAIL PROTECTED]> set to rules >Color table for <[EMAIL PROTECTED]> set to rules > > >Thank you >Leonardo >___ >grass-user mailing list >grass-user@lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/grass-user Hi have a similar problem with "i.fusion.brovey -l ms1=20 ms2=40 ms3=50 pan=80 outputprefix=ls7 --o" the output maps I get are gray. Three different grays, but not like it should look like. I'm not admin on my system so I have no idea if the script (*.diff) from Martin is working in my case too. Same problem in another color? ;o) Thank you om shantih Philipp ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] problems starting wxPython gui using wingrass
wxgrass doesn't work. Error's after "make" below. Following modules are missing the 'description.html' file in src code: -- GRASS GIS compilation log - Started compilation: Thu Jan 17 16:20:58 CET 2008 -- Errors in: /usr/local/src/grass_trunk/lib/ogsf /usr/local/src/grass_trunk/gui/wxpython/vdigit /usr/local/src/grass_trunk/gui/wxpython /usr/local/src/grass_trunk/visualization/nviz -- On Thu, 17 Jan 2008 08:15:40 -0700 Michael Barton <[EMAIL PROTECTED]> wrote: > I'm glad that you're finally getting the correct code. > I'm confused about it's availability too. Please let us > know how it runs once you can get it and test it. > > Michael > > C. Michael Barton, Professor of Anthropology > Director of Graduate Studies > School of Human Evolution & Social Change > Center for Social Dynamics & Complexity > Arizona State University > > Phone: 480-965-6262 > Fax: 480-965-7671 > www: > > > > On Jan 17, 2008, at 4:54 AM, > [EMAIL PROTECTED] wrote: > > > Thank you for the clarification (again). > > > > (1) ??? I can put my hand on fire (greek... or > universal > > expression) that I was getting an error with "svn up" > but > > now not! > > > > (2) Yes... trunk... (sorry for insisting). > > > > > > On Thu, 17 Jan 2008 10:28:41 +0100 > > "Martin Landa" <[EMAIL PROTECTED]> wrote: > >> Hi, > >> > >> 2008/1/16, Nikos Alexandris > >> <[EMAIL PROTECTED]>: > >>> I am sorry for bothering again. > >>> > >>> I am on ubuntu. > >>> > >>> I updated (sudo svn up) from within > >> > >> general note, why are you running 'svn up' as sudo?? > >> > >>> the /usr/local/src/MyGRASSsourceDirectory > >>> Configured-compilled-installed. > >>> > >>> No wxgrass anywhere.. only a few irrelevant scripts > >> under... : > >>> > >>> GRASS 6.3.0RC4 > >> (Peloponnese_HGRS87):/usr/local/grass-6.3.0RC4/etc/gui > > > >>> ls > >>> icons scripts > >>> > >>> So... I go in /usr/loca/src/MyGRASSsrcDir/gui > >>> > >>> directory and I only find "wxpython" as a folder > which > >> does not contain > >>> any "wxgrass" script. > >>> > >>> GRASS 6.3.0RC4 > >>> > >> > > > (Peloponnese_HGRS87):/usr/local/src/release_20080109_grass_6_3_0RC4/ > > > gui/wxpython > >>> ls > >>> archive gm.wxp grass-interface.dtd mapdisp.py > >> scripts > >>> gism.py grassgui.py Makefile render.py > >> > >> Once more, in grass 6.3 is old wxpython code. Use > >> svn-trunk instead. > >> > >> svn checkout https://svn.osgeo.org/grass/grass/trunk > >> grass_trunk > >> > >> Martin > >> > >> -- > >> Martin Landa <[EMAIL PROTECTED]> * > >> http://gama.fsv.cvut.cz/~landa * > . Nikos Alexandris - Ph.D. Candidate . Department of Remote Sensing and Landscape Information Systems (FeLIS) . Faculty of Forestry and Natural Environment Albert-Ludwigs-University Freiburg . Tel. +49 (0) 761 203 3697 Fax. +49 (0) 761 203 3701 Skype: Nikos.Alexandris . Address: Tennenbacher str. 4 D-79106 Freiburg i. Br. Germany . ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] problems starting wxPython gui using wingrass
I'm glad that you're finally getting the correct code. I'm confused about it's availability too. Please let us know how it runs once you can get it and test it. Michael C. Michael Barton, Professor of Anthropology Director of Graduate Studies School of Human Evolution & Social Change Center for Social Dynamics & Complexity Arizona State University Phone: 480-965-6262 Fax: 480-965-7671 www: On Jan 17, 2008, at 4:54 AM, [EMAIL PROTECTED] wrote: Thank you for the clarification (again). (1) ??? I can put my hand on fire (greek... or universal expression) that I was getting an error with "svn up" but now not! (2) Yes... trunk... (sorry for insisting). On Thu, 17 Jan 2008 10:28:41 +0100 "Martin Landa" <[EMAIL PROTECTED]> wrote: Hi, 2008/1/16, Nikos Alexandris <[EMAIL PROTECTED]>: I am sorry for bothering again. I am on ubuntu. I updated (sudo svn up) from within general note, why are you running 'svn up' as sudo?? the /usr/local/src/MyGRASSsourceDirectory Configured-compilled-installed. No wxgrass anywhere.. only a few irrelevant scripts under... : GRASS 6.3.0RC4 (Peloponnese_HGRS87):/usr/local/grass-6.3.0RC4/etc/gui > ls icons scripts So... I go in /usr/loca/src/MyGRASSsrcDir/gui directory and I only find "wxpython" as a folder which does not contain any "wxgrass" script. GRASS 6.3.0RC4 (Peloponnese_HGRS87):/usr/local/src/release_20080109_grass_6_3_0RC4/ gui/wxpython ls archive gm.wxp grass-interface.dtd mapdisp.py scripts gism.py grassgui.py Makefile render.py Once more, in grass 6.3 is old wxpython code. Use svn-trunk instead. svn checkout https://svn.osgeo.org/grass/grass/trunk grass_trunk Martin -- Martin Landa <[EMAIL PROTECTED]> * http://gama.fsv.cvut.cz/~landa * ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Vector drawings in PDF -> converting them
On Wednesday 16 January 2008 11:22:02 pm Kurt Heston wrote: > I have a TON of vector drawings available to me in PDF format that I'm > georeferencing. So far, I'm doing it by converting them to PNGs and > using r.to.vect to massage them. This is really tedious and the data > isn't as clean as a straight vector conversion would be. In > Illustrator, I can see that all the vector math is there. That is, the > PDF isn't simply a wrapper around raster data. > > I've tried opening the PDFs in Illustrator and exporting them as DXFs, > but Grass ignores a lot of the data when I do this...they look very > different in Grass once imported. I can export them as SVG from > Illustrator, but surprisingly, there doesn't appear to be a single > open-source tool available out there that converts SVG into some > mainstream GIS file format. > > Does anyone have experience doing this type of conversion? Pointers > welcome. > ___ Check out Inkscape. Dylan -- Dylan Beaudette Soil Resource Laboratory http://casoilresource.lawr.ucdavis.edu/ University of California at Davis 530.754.7341 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
RE: [GRASS-user] When starting grass in text mode, why... ? (Question of minor importance)
>could you try editing your $GISBASE/etc/Init.sh file and change the top >line to "#!/bin/sh -x". That will show gratuitous script progress info >and hopefully tell us which command is causing that message. >Hamish No need; I found the thread: http://article.gmane.org/gmane.comp.gis.grass.user/14406/match=login+message+sudo I can confirm that if you create a file called .sudo_as_admin_successful in any $LOCATION/$MAPSET, the messages stop when Grass enters that location only. I have no idea what consequences might occur if this file is automatically generated by Init.sh for every new mapset (maybe none?). ~ Eric. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Problem with r.out.ascii
Hi list Im trying to use the r.out.ascii command but it fails Got an existing mapset, with some elevation rasters in it (.tiff converted in grass raster) I'd like to extract the xyz values of a DEM to txt file I use this syntax in the grass shell: [code] r.out.ascii input=mnt output=testmnt.txt [/code] testmnt.txt is created and the header is written,but the x,y,z values are missing, only stars appear in it, like this: [code] north: 2787570 south: 1546950 east: 1284500 west: -47544.1 rows: 931 cols: 999 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * [/code] Is anybody understands what happens? Does a r.out.xyz command exist? or any other way to get x,y,z values from a raster? Thanks for answers PikO -- View this message in context: http://www.nabble.com/Problem-with-r.out.ascii-tp14918691p14918691.html Sent from the Grass - Users mailing list archive at Nabble.com. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] i.landsat.rgb problem
Martin Landa ha scritto: > Hi, > > the attached patch should fix the problem with floating point arithmetic. > > Martin > > > Thank you very much. I'm going to try it! Hi Leonardo ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Vector drawings in PDF -> converting them
Within Illustrator maybe you can build a script that adds intermediate points to curves (don't really remember, but it sounds like 'densify paths', or 'add anchor points'), attended that vertices will be recognized when imported Vincent Le jeudi 17 janvier 2008 à 09:03 +0100, Andreas Neumann a écrit : > ok, the problems are with the curves. > > The ogr2ogr tool has a converter from Interlis to other ogrformats. > Interlis supports arcs (defined by three points). They also calculate new > vertices along the arcs to be compatible to other formats that don't > support curves. One can define how many > > Every SVG viewer has code on how to display curves (arcs, quadratic and > cubic spline curves). But I don't know if you can dig up and work with > that code directly. Many of them probably forward their drawing commands > to underlying graphics libraries like Cairo, AGG, OpenVG, Java2D, etc. > > As you said, you might also want to ask the Batik developers on the Batik > list. These people are usually friendly and often help where they can. > > Andreas > > > > Andreas, > > > > Thanks for you comments. I agree completely. > > > > The curves are definitely where the problem lies. There would need to > > be a clever algorithm that converted them to polylines with some sort of > > configurable resolution. However, my guess is the code used convert SVG > > to raster formats like TIF and PNG has to do something similar. > > > > I began looking into using the facilities in Batik to accomplish this. > > The PNGTranscoder looks to be a good place to start. Haven't gotten > > very far in this past weekend when I began to look into it, no blatant > > roadblocks yet. > > > > --Kurt > > > > Andreas Neumann wrote: > >> Hi, > >> > >> I don't have an immediate solution to your problem, however, I would > >> like > >> to discuss the use of the SVG format. Also, are you using curves in your > >> original data? > >> > >> SVG would be a great format for transforming non-GIS vector maps into a > >> GIS format. But it is not so surprising that most GIS only export and > >> don't import SVG. SVG is usually a presentation format, not a transfer > >> format for GIS data. Also, SVG has a lot of features that can't be > >> easily > >> transfered to GIS - think about elliptical arcs, cubic and quadratic > >> spline curves. Those would have to be transfered into the OGC geometry > >> models, where support for curves is more or less in its infancy. > >> > >> A number of GIS software allows the export of SVG, not always in a very > >> form, though: Postgis (ok), Grass (did not try that), Mapserver (haven't > >> tried that), ESRI (crappy, they seem to have some sort of "resolution" > >> for > >> their vector export). > >> > >> But, I think it would be great to have svg support incorporated into the > >> ogr tools. It would make sense, also since FME and other OS and > >> commercial > >> GIS support SVG. > >> > >> Andreas > >> > >> > >>> I have a TON of vector drawings available to me in PDF format that I'm > >>> georeferencing. So far, I'm doing it by converting them to PNGs and > >>> using r.to.vect to massage them. This is really tedious and the data > >>> isn't as clean as a straight vector conversion would be. In > >>> Illustrator, I can see that all the vector math is there. That is, the > >>> PDF isn't simply a wrapper around raster data. > >>> > >>> I've tried opening the PDFs in Illustrator and exporting them as DXFs, > >>> but Grass ignores a lot of the data when I do this...they look very > >>> different in Grass once imported. I can export them as SVG from > >>> Illustrator, but surprisingly, there doesn't appear to be a single > >>> open-source tool available out there that converts SVG into some > >>> mainstream GIS file format. > >>> > >>> Does anyone have experience doing this type of conversion? Pointers > >>> welcome. > >>> > >> > >> > > > > > > ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] i.landsat.rgb problem
Hi, the attached patch should fix the problem with floating point arithmetic. Martin 2008/1/17, Leonardo Lami <[EMAIL PROTECTED]>: > Hi all, > i tried i.landsat.rgb on GRASS 6.3 but I have this error message and the > color tables of the three raster are setted with all values white. > I obtained this three brov raster from i.fusion.brovey applied on > Landsat images. > > i.landsat.rgb -p [EMAIL PROTECTED] [EMAIL PROTECTED] > [EMAIL PROTECTED] strength=90 > Processing [EMAIL PROTECTED] .. > /usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 36.9801: integer > expression expected > /usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 15.7707: integer > expression expected > Processing [EMAIL PROTECTED] .. > /usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 39.6825: integer > expression expected > /usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 15.1483: integer > expression expected > Processing [EMAIL PROTECTED] .. > /usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 24.107: integer > expression expected > /usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 13.: integer > expression expected > Color table for <[EMAIL PROTECTED]> set to rules > Color table for <[EMAIL PROTECTED]> set to rules > Color table for <[EMAIL PROTECTED]> set to rules > > > Thank you > Leonardo > ___ > grass-user mailing list > grass-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-user > -- Martin Landa <[EMAIL PROTECTED]> * http://gama.fsv.cvut.cz/~landa * Index: scripts/i.landsat.rgb/i.landsat.rgb === --- scripts/i.landsat.rgb/i.landsat.rgb (revision 29738) +++ scripts/i.landsat.rgb/i.landsat.rgb (working copy) @@ -71,6 +71,12 @@ exit 1 fi +# check if we have awk +if [ ! -x "`which awk`" ] ; then +g.message -e "awk required, please install awk or gawk first" +exit 1 +fi + # save command line if [ "$1" != "@ARGS_PARSED@" ] ; then CMDLINE="`basename $0`" @@ -116,7 +122,7 @@ if [ 0 -eq $GIS_FLAG_P ] ; then for i in $RED $GREEN $BLUE ; do - g.message "Processing [$i] .." + g.message "Processing <$i>..." MIN=`r.univar -ge $i perc=2 | grep "^percentile_" | cut -d'=' -f2` MAX=`r.univar -ge $i perc=$BRIGHTNESS | grep "^percentile_" | cut -d'=' -f2` #echo "[$i]: min=$MIN max=$MAX" @@ -131,18 +137,14 @@ ALL_MAX=0 ALL_MIN=255 for i in $RED $GREEN $BLUE ; do - g.message "Processing [$i] .." + g.message "Processing <$i>..." MIN=`r.univar -ge $i perc=2 | grep "^percentile_" | cut -d'=' -f2` MAX=`r.univar -ge $i perc=$BRIGHTNESS | grep "^percentile_" | cut -d'=' -f2` - #echo "[$i]: min=$MIN max=$MAX" - if [ $MAX -gt $ALL_MAX ] ; then - ALL_MAX=$MAX - fi - if [ $MIN -lt $ALL_MIN ] ; then - ALL_MIN=$MIN - fi + # echo "[$i]: min=$MIN max=$MAX" + ALL_MAX=`echo "$MAX $ALL_MAX" | awk '{if ($1 > $2) print $1; else print $2}'` + ALL_MIN=`echo "$MIN $ALL_MIN" | awk '{if ($1 < $2) print $1; else print $2}'` done - #echo "all_min=$ALL_MIN all_max=$ALL_MAX" + # echo "all_min=$ALL_MIN all_max=$ALL_MAX" for i in $RED $GREEN $BLUE ; do r.colors $i col=rules << EOF 0% black ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Can't dissolve based on column?
Sorry for typo's! On Thu, 17 Jan 2008 13:02:54 +0100 [EMAIL PROTECTED] wrote: I just wonder how was the tile-patching and dissolving (of CORINE shapefile(s)) done, as described in v.dissolve's help text? Were the file's "CODE_00" column different than "TEXT" ? > But anyway is good to make things as much as possible > more > transparent. I learned a lot from this small story. > > Thanks! > > On Wed, 16 Jan 2008 22:26:45 -0500 > "Patton, Eric" <[EMAIL PROTECTED]> wrote: > > Eric Patton wrote: > > > > Just a clarification...so it's the case that the > > column parameter > > > > in v.dissolve must always be of type integer, and > > *only* integer? > > > > Hamish: > > >The v.dissolve script with dissolve based on a column > > currently > > >requires that column to be of type integer. We should > > probably add a > > >check in the script for that (v.info -c). > > > > Ok, that's what I thought; thanks. I wanted to make > sure > > before I added a hint in the docs. > > Actually, I think Nikos mentioned something about > writing > > up a hint about it, so I'll hold off. > > > > >It would be possible to add any type of column to > > v.dissolve with unix > > >tools 'db.select | sort | uniq | nl' then create a new > > table with the > > >unique attributes + sequential integer column, then > > v.reclass as > > >before. > > > > >or add a new column to (a copy of) the existing table > > (v.db.addcol) and > > >populate it with a 'db.select | sort | uniq' loop and > > v.db.update, or > > >SQL + db.execute << "set DISOLVEKEY = $i where > ATTRIBUTE > > = '$VAL'" > > >(sorry my SQL is not good but you may be the idea of > > what I mean) > > > > Cool. It's always amazing how powerful these little > > command line tools can be. > > > > ~ Eric. > > > > > . > Nikos Alexandris - Ph.D. Candidate > . > Department of Remote Sensing >and > Landscape Information Systems > (FeLIS) > . > Faculty of Forestry and Natural Environment > Albert-Ludwigs-University Freiburg > . > Tel. +49 (0) 761 203 3697 > Fax. +49 (0) 761 203 3701 > Skype: Nikos.Alexandris > . >Address: Tennenbacher str. 4 > D-79106 Freiburg i. Br. > Germany > . > ___ > grass-user mailing list > grass-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-user . Nikos Alexandris - Ph.D. Candidate . Department of Remote Sensing and Landscape Information Systems (FeLIS) . Faculty of Forestry and Natural Environment Albert-Ludwigs-University Freiburg . Tel. +49 (0) 761 203 3697 Fax. +49 (0) 761 203 3701 Skype: Nikos.Alexandris . Address: Tennenbacher str. 4 D-79106 Freiburg i. Br. Germany . ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Can't dissolve based on column?
I just wonder how was the tile-patching and dissolving (of CORINE shapefile(s)) as it is described in v.dissolve's help text? Where the file's "CODE_00" column different than "TEXT" ? But anyway is good to make things as much as possible more transparent. I learned a lot from this small story. Thanks! On Wed, 16 Jan 2008 22:26:45 -0500 "Patton, Eric" <[EMAIL PROTECTED]> wrote: > Eric Patton wrote: > > > Just a clarification...so it's the case that the > column parameter > > > in v.dissolve must always be of type integer, and > *only* integer? > > Hamish: > >The v.dissolve script with dissolve based on a column > currently > >requires that column to be of type integer. We should > probably add a > >check in the script for that (v.info -c). > > Ok, that's what I thought; thanks. I wanted to make sure > before I added a hint in the docs. > Actually, I think Nikos mentioned something about writing > up a hint about it, so I'll hold off. > > >It would be possible to add any type of column to > v.dissolve with unix > >tools 'db.select | sort | uniq | nl' then create a new > table with the > >unique attributes + sequential integer column, then > v.reclass as > >before. > > >or add a new column to (a copy of) the existing table > (v.db.addcol) and > >populate it with a 'db.select | sort | uniq' loop and > v.db.update, or > >SQL + db.execute << "set DISOLVEKEY = $i where ATTRIBUTE > = '$VAL'" > >(sorry my SQL is not good but you may be the idea of > what I mean) > > Cool. It's always amazing how powerful these little > command line tools can be. > > ~ Eric. > . Nikos Alexandris - Ph.D. Candidate . Department of Remote Sensing and Landscape Information Systems (FeLIS) . Faculty of Forestry and Natural Environment Albert-Ludwigs-University Freiburg . Tel. +49 (0) 761 203 3697 Fax. +49 (0) 761 203 3701 Skype: Nikos.Alexandris . Address: Tennenbacher str. 4 D-79106 Freiburg i. Br. Germany . ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] When starting grass in text mode,why... ? (Question of minor importance)
Very LONG Post! [EMAIL PROTECTED]:/usr/local/grass-6.3.0RC4/etc$ grass63 -text + trap echo 'User break!' ; exit 2 3 15 + GRASS_PERL=/usr/bin/perl + export GRASS_PERL + GRASS_SH=/bin/sh + export GRASS_SH + GRASS_VERSION=6.3.0RC4 + export GRASS_VERSION + CMD_NAME=grass63 + uname -s + SYSTEM=Linux + GRASS_GUI=text + shift + GIS_LOCK=4836 + export GIS_LOCK + GISRCRC=/home/nik/.grassrc6 + [ ] + pwd + PWD=/usr/local/grass-6.3.0RC4/etc + whoami + USER=nik + tmp=/tmp/grass6-nik-4836 + umask 077 + mkdir /tmp/grass6-nik-4836 + GISRC=/tmp/grass6-nik-4836/gisrc + export GISRC + cat /home/nik/.grassrc6 + grep UNKNOWN + [ 1 -eq 0 ] + [ -f /home/nik/.grassrc6 ] + cp /home/nik/.grassrc6 /tmp/grass6-nik-4836/gisrc + [ 0 -eq 1 ] + [ ! text ] + [ text = gui ] + ETC=/usr/local/grass-6.3.0RC4/etc + [ ] + [ ] + echo en_GB.UTF-8 + sed s/\(..\)\(.*\)/\1/ + LCL=en + [ -n ] + PATH=/usr/local/grass-6.3.0RC4/bin:/usr/local/grass-6.3.0RC4/scripts:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + export PATH + [ ! ] + LD_LIBRARY_PATH=/usr/local/grass-6.3.0RC4/lib + export LD_LIBRARY_PATH + GRASS_LD_LIBRARY_PATH=/usr/local/grass-6.3.0RC4/lib + export GRASS_LD_LIBRARY_PATH + [ ! ] + [ -x /bin/more ] + GRASS_PAGER=more + export GRASS_PAGER + [ ! ] + GRASS_TCLSH=tclsh + export GRASS_TCLSH + [ ! ] + GRASS_WISH=wish + export GRASS_WISH + [ ! ] + GRASS_PYTHON=python + export GRASS_PYTHON + [ ! ] + [ ] + [ -o ] + echo /usr/local/grass-6.3.0RC4/bin:/usr/local/grass-6.3.0RC4/scripts:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + sed s/^:/.:/ s/::/:.:/g s/:$/:./ s/:/ /g + [ -f /usr/local/grass-6.3.0RC4/bin/htmlview ] + [ -f /usr/local/grass-6.3.0RC4/bin/konqueror ] + [ -f /usr/local/grass-6.3.0RC4/bin/mozilla ] + [ -f /usr/local/grass-6.3.0RC4/bin/mozilla-firefox ] + [ -f /usr/local/grass-6.3.0RC4/bin/opera ] + [ -f /usr/local/grass-6.3.0RC4/bin/netscape ] + [ -f /usr/local/grass-6.3.0RC4/bin/dillo ] + [ -f /usr/local/grass-6.3.0RC4/scripts/htmlview ] + [ -f /usr/local/grass-6.3.0RC4/scripts/konqueror ] + [ -f /usr/local/grass-6.3.0RC4/scripts/mozilla ] + [ -f /usr/local/grass-6.3.0RC4/scripts/mozilla-firefox ] + [ -f /usr/local/grass-6.3.0RC4/scripts/opera ] + [ -f /usr/local/grass-6.3.0RC4/scripts/netscape ] + [ -f /usr/local/grass-6.3.0RC4/scripts/dillo ] + [ -f /usr/local/sbin/htmlview ] + [ -f /usr/local/sbin/konqueror ] + [ -f /usr/local/sbin/mozilla ] + [ -f /usr/local/sbin/mozilla-firefox ] + [ -f /usr/local/sbin/opera ] + [ -f /usr/local/sbin/netscape ] + [ -f /usr/local/sbin/dillo ] + [ -f /usr/local/bin/htmlview ] + [ -f /usr/local/bin/konqueror ] + [ -f /usr/local/bin/mozilla ] + [ -f /usr/local/bin/mozilla-firefox ] + [ -f /usr/local/bin/opera ] + [ -f /usr/local/bin/netscape ] + [ -f /usr/local/bin/dillo ] + [ -f /usr/sbin/htmlview ] + [ -f /usr/sbin/konqueror ] + [ -f /usr/sbin/mozilla ] + [ -f /usr/sbin/mozilla-firefox ] + [ -f /usr/sbin/opera ] + [ -f /usr/sbin/netscape ] + [ -f /usr/sbin/dillo ] + [ -f /usr/bin/htmlview ] + [ -f /usr/bin/konqueror ] + [ -f /usr/bin/mozilla ] + [ -f /usr/bin/mozilla-firefox ] + [ -f /usr/bin/opera ] + GRASS_HTML_BROWSER=opera + break + [ ! opera ] + export GRASS_HTML_BROWSER + [ = arm ] + [ ! ] + GRASS_GNUPLOT=gnuplot -persist + export GRASS_GNUPLOT + [ ! ] + GRASS_PROJSHARE=/usr/local/share/proj + export GRASS_PROJSHARE + [ ! -f /tmp/grass6-nik-4836/gisrc ] + echo Cleaning up temporary files. Cleaning up temporary files. + /usr/local/grass-6.3.0RC4/etc/clean_temp + echo Starting GRASS ... Starting GRASS ... + [ :0.1 -o ] + [ text = wx ] + [ text = tcltk ] + [ text = gis.m ] + [ text = d.m ] + [ 0 = 0 ] + TCLTKGRASSBASE=/usr/local/grass-6.3.0RC4/etc + WXPYTHONGRASSBASE=/usr/local/grass-6.3.0RC4/etc/wx + [ -f /tmp/grass6-nik-4836/gisrc ] + awk $1 !~ /GRASS_GUI/ {print} /tmp/grass6-nik-4836/gisrc + echo GRASS_GUI: text + mv -f /tmp/grass6-nik-4836/gisrc.4836 /tmp/grass6-nik-4836/gisrc + [ ! ] + LOCATION= + [ ! ] + /usr/local/grass-6.3.0RC4/etc/set_data + g.gisenv GISDBASE + GISDBASE=/home/nik/GeoData/Unsorted + g.gisenv LOCATION_NAME + LOCATION_NAME=CH1903_LV03 + g.gisenv MAPSET + MAPSET=ForStefan + [ -z /home/nik/GeoData/Unsorted ] + [ -z CH1903_LV03 ] + [ -z ForStefan ] + LOCATION=/home/nik/GeoData/Unsorted/CH1903_LV03/ForStefan + lockfile=/home/nik/GeoData/Unsorted/CH1903_LV03/ForStefan/.gislock + /usr/local/grass-6.3.0RC4/etc/lock /home/nik/GeoData/Unsorted/CH1903_LV03/ForStefan/.gislock 4836 + [ ] + trap 2 3 15 + [ ] + basename /bin/bash + sh=bash + shellname=Bash Shell + [ ! -x /bin/bash ] + [ -n ] + echo GRASS GUI should be text GRASS GUI should be text + [ ] + [ -z ] + tput clear + cat __ ___ _____ / / __ \/ | / ___/ ___/ / / _/ ___/ / / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \ / /_/ / _, _/ ___ |___/
Re: [GRASS-user] problems starting wxPython gui using wingrass
Thank you for the clarification (again). (1) ??? I can put my hand on fire (greek... or universal expression) that I was getting an error with "svn up" but now not! (2) Yes... trunk... (sorry for insisting). On Thu, 17 Jan 2008 10:28:41 +0100 "Martin Landa" <[EMAIL PROTECTED]> wrote: > Hi, > > 2008/1/16, Nikos Alexandris > <[EMAIL PROTECTED]>: > > I am sorry for bothering again. > > > > I am on ubuntu. > > > > I updated (sudo svn up) from within > > general note, why are you running 'svn up' as sudo?? > > > the /usr/local/src/MyGRASSsourceDirectory > > Configured-compilled-installed. > > > > No wxgrass anywhere.. only a few irrelevant scripts > under... : > > > > GRASS 6.3.0RC4 > (Peloponnese_HGRS87):/usr/local/grass-6.3.0RC4/etc/gui > > > ls > > icons scripts > > > > So... I go in /usr/loca/src/MyGRASSsrcDir/gui > > > > directory and I only find "wxpython" as a folder which > does not contain > > any "wxgrass" script. > > > > GRASS 6.3.0RC4 > > > (Peloponnese_HGRS87):/usr/local/src/release_20080109_grass_6_3_0RC4/gui/wxpython > > ls > > archive gm.wxp grass-interface.dtd mapdisp.py > scripts > > gism.py grassgui.py Makefile render.py > > Once more, in grass 6.3 is old wxpython code. Use > svn-trunk instead. > > svn checkout https://svn.osgeo.org/grass/grass/trunk > grass_trunk > > Martin > > -- > Martin Landa <[EMAIL PROTECTED]> * > http://gama.fsv.cvut.cz/~landa * ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] i.landsat.rgb problem
Hi all, i tried i.landsat.rgb on GRASS 6.3 but I have this error message and the color tables of the three raster are setted with all values white. I obtained this three brov raster from i.fusion.brovey applied on Landsat images. i.landsat.rgb -p [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] strength=90 Processing [EMAIL PROTECTED] .. /usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 36.9801: integer expression expected /usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 15.7707: integer expression expected Processing [EMAIL PROTECTED] .. /usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 39.6825: integer expression expected /usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 15.1483: integer expression expected Processing [EMAIL PROTECTED] .. /usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 24.107: integer expression expected /usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 13.: integer expression expected Color table for <[EMAIL PROTECTED]> set to rules Color table for <[EMAIL PROTECTED]> set to rules Color table for <[EMAIL PROTECTED]> set to rules Thank you Leonardo ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] error in gis.m georectify tool
Hi, I have experienced this two months ago. http://lists.osgeo.org/pipermail/grass-user/2007-October/041633.html Now it should be fixed in 6.3cvs regards raffaele 2008/1/17, Leonardo Lami <[EMAIL PROTECTED]>: > > > Hi Markus, > I'm trying to use the new georectify tool in GRASS 6.3 but I have a > little problem. > > I create my imagery group (new) with the four satellite images of > imagery60 dataset (spot.comp, spot.ms1, spot.ms.2 and spot.ms.3). > Then I open a mapset in spearfish60 and I set my region on "roads" > vector extension. > Then I Select /*Georectify*/ from the /*File*/ menu and I select the > location/mapset (imagery60/PERMANENT) of the map to georectify > (spot.comp), the /image group/ (new) of the map to georectify, and a map > to use for marking GCPs (roads). > > When I click on "Start georectifying" this does'nt open the special map > display and I have this error message: > > > missing " > missing " > while compiling > "Gm::errmsg $error ["Error setting region] > " > ("if" then script line 2) > while compiling > "if {[catch {close $input} error]} { > Gm::errmsg $error ["Error setting region] > }" > ("if" then script line 10) > while compiling > "if {![catch {open [concat "|g.region" "-up" $args "2> $devnull"] r} > input]} { > while {[gets $input line] >= 0} { > set key [string trim [linde..." > (compiling body of proc "GRMap::zoom_gregion", line 11) > invoked from within > "GRMap::zoom_gregion" > (procedure "GRMap::refmap" line 51) > invoked from within > "GRMap::refmap" > ("uplevel" body line 1) > invoked from within > "uplevel \#0 $cmd" > (procedure "Button::_release" line 18) > invoked from within > "Button::_release .grstart.mf.frame.start.a" > (command bound to event) > > Any idea about this? > > Thank you > Regards > > leonardo > ___ > grass-user mailing list > grass-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-user > ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] error in gis.m georectify tool
Hi Markus, I'm trying to use the new georectify tool in GRASS 6.3 but I have a little problem. I create my imagery group (new) with the four satellite images of imagery60 dataset (spot.comp, spot.ms1, spot.ms.2 and spot.ms.3). Then I open a mapset in spearfish60 and I set my region on "roads" vector extension. Then I Select /*Georectify*/ from the /*File*/ menu and I select the location/mapset (imagery60/PERMANENT) of the map to georectify (spot.comp), the /image group/ (new) of the map to georectify, and a map to use for marking GCPs (roads). When I click on "Start georectifying" this does'nt open the special map display and I have this error message: missing " missing " while compiling "Gm::errmsg $error ["Error setting region] " ("if" then script line 2) while compiling "if {[catch {close $input} error]} { Gm::errmsg $error ["Error setting region] }" ("if" then script line 10) while compiling "if {![catch {open [concat "|g.region" "-up" $args "2> $devnull"] r} input]} { while {[gets $input line] >= 0} { set key [string trim [linde..." (compiling body of proc "GRMap::zoom_gregion", line 11) invoked from within "GRMap::zoom_gregion" (procedure "GRMap::refmap" line 51) invoked from within "GRMap::refmap" ("uplevel" body line 1) invoked from within "uplevel \#0 $cmd" (procedure "Button::_release" line 18) invoked from within "Button::_release .grstart.mf.frame.start.a" (command bound to event) Any idea about this? Thank you Regards leonardo ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] d.monsize doesn't work in 6.3
Hamish schrieb: > Philipp Steigenberger wrote: >> in GRASS 6.2.3 I was using a nice script which >> connects d.start/d.stop and d.monsize to open monitors >> in a given size or closes them if one is open. >> In university I'm using 6.3 and there the d.monsize >> doesn't work. >> I get the message: >> >> execl() failed: Exec format error > > It works fine for me. How old is the 6.3 version? When was it checked > out of CVS/SVN? > > Can you change the top line of the 6.3 script to be "#!/bin/sh -x" then > rerun & send the result? (`which d.monsize`) > > Another option is to use d.resize. > > > Hamish > > > > > > Never miss a thing. Make Yahoo your home page. > http://www.yahoo.com/r/hs > > > I have no admin rights so I copied the script to d.mons with "#!/bin/sh -x" I get the message + test -z /usr/lib/grass + '[' setmonitor=x1 '!=' @ARGS_PARSED@ ']' + exec g.parser /.../dce.uni-augsburg.de/fs/home/student/s/t/steigeph/bin/d.mons setmonitor=x1 setwidth=1000 setheight=1000 + test -z /usr/lib/grass + '[' @ARGS_PARSED@ '!=' @ARGS_PARSED@ ']' + GRASS_WIDTH=1000 + export GRASS_WIDTH + GRASS_HEIGHT=1000 + export GRASS_HEIGHT ++ d.mon -p ++ sed 's/No monitor currently selected for output//' + st1='Currently selected monitor: x1' ++ echo Currently selected monitor: x1 ++ cut -d : -f2 + st2=' x1' ++ echo x1 ++ perl -pne 's/^\s+//g' + st3=x1 + '[' -z x1 ']' + '[' x1 = x1 ']' + d.mon stop=x1 Monitor 'x1' terminated + g.message 'Monitor already running and selected' Monitor already running and selected + g.message 'Restarting monitor size 1000 ...' Restarting monitor size 1000 ... + sleep 4 + d.mon start=x1 using default visual which is TrueColor ncolors: 16777216 Graphics driver [x1] started and it works! #!/bin/sh # # MODULE: d.monsize, v 1.6 for GRASS 6.0 (2004/12/07) # based on d.monsize for GRASS 5 # AUTHOR(S):Unknown; # updated to GRASS 5.7 by Michael Barton ([EMAIL PROTECTED]) # PURPOSE: selects/starts specified monitor at specified window size # COPYRIGHT:(C) 2004 by the GRASS Development Team # # This program is free software under the GNU General Public # License (>=v2). Read the file COPYING that comes with GRASS # for details. # # # NOTE: This is based on the output pattern of d.mon -p # Anantha Prasad # # Version 1: Author?. Tue, 25 Jan 2000 10:31:37 #%Module #% description: Selects/starts specified monitor at specified size #% keywords: display, setup #%End #%option #% key: setmonitor #% type: string #% description: Display monitor to start #% options: x0,x1,x2,x3,x4,x5,x6 #% required : yes #%end #%option #% key: setwidth #% type: integer #% description: Width in pixels of new display monitor #% required : yes #%end #%option #% key: setheight #% type: integer #% description: Height in pixels of new display monitor #% required : yes #%end if test -z "$GISBASE"; then echo "You must be in GRASS GIS to run this program." >&2 exit 1 fi if [ "$1" != "@ARGS_PARSED@" ] ; then exec g.parser "$0" "$@" fi GRASS_WIDTH=$GIS_OPT_SETWIDTH export GRASS_WIDTH GRASS_HEIGHT=$GIS_OPT_SETHEIGHT export GRASS_HEIGHT # Check the current status of the monitor st1=`d.mon -p| sed s/'No monitor currently selected for output'//` st2=`echo $st1 | cut -d ":" -f2` # STrip leading blanks st3=`echo $st2|perl -pne 's/^\s+//g'` if [ -z "$st3" ] then # No monitor running so start a new one g.message "No monitor selected" g.message "Starting monitor $GIS_OPT_SETMONITOR of size $GIS_OPT_SETWIDTHX$GIS_OPT_SETHEIGHT ..." d.mon start=$GIS_OPT_SETMONITOR else if [ "$GIS_OPT_SETMONITOR" = "$st3" ] then # Monitor is already running...stop it and start new one d.mon stop=$GIS_OPT_SETMONITOR g.message "Monitor already running and selected" g.message "Restarting monitor $GIS_OPT_SETMONITORAT size $GIS_OPT_SETWIDTHX$GIS_OPT_SETHEIGHT ..." sleep 4 d.mon start=$GIS_OPT_SETMONITOR else g.message "A different monitor is selected" g.message "Selecting and restarting monitor $GIS_OPT_SETWIDTHX$GIS_OPT_SETHEIGHT..." #d.mon select=$GIS_OPT_SETMONITOR d.mon stop=$GIS_OPT_SETMONITOR sleep 4 d.mon start=$GIS_OPT_SETMONITOR fi fi ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] problems starting wxPython gui using wingrass
Hi, 2008/1/16, Nikos Alexandris <[EMAIL PROTECTED]>: > I am sorry for bothering again. > > I am on ubuntu. > > I updated (sudo svn up) from within general note, why are you running 'svn up' as sudo?? > the /usr/local/src/MyGRASSsourceDirectory > Configured-compilled-installed. > > No wxgrass anywhere.. only a few irrelevant scripts under... : > > GRASS 6.3.0RC4 (Peloponnese_HGRS87):/usr/local/grass-6.3.0RC4/etc/gui > > ls > icons scripts > > So... I go in /usr/loca/src/MyGRASSsrcDir/gui > > directory and I only find "wxpython" as a folder which does not contain > any "wxgrass" script. > > GRASS 6.3.0RC4 > (Peloponnese_HGRS87):/usr/local/src/release_20080109_grass_6_3_0RC4/gui/wxpython > > ls > archive gm.wxp grass-interface.dtd mapdisp.py scripts > gism.py grassgui.py Makefile render.py Once more, in grass 6.3 is old wxpython code. Use svn-trunk instead. svn checkout https://svn.osgeo.org/grass/grass/trunk grass_trunk Martin -- Martin Landa <[EMAIL PROTECTED]> * http://gama.fsv.cvut.cz/~landa * ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Vector drawings in PDF -> converting them
ok, the problems are with the curves. The ogr2ogr tool has a converter from Interlis to other ogrformats. Interlis supports arcs (defined by three points). They also calculate new vertices along the arcs to be compatible to other formats that don't support curves. One can define how many Every SVG viewer has code on how to display curves (arcs, quadratic and cubic spline curves). But I don't know if you can dig up and work with that code directly. Many of them probably forward their drawing commands to underlying graphics libraries like Cairo, AGG, OpenVG, Java2D, etc. As you said, you might also want to ask the Batik developers on the Batik list. These people are usually friendly and often help where they can. Andreas > Andreas, > > Thanks for you comments. I agree completely. > > The curves are definitely where the problem lies. There would need to > be a clever algorithm that converted them to polylines with some sort of > configurable resolution. However, my guess is the code used convert SVG > to raster formats like TIF and PNG has to do something similar. > > I began looking into using the facilities in Batik to accomplish this. > The PNGTranscoder looks to be a good place to start. Haven't gotten > very far in this past weekend when I began to look into it, no blatant > roadblocks yet. > > --Kurt > > Andreas Neumann wrote: >> Hi, >> >> I don't have an immediate solution to your problem, however, I would >> like >> to discuss the use of the SVG format. Also, are you using curves in your >> original data? >> >> SVG would be a great format for transforming non-GIS vector maps into a >> GIS format. But it is not so surprising that most GIS only export and >> don't import SVG. SVG is usually a presentation format, not a transfer >> format for GIS data. Also, SVG has a lot of features that can't be >> easily >> transfered to GIS - think about elliptical arcs, cubic and quadratic >> spline curves. Those would have to be transfered into the OGC geometry >> models, where support for curves is more or less in its infancy. >> >> A number of GIS software allows the export of SVG, not always in a very >> form, though: Postgis (ok), Grass (did not try that), Mapserver (haven't >> tried that), ESRI (crappy, they seem to have some sort of "resolution" >> for >> their vector export). >> >> But, I think it would be great to have svg support incorporated into the >> ogr tools. It would make sense, also since FME and other OS and >> commercial >> GIS support SVG. >> >> Andreas >> >> >>> I have a TON of vector drawings available to me in PDF format that I'm >>> georeferencing. So far, I'm doing it by converting them to PNGs and >>> using r.to.vect to massage them. This is really tedious and the data >>> isn't as clean as a straight vector conversion would be. In >>> Illustrator, I can see that all the vector math is there. That is, the >>> PDF isn't simply a wrapper around raster data. >>> >>> I've tried opening the PDFs in Illustrator and exporting them as DXFs, >>> but Grass ignores a lot of the data when I do this...they look very >>> different in Grass once imported. I can export them as SVG from >>> Illustrator, but surprisingly, there doesn't appear to be a single >>> open-source tool available out there that converts SVG into some >>> mainstream GIS file format. >>> >>> Does anyone have experience doing this type of conversion? Pointers >>> welcome. >>> >> >> > > -- Andreas Neumann Böschacherstrasse 6, CH-8624 Grüt/Gossau, Switzerland Email: [EMAIL PROTECTED], Web: * http://www.carto.net/ (Carto and SVG resources) * http://www.carto.net/neumann/ (personal page) * http://www.svgopen.org/ (SVG Open Conference) * http://www.geofoto.ch/ (Georeferenced Photos of Switzerland) ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user