[GRASS-user] GRASS GIS 7.03 for Mac OS X, problem with wxPython (missing)

2016-02-15 Thread gene
With the 7.0.3 version of GRASS GIS on the Mac (M.Barton) I can only launch GRASS-7.0.app (7.0.3) in text mode. When I try to launch the App or use g.gui wxpython in the Grass shell the error is: "Launching GUI in the background, please wait… ERROR: wxGUI

Re: [GRASS-user] How to draw 3d boreholes to my 3d model

2015-10-27 Thread gene
Hello, look at automate v.extrude from a table ? and Automatic 3D geological boreholes representation (automate v.extrude from a table ?):

Re: [GRASS-user] 3d model with boreholes

2015-10-12 Thread gene
Hello, look at automate v.extrude from a table ? , Automatic 3D geological boreholes representation (automate v.extrude from a table ?): my solution in Python

Re: [GRASS-user] [GRASS-dev] BIG QGIS problem

2015-06-14 Thread gene
Have you try ogr2ogr every Shapefile http://www.spatiallyadjusted.com/2012/12/07/ogr2ogr-every-shapefile/ ? This allows me to restore some shapefiles with problems -- View this message in context: http://osgeo-org.1560.x6.nabble.com/BIG-QGIS-problem-tp5210808p5210823.html Sent from the

Re: [GRASS-user] grass64 issue with NumPy

2014-07-06 Thread gene
How did you install GRASS GIS, what is your default version of Python and where did you install Numpy ? - the version of KyngChaos http://www.kyngchaos.com/software/grass uses the Apple Python with frameworks (/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wxgui.py, for example) -

Re: [GRASS-user] GRASS 6.4 How to extract point-values from multiple rasters

2013-04-07 Thread gene
I use a Python script with gdal to do that If you open a grass raster with gdal: from osgeo import gdal # grass raster dem10m file = '/Users/grassdata/geol/MNT/cellhd/dem10m' layer = gdal.Open(file) gt =layer.GetGeoTransform() bands = layer.RasterCount print bands

Re: [GRASS-user] colortable RGB value for a pixel based on its value?

2012-10-20 Thread gene
Hi, José Guerrero published a Python script to produce a raster (*. Asc) with the sum of neighboring pixels. Script de python para producir un ráster (*.asc) con la suma de los píxeles vecinos

Re: [GRASS-user] Using Python scripts that call GRASS modules or access GRASS layers from outside the GRASS.app with Mac OS X: a little summary

2012-07-10 Thread gene
Perhaps, but in my case and that of my colleagues (Snow Leopard, Lion), it works without problem with LD_LIBRARY_PATH and GRASS 6.4.1 or GRASS 6.4.2 of William Kyngesburye (and the GRASS version of Michael Barton). It allows us to work with grass.script and Shapely -- View this message in

Re: [GRASS-user] Using Python scripts that call GRASS modules or access GRASS layers from outside the GRASS.app with Mac OS X: a little summary

2012-07-09 Thread gene
ok, thanks, you are right, I wrote too fast... So, the correct environment variables for Mac OS X are: $ export GISBASE=/Applications/GRASS-6.4.app/Contents/MacOS $ export PYTHONPATH=${PYTHONPATH}:$GISBASE/etc/python/ $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GISBASE/lib $ export GIS_LOCK=$$ $

Re: [GRASS-user] Using Python scripts that call GRASS modules or access GRASS layers from outside the GRASS.app with Mac OS X: a little summary

2012-07-08 Thread gene
and I can see that the http://grass.osgeo.org/wiki/GRASS_SoC_Ideas_2012/High_level_map_interaction GRASS SoC Ideas 2012/High level map interaction is a step in the same direction -- View this message in context:

Re: [GRASS-user] r.sun in python loop

2012-07-07 Thread gene
Read http://grass.osgeo.org/wiki/GRASS_and_Python http://grass.osgeo.org/wiki/GRASS_and_Python First, you need to set some environment variables: export GISBASE=/usr/local/grass-6.4/ export PATH=$PATH:$GISBASE/bin:$GISBASE/scripts export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GISBASE/lib # for

Re: [GRASS-user] some issues with r.mapcalc logical AND

2012-07-02 Thread gene
strange, i have no problem with r.mapcalc 'testtrait=if(mapAmapB,1,null())' or r.mapcalc 'testtrait=if(mapA mapB,1,null())' GRASS 6.4.2, Mac OS X -- View this message in context: http://osgeo-org.1560.n6.nabble.com/some-issues-with-r-mapcalc-logical-AND-tp4985299p4985315.html Sent

Re: [GRASS-user] GRASS, ArcGIS, and Python incompatibilties

2012-07-01 Thread gene
Michael Barton wrote Does this mean that we no longer *have* to bundle wxPython with the Mac binaries? That they will work with whatever wxPython is installed (assuming it is within the range of supported versions, of course) regardless of what it was compiled with? it would be easy but

Re: [GRASS-user] GRASS and the Python geospatial modules (Shapely, PySAL, ...)

2012-07-01 Thread gene
1) Sorry but I do not know where to put this part in the wiki 2) Finally, switching from Shapely geometries to GRASS GIS vector is not very complicated - *A single line in Shapely*: line.wkt 'LINESTRING (122286.32470896 120453.251499984866, 123404.265799937601

[GRASS-user] GRASS and the Python geospatial modules (Shapely, PySAL, ...)

2012-06-30 Thread gene
One thing that is not enough highlighted is the ability to use the Python geospatial modules like Shapely of Sean Gillies ( http://pypi.python.org/pypi/Shapely/1.2.15 http://pypi.python.org/pypi/Shapely/1.2.15 ) or PySAL ( http://pypi.python.org/pypi/pysal/1.3.0

Re: [GRASS-user] GRASS, ArcGIS, and Python incompatibilties

2012-06-30 Thread gene
What versions of Python are in the registry database ? What is the error message ? (detail of the version mismatch) You can compare the paths used by the Python versions in ArcGIS (from the Python console) and in GRASS GIS (from the msys shell) import sys print sys.path Normally the result

Re: [GRASS-user] GRASS, ArcGIS, and Python incompatibilties

2012-06-29 Thread gene
at work, we use ArcGIS (Python 2.6), GRASS GIS (Python 2.7) QGIS (Python 2.7) and a standard Python (version 2.5) installed on Windows XP without problem (in the Windows Registry, only Python 2.5 and the Python 2.6 of ArcGIS) *Arcpy* - has no wxPython module: import wx Runtime error type

Re: [GRASS-user] Problem on deleting selected records from Attribute table manager

2012-06-29 Thread gene
it is a known bug in Windows version: http://trac.osgeo.org/grass/ticket/1614 http://trac.osgeo.org/grass/ticket/1614 -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-on-deleting-selected-records-from-Attribute-table-manager-tp4984783p4984786.html Sent from the Grass

Re: [GRASS-user] GRASS, ArcGIS, and Python incompatibilties

2012-06-29 Thread gene
Glynn Clements wrote remove it's bundled Python, unset any PYTHONHOME or PYTHONPATH variables, etc). I repeat, I think this is not the problem. We are running QGIS 1.7.4, 1.8, GRASS GIS 6.2.4 and 7 dev, ArcGIS 10 and standard Python 2.5 without problem (Windows XP) Each version of Python

Re: [GRASS-user] access vertices coordinates of a line from Python

2012-06-26 Thread gene
In fact, you can also use OGR python bindings, it is easy from osgeo import ogr # open grass vector ds = ogr.Open('/grassdata/geol/test/vector/linevector/head') layer = ds.GetLayer(0) layer.GetName() 'linevector' feat = layer.GetFeature(0) geom =

Re: [GRASS-user] VOXEL will not display (3D geological volume modeling)

2012-06-12 Thread gene
Hello In my experience, the problem lies in defining the upper and lower limits of the 3D region (see http://osgeo-org.1560.n6.nabble.com/3D-geological-volume-modeling-raster-3D-is-it-really-possible-td4980148.html 3D geological volume modeling (raster 3D): is it really possible ? ) with bad

Re: [GRASS-user] 3D geological volume modeling (raster 3D): is it really possible ?

2012-06-10 Thread gene
Ok, it works now with the two surfaces http://osgeo-org.1560.n6.nabble.com/file/n4980223/surfacesok.png the volume between the surfaces: http://osgeo-org.1560.n6.nabble.com/file/n4980223/volumesok.png with the base surface: http://osgeo-org.1560.n6.nabble.com/file/n4980223/volumes2ok.png and

Re: [GRASS-user] 3D geological volume modeling (raster 3D): is it really possible ?

2012-06-09 Thread gene
I think that the problem is my understanding of r.to.rast3elev The problem http://osgeo-org.1560.n6.nabble.com/file/n4980189/sondages1.jpg I define the 3D resolution (the lower limit of the formation is 540m and the upper 1330m) g.region res=200 res3=200 t=1400 b=500 tbres=20 (2d/3d

[GRASS-user] automate v.extrude from a table ?

2012-06-02 Thread gene
Hello Is there a way to automate a script with v.extrude? Let me explain, I create boreholes in 3D and I have to make sections according to the layers to generate surfaces http://osgeo-org.1560.n6.nabble.com/file/n4978722/sondseulok.png -

Re: [GRASS-user] automate v.extrude from a table ?

2012-06-02 Thread gene
I forgot, my processing in Python is: base = grass.read_command('v.db.select', map = boreholes, columns = A,B,C,fs=',', flags = 'c') result = base.split('\n') boreholes=[] for bore in boreholes: boreholes(bore.split(',')) and all that is needed is in the

[GRASS-user] Re: Interesting Letter in tree which nentions GRASS

2012-05-22 Thread gene
For the problem, it is interesting to read Academics have protested against Elsevier's business practices for years with little effect. These are some of their objections... and a petition http://thecostofknowledge.com/ The Cost of Knowledge and the position of the journal *Nature* Here is a

[GRASS-user] Re: GIS Lock issue

2012-05-05 Thread gene
Hello, The simplest solution is to remove the file *.gislock* (in the directory /grassdata/yourlocation/yourmapset) -- View this message in context: http://osgeo-org.1560.n6.nabble.com/GIS-Lock-issue-tp4951816p4954099.html Sent from the Grass - Users mailing list archive at Nabble.com.

[GRASS-user] GRASS 7 Mac OS X (M.Barton version) problem

2012-04-08 Thread gene
I have a recurring problem with version 7 of Grass (M.Barton). Every time I start it I get the error message [1]+ Stopped '/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/grass.sh' logout There are stopped jobs. I create a directory, different from that used by GRASS 6 and I can

[GRASS-user] Re: compiling Add-Ons in Mac OS X

2012-03-13 Thread gene
With versions 6.x of William Kynsburye (*http://www.kyngchaos.com/software/grass*) or Michael Barton ( http://www.public.asu.edu/~cmbarton/files/grass_mac/OSX10.6-snowleopard/ http://www.public.asu.edu/~cmbarton/files/grass_mac/OSX10.6-snowleopard/ ), I use the build template of William

[GRASS-user] GRASS vector in a vrt file ?

2012-03-13 Thread gene
Hello, Is it possible to use Grass 6.4 vector in a vrt file ? I try OGRVRTDataSource OGRVRTLayer name=sond SrcDataSource/home/grassdata/geol/test/vector/sond/head/SrcDataSource SrcLayer1/SrcLayer /OGRVRTLayer OGRVRTDataSource following the specifications of

[GRASS-user] Re: Grass 6.4.2 on mac with lion

2012-02-04 Thread gene
The problem is that GRASS 7 creates a . gislock file in the mapset (or location) before launching the GUI in wxpython (function check_lock() in the Python script grass 70) I tried TRUE instead of FALSE in remove_lockfile = True (ligne 63) but without success -- View this message in context:

[GRASS-user] Re: Grass 6.4.2 on mac with lion

2012-01-22 Thread gene
I'm trying version 7 of Michael Barton (in *Snow Leopard*) and I have a problem when I try to create new locations or use Spearfish, placed in a different folder than the locations of versions 6 Launching wxpython GUI in the background, please wait... GRASS 7.0.svn (spearfish60):~ Sun Jan 22

[GRASS-user] Re: nviz...3D Raster

2011-05-15 Thread gene
You forgot: g.region rast=salsburydem@PERMANENT -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/nviz-3D-Raster-tp6364553p6364962.html Sent from the Grass - Users mailing list archive at Nabble.com. ___ grass-user mailing list

[GRASS-user] d.his in wxGUI ?

2011-04-15 Thread gene
Maybe I'm stupid, but how to apply the command d.his in WxGui raster window for a dem (this possibility existed in the tcl/tk gui version) ? I do not find it in dialogue d.rast display raster. Thanks -- View this message in context:

[GRASS-user] Re: d.his in wxGUI ?

2011-04-15 Thread gene
thanks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/d-his-in-wxGUI-tp6276216p6276542.html Sent from the Grass - Users mailing list archive at Nabble.com. ___ grass-user mailing list grass-user@lists.osgeo.org

[GRASS-user] drape field in wxGUI ?

2011-04-15 Thread gene
second question, I do not find the drape field of tcl/tk Gui in the WxGui to make, for example, topographically shaded image. I can only check overlay (d.rast -o) and select background color. How can I do in WxGui ? Many thanks -- View this message in context:

[GRASS-user] Re: drape field in wxGUI ?

2011-04-15 Thread gene
yes, thanks, I am an old user of the Tcl/Tk interface and I must be accustomed to the new interface ... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/drape-field-in-wxGUI-tp6276644p6277391.html Sent from the Grass - Users mailing list archive at Nabble.com.

[GRASS-user] Re: 3d Geological modelling

2011-02-14 Thread gene
look at http://osgeo-org.1803224.n2.nabble.com/3D-geological-modeling-td4955642.html http://osgeo-org.1803224.n2.nabble.com/3D-geological-modeling-td4955642.html -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/3d-Geological-modelling-tp6023427p6026507.html Sent from

[GRASS-user] Re: Using Access .mdb Files

2011-01-11 Thread gene
try the procedure of http://geospaced.blogspot.com/2009/12/converting-mdb-to-spatialite.html Converting an mdb to spatialite with http://mdbtools.sourceforge.net/ MDB Tools -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Using-Access-mdb-Files-tp5912245p5913618.html

[GRASS-user] 3D geological modeling

2010-04-24 Thread gene
For those who are interested, I wrote a small paper on geological modeling with Grass and Paraview (in french), explaining the approach used with a real example, thanks to information provided by Maciej Tomaszczyk ( http://opengeology.pl/ http://opengeology.pl/ ) Grass Gis and Paraview: 3D