[GRASS-user] Problems with v.in.ogr importing shp files

2009-07-01 Thread Jhon Ortiz




> Hi all.
> Compiled and installed Grass 6.5 from source on a 64x Ubuntu 9.04 
> machine. It seemed to me it worked fine but when I tried to import the 
> curvespear shape file (following the step by step tutorial 
> http://www.ing.unitn.it/~grass/docs/tutorial_62/index.html ) by v.in.ogr 
> function, the procedure didn't go on. In the output window:
> ...
> Layer: curvespear
> Importing map 1755 features...
> 
> and nothing else.
> The imported file is in the right place but with nearly no feature inside.
> 
> I'v been looking for a tip in the user mailing list archive but Rafael 
> Moraes suggestion doesn't help. Added  http://les-ejk.cz/ubuntu 
> repository to source list and reinstalled gdal... but nothing happend.
>The same with Grass 6.2.3. (Maybe I made some newbe mistake in 
> updating gdal).
> Any suggestion?
> Thank you.
> Ferro
> P.S

Hi all,

I have the same problem when I tried to import the shapefile with v.in.org  
I'm working with GRASS 6.4.0svn on a 64x Ubuntu 9.04

In the terminal give this errors
 
GRASS 6.4.0svn (Prueba_location):~ > *** buffer overflow detected ***: v.in.ogr 
terminated
=== Backtrace: =
/lib/libc.so.6(__fortify_fail+0x37)[0x7f95d00bc2c7]
/lib/libc.so.6[0x7f95d00ba170]
/lib/libc.so.6[0x7f95d00b97ab]
/lib/libc.so.6(__snprintf_chk+0x7b)[0x7f95d00b967b]
/usr/lib/libgdal1.5.0.so.1(_ZN10OGRFeature16GetFieldAsStringEi+0x346)[0x7f95d0de2296]
v.in.ogr(main+0x2284)[0x406b50]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f95cffdb5a6]
v.in.ogr[0x403969]

Some advice?

Thaks

John Ortiz


_
Llévate Messenger en el móvil a todas partes ¡Conéctate!
http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] BaseException.message has been deprecated as of Python 2.6

2009-06-19 Thread Jhon Ortiz


Hi all,

I tried to create a new GRASS location with location wizard and gave me this 
errors:

/usr/local/grass-6.4.0RC5/etc/wxpython/gui_modules/gcmd.py:63: 
DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  self.message = message
Traceback (most recent call last):
  File "/usr/local/grass-6.4.0RC5/etc/wxpython/gis_set.py", line 404, in 
OnWizard
gWizard = location_wizard.LocationWizard(self, self.tgisdbase.GetValue())
  File "/usr/local/grass-6.4.0RC5/etc/wxpython/gui_modules/location_wizard.py", 
line 1742, in __init__
success = self.OnWizFinished()
  File "/usr/local/grass-6.4.0RC5/etc/wxpython/gui_modules/location_wizard.py", 
line 1905, in OnWizFinished
success = self.EPSGCreate()
  File "/usr/local/grass-6.4.0RC5/etc/wxpython/gui_modules/location_wizard.py", 
line 2120, in EPSGCreate
p = gcmd.Command(cmdlist, stderr=None)
  File "/usr/local/grass-6.4.0RC5/etc/wxpython/gui_modules/gcmd.py", line 358, 
in __init__
_("Error: ") + self.GetError()))
gui_modules.gcmd.CmdError/usr/local/grass-6.4.0RC5/etc/wxpython/gui_modules/gcmd.py:70:
 DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  message=self.message,

Them I tried delete a location and give me this error:
/usr/local/grass-6.4.0RC5/etc/wxpython/gui_modules/gcmd.py:63: 
DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  self.message = message



Maybe is about python 2.6?  I compiled GRASS 6.4 RC5 in ubuntu hardy with 
python 2.6


Some advice?

Thanks!!


Jhon Ortiz Trujillo 
Bogotá - Colombia 
Celular (057) 311 - 5143146



_
¿Quieres ver los mejores videos de MSN? Enciende Messenger TV
http://messengertv.msn.com/mkt/es-es/default.htm___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


RE: [GRASS-user] Errors in nviz when I tried to compiled GRASS_RC5 (Solved)

2009-06-19 Thread Jhon Ortiz

> Hi,
> 
> 2009/6/19 Jhon Ortiz :
> > j...@cito:/usr/local/src/grass-6.4.0RC4/lib/nviz$ make
> > mkdir -p /usr/local/src/grass-6.4.0RC4/bin.
> > mkdir -p /usr/local/src/grass-6.4.0RC4/dist./include/grass
> 
> 'dist.' is wrong dictionary, there is something wrong with the build system.
> 
> Martin
> 
> -- 
> Martin Landa  * http://gama.fsv.cvut.cz/~landa

I started into the other new folder and gave me this error 

("j...@cito:/usr/local/src/grass-6.4.0RC5/lib/nviz$ make
gcc -I/usr/local/src/grass-6.4.0RC5/dist.x86_64-unknown-linux-gnu/include  -g 
-Wall-fPIC   -DPACKAGE=\""grasslibs"\" -I/usr/include/gdal 
-DPACKAGE=\""grasslibs"\" 
-I/usr/local/src/grass-6.4.0RC5/dist.x86_64-unknown-linux-gnu/include -o 
OBJ.x86_64-unknown-linux-gnu/change_view.o -c change_view.c
In file included from change_view.c:20:
/usr/local/src/grass-6.4.0RC5/dist.x86_64-unknown-linux-gnu/include/grass/nviz.h:21:69:
 error: X11/Xmu/StdCmap.h: No such file or directory
make: *** [OBJ.x86_64-unknown-linux-gnu/change_view.o] Error 1")


I checked about X11/Xmu/StdCmap.h   in this web   
http://packages.ubuntu.com/

and I found StdCmap.h is into the packages libxmu-headers libxmu-dev.  I 
installed this packages and compiled OK


Thanks for your help!

John

 


_
Llévate Messenger en el móvil a todas partes ¡Conéctate!
http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


RE: [GRASS-user] Errors in nviz when I tried to compiled GRASS_RC5 an RC4

2009-06-19 Thread Jhon Ortiz


> Hi,
> 
> 2009/6/19 Jhon Ortiz :
> 
> [...]
> 
> > /usr/local/src/grass-6.4.0RC5/lib/nviz
> > /usr/local/src/grass-6.4.0RC5/gui/wxpython/nviz
> > /usr/local/src/grass-6.4.0RC5/visualization/nviz
> > /usr/local/src/grass-6.4.0RC5/visualization/nviz2/cmd
> >
> > I'm not a expert linux user. Some advice about which is my mistake? and I
> > tried with GRASS_RC4
> > and had the same errors!!
> 
> go to lib/nviz, run make and post there error log. Without log it's
> quite impossible to say what is wrong.
> 
> Martin

This is the log,

j...@cito:/usr/local/src/grass-6.4.0RC4/lib/nviz$ make
mkdir -p /usr/local/src/grass-6.4.0RC4/bin.
mkdir -p /usr/local/src/grass-6.4.0RC4/dist./include/grass
mkdir -p /usr/local/src/grass-6.4.0RC4/dist./lib
mkdir -p /usr/local/src/grass-6.4.0RC4/dist./bin
mkdir -p /usr/local/src/grass-6.4.0RC4/dist./etc
mkdir -p /usr/local/src/grass-6.4.0RC4/dist./driver
mkdir -p /usr/local/src/grass-6.4.0RC4/dist./driver/db
mkdir -p /usr/local/src/grass-6.4.0RC4/dist./fonts
test -d OBJ. || mkdir -p OBJ.
gcc -I/usr/local/src/grass-6.4.0RC4/dist./include  -g -Wall-fPIC   
-DPACKAGE=\""grasslibs"\" -I/usr/include/gdal -DPACKAGE=\""grasslibs"\" 
-I/usr/local/src/grass-6.4.0RC4/dist./include -o OBJ./change_view.o -c 
change_view.c
change_view.c:19:27: error: grass/glocale.h: No such file or directory
change_view.c:20:24: error: grass/nviz.h: No such file or directory
change_view.c: In function ‘Nviz_resize_window’:
change_view.c:43: warning: implicit declaration of function ‘GS_set_viewport’
change_view.c:46: warning: implicit declaration of function ‘GS_set_draw’
change_view.c:46: error: ‘GSD_BACK’ undeclared (first use in this function)
change_view.c:46: error: (Each undeclared identifier is reported only once
change_view.c:46: error: for each function it appears in.)
change_view.c:47: warning: implicit declaration of function ‘GS_ready_draw’
change_view.c:48: warning: implicit declaration of function ‘GS_alldraw_wire’
change_view.c:49: warning: implicit declaration of function ‘GS_done_draw’
change_view.c: At top level:
change_view.c:61: error: expected ‘)’ before ‘*’ token
change_view.c:97: error: expected ‘)’ before ‘*’ token
change_view.c:138: error: expected ‘)’ before ‘*’ token
change_view.c:168: error: expected ‘)’ before ‘*’ token
change_view.c:188: error: expected ‘)’ before ‘*’ token
change_view.c:205: error: expected ‘)’ before ‘*’ token
make: *** [OBJ./change_view.o] Error 1

John

_
Llévate Messenger en el móvil a todas partes ¡Conéctate!
http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Errors in nviz when I tried to compiled GRASS_RC5 an RC4

2009-06-19 Thread Jhon Ortiz


Hi all,

I tried compiled GRASS_RC5 in ubuntu jaunty 64 bits with this options

CFLAGS="-g -Wall" ./configure -with-cxx --enable-64bit -with-postgres \
--with-postgres-includes=/usr/include/postgresql 
--with-postgres-libs=/usr/lib64 \
/postgresql/8.3/lib -with-mysql --with-mysql-includes=/usr/include/mysql \
--with-mysql-libs=/usr/lib64/mysql --with-python=/usr/bin/python2.6-config 
-with-readline \
--with-wxwidgets=/usr/bin/wx-config --with-gdal=/usr/bin/gdal-config \
-with-tcltk-includes=/usr/include/tcl8.5 --with-freetype 
--with-freetype-includes=/usr/include\
/freetype2 --enable-largefile --with-motif -with-proj-share=/usr/share/proj

But with this errors:

Errors in:
/usr/local/src/grass-6.4.0RC5/lib/nviz
/usr/local/src/grass-6.4.0RC5/gui/wxpython/nviz
/usr/local/src/grass-6.4.0RC5/visualization/nviz
/usr/local/src/grass-6.4.0RC5/visualization/nviz2/cmd

I'm not a expert linux user. Some advice about which is my mistake? and I tried 
with GRASS_RC4
and had the same errors!!

Thanks for your help!

 

Jhon Ortiz Trujillo 
Bogotá - Colombia




_
Chatea sin límites en Messenger con la tarifa plana de Orange
http://serviciosmoviles.es.msn.com/messenger/orange.aspx___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


RE: [GRASS-user] Grass 6.4 & python.

2009-04-28 Thread Jhon Ortiz



>I know that the grass 7 will works with python.
>But can I play with grass 6.4 (under Msys) and python?

Yes!!

you can see about that in 
http://grass.osgeo.org/grass64/manuals/html64_user/wxGUI.html

>Case yes, could you send me some tips how

>can I do this?

just type in your terminal grass64 -wxpython

>By the way, running under Windows Vista and/or
>Linux Ubuntu.
 
Thanks a lot
 
milton ribeiro
brazil-toronto
_
Más rápido, sencillo y seguro. Descárgate ya el nuevo Internet Explorer 8 ¡Es 
gratis!
http://www.vivelive.com/ie8 ___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Problem with "location wizard tool" with wxPython GUI:

2009-04-10 Thread Jhon Ortiz


Hi all, 

Im working with GRASS.6.4.0RC3 in Ubuntu Hardy.

I tried to define a new GRASS location with "location wizard tool" with the new 
wxPython GUI:

I choose projection code: ll  = Lat/Lon
And select datum with associated ellipsoid, Datum code = wgs84
   
But when I check my datum with g.proj -d got me this message:

GRASS 6.4.0RC3 (Mamonal_WGS84):~ > g.proj -d
Datum name not present
Datum parameters not present

Then I tried with others Datum code and it gave me the same problem.

I think, maybe is a "location wizard tool" problem in wxPython GUI, because I 
tried in the same 
installation, but with Tcl/Tk GUI "projection values tool"

in the option coordinate system for location, I choose option B = 
Latitude-Longitude
and the option specify datum name, I type wgs84 and for this method is working 
Ok,

GRASS 6.4.0RC3 (Mamonal_WGS84):~ > g.proj -d
GRASS datum code: wgs84
WKT Name: WGS_1984
Datum transformation parameters (PROJ.4 format):
towgs84=0.000,0.000,0.000

Now I solved my problem with tcl/tk GUI, but my question is if somebody have 
been the same problem?
or do you think is a problem with my installation?

Thanks!!


John Ortiz
Bioestratigraphy Team - ICP
Bogotá Colombia
_
Más rápido, sencillo y seguro. Descárgate ya el nuevo Internet Explorer 8 ¡Es 
gratis!
http://www.vivelive.com/ie8 ___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


RE: [GRASS-user] v.in.db accept DECIMAL'S?

2009-04-07 Thread Jhon Ortiz


> On Tue, Apr 7, 2009 at 9:25 AM, Markus Neteler  wrote:
> > On Tue, Apr 7, 2009 at 12:47 AM, Jhon Ortiz  wrote:
> >> Hi all,
> >>
> >> I'm trying to create a new vector (points) map from a mysql database table
> >>
> >> v.in.db --overwrite table=data_wells driver=mysql
> >> database="host=localhost,dbname=Eoceno" x=Este y=Norte z=Salinity_Index
> >> key=Cat output=Pozos
> >>
> >> but I get this error:
> >>
> >> WARNING: MySQL driver: column 'Salinity_Index', type 246 is not supported
> >
> >
> > I have searched that and found
> >
> > grep 246 /usr/include/mysql/mysql_com.h
> >MYSQL_TYPE_NEWDECIMAL=246,
> >
> > I suspect that this change is sufficient to solve the problem:
> > --- db/drivers/mysql/describe.c (revision 36267)
> > +++ db/drivers/mysql/describe.c (working copy)
> > @@ -177,6 +177,7 @@
> >break;
> >
> > case MYSQL_TYPE_DECIMAL:
> > +case MYSQL_TYPE_NEWDECIMAL:
> >*sqltype = DB_SQL_TYPE_DECIMAL;
> >break;
> 
> Ah, I already suggested it in 2007 to someone else but there was
> no feedback:
> https://wald.intevation.org/tracker/index.php?func=detail&aid=524&group_id=21&atid=204
> 
> > Do you have a possibility to compile and test?
> 
> Please :) Or someone else with a running Mysql installation.
> 

Thanks for your help Markus,

I change in

db/drivers/mysql/describe.c

case MYSQL_TYPE_DECIMAL:
case MYSQL_TYPE_NEWDECIMAL:
 *sqltype = DB_SQL_TYPE_DECIMAL;
   break;

and then compiled..

Now, when I tried

v.in.db --overwrite table=data_wells driver=mysql 
database="host=localhost,dbname=Eoceno" 
x=Este y=Norte z=Salinity_Index key=Cat output=Pozos3

The error is:

Writing features...
ERROR: x/y/z column must be integer or double

I change the decimal type by double in mi MySQL database table and now is 
working..

Thanks again,


John Ortiz
Biostratigraphic Group - ICP
Bogotá - Colombia



_
Más rápido, sencillo y seguro. Descárgate ya el nuevo Internet Explorer 8 ¡Es 
gratis!
http://www.vivelive.com/ie8 ___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] v.in.db accept DECIMAL'S?

2009-04-06 Thread Jhon Ortiz

Hi all,

I'm trying to create a new vector (points) map from a mysql database table

v.in.db --overwrite table=data_wells driver=mysql
database="host=localhost,dbname=Eoceno" x=Este y=Norte z=Salinity_Index
key=Cat output=Pozos  

but I get this error:

WARNING: MySQL driver: column 'Salinity_Index', type 246 is not supported
Writing features...
Segmentation fault

In my MySQL database table "Salinity_Index" are decimals numbers and the column 
type is "DECIMAL(6,3) NULL"My question is, Can I work with decimals number in 
module v.in.db?

Need I work with decimals numbers in other column type, maybe FLOAT, DOUBLE?

I'm using GRASS 6.4.0RC3 in ubuntu Hardy and MySQL 5.0.51a-3ubuntu5.4

Some advice?

Regards,


John Ortiz
Bioestratigraphic Group - ICP

Bogotá-Colombia


_
Más rápido, sencillo y seguro. Descárgate ya el nuevo Internet Explorer 8 ¡Es 
gratis!
http://www.vivelive.com/ie8 ___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Some question about r.in.xyz and r.surf.idw

2009-03-09 Thread Jhon Ortiz


Hi all,

Im working with xyz data, the range of my data is:min = 0.046000  max = 
1.358000

And  I'm trying interpolate with r.surf.idw, but the answer is  "Range of data: 
   min = 1  max = 1"

I'm working with these steps:

r.in.xyz input="biomarcadores.txt" output="r_bio" method="mean" type="FCELL" 
fs="|" x=2 y=1 z=4 zscale=1.0  percent=100

r.surf.idw input=r_bio output=r_sup_bio

The problem is when I try work with decimal numbers.


some advice about how I'll work with decimal numbers in this process?


Thanks for your help!!

John
Grupo Bioestratigrafia - ICP
Bogotá - Colombia

_
¿Quieres ver los mejores videos de MSN? Enciende Messenger TV
http://messengertv.msn.com/mkt/es-es/default.htm___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


RE: [GRASS-user] compile grass6.4 problem with tcl.h

2009-02-25 Thread Jhon Ortiz


> From: wrobe...@csir.co.za
> To: grass-user@lists.osgeo.org

> Dear Colleagues 
> 
> While trying to compile grass version 6.4.0RC3 I have come across a problem 
> with locating Tcl.h. Here is my install command 
> 
> wrobe...@wroberts-desktop:/usr/local/src/grass-6.4.0RC3$ sudo CFLAGS="-g 
> -Wall" ./configure --with-cxx --with-postgres --with-mysql --with-sqlite 
> --with-ffmpeg --with-odbc --with-blas --with-lapack --with-motif --with-cairo 
> --with-freetype --with-glw --with-nls --with-readline --with-opendwg 
> --with-python=/usr/bin/python2.5 --with-wxwidgets=/usr/bin/wx-config
> 
> here is the last of my output, just as the error occurs.
> 
> checking whether to use PNG... yes
> checking for location of PNG includes... 
> checking for png.h... yes
> checking for location of PNG library... 
> checking for png_read_image in -lpng... yes
> checking whether to use Tcl/Tk... yes
> checking for location of Tcl/Tk includes... 
> checking for tcl.h... no
> configure: error: *** Unable to locate Tcl includes.
> wrobe...@wroberts-desktop:/usr/local/src/grass-6.4.0RC3$ 
> 
> tcl.h is located at the following location 
> /include/tcl8.4/tcl.h
> 
> How do I tell Grass where to find tcl.h?
> 
> I have tried adding the following to the above mentioned command but it does 
> not seem to help.
> --with-tcl=/include/tcl8.4/tcl.h


Is  only configure the tcl8.4 path

Can you try adding   something like 
-with-tcltk-includes=/usr/include/tcl8.4 (but check the "library tcl8.4" 
path in your computer)

> 
> Any help would be greatly appreciated
> 
> Many thanks,
> Wes
> 
> 


John Ortiz
Bioestratigraphic - Group - ICP
Bogotá - Colombia


_
Llévate Messenger en tu móvil allá donde vayas ¿A qué esperas?
http://serviciosmoviles.es.msn.com/___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] xganim tools

2009-02-05 Thread Jhon Ortiz





Hi,

I tried use xganim for animating a raster files. 
http://grass.itc.it/grass62/manuals/html62_user/xganim.html

when I  typed xganim, the answer is command not found


GRASS 6.4.0RC2 (superficie_aguacate):~ > xganim
bash: xganim: command not found

Im working with grass 6.4.0RC2 in Ubuntu 8.04.

But, I have in the same machine grass 63 too, and in this version this tool is 
working very good.

My question is:
This tools is available in grass 6.4.ORC2, o maybe is a wrong in my compiled 
file?

Some advice?


Regards,


Jhon Ortiz Trujillo 
Bioestratigrafia - ICP
Bogotá - Colombia 


_
Anímate y disfruta con los mejores juegos de Messenger, ¡descúbrelos!
http://www.vivelive.com/juegos/  ___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


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

2009-01-31 Thread Jhon Ortiz


> > Hi to all,
> >
> >
> > Im working with grass 6.4.0RC2 in Ubuntu 8.04.
> >
> >
> > I tried Interactively create profile of a raster map.
> > I drew Profile transect with the mouse in map display,
> > but when I make click in the profile button to create the profile,  
> > don't display anything
> > and gave me  this error:
> >
> > Traceback (most recent call last):
> >  File "/usr/local/grass-6.4.0RC2/etc/wxpython/gui_modules/p
> > rofile.py", line 449, in OnCreateProfile
> >
> > self.DrawPlot()
> >  File "/usr/local/grass-6.4.0RC2/etc/wxpython/gui_modules/p
> > rofile.py", line 474, in DrawPlot
> >
> > legend=r['plegend'])
> >  File "/usr/lib/python2.5/site-
> > packages/wx-2.8-gtk2-unicode/wx/lib/plot.py", line 224, in
> > __init__
> >
> > PolyPoints.__init__(self, points, attr)
> >  File "/usr/lib/python2.5/site-
> > packages/wx-2.8-gtk2-unicode/wx/lib/plot.py", line 124, in
> > __init__
> >
> > self._points =
> > _Numeric.array(points).astype(_Numeric.Float64)
> > ValueError
> > :
> > matrices are not aligned for copy
> >
> >
> > Some advice?
> 
> You need to have numpy or numarray installed for profiling to work in  
> the wxPython gui. Have you installed one of these?
> 
> Michael


I just install the package python-numpy and now this tool working very good.


Michael, Thanks for your help .


John Ortiz
Bioestratigrafia-ICP
Bogota-Colombia


_
Consigue gratis el nuevo Messenger. ¡Descárgatelo! 
http://download.live.com/___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] profile tools in GRASS GIS 6.4.ORC2

2009-01-30 Thread Jhon Ortiz


Hi to all,


Im working with grass 6.4.0RC2 in Ubuntu 8.04.


I tried Interactively create profile of a raster map. 
I drew Profile transect with the mouse in map display,
but when I make click in the profile button to create the profile, don't 
display anything
and gave me  this error:

Traceback (most recent call last):
  File "/usr/local/grass-6.4.0RC2/etc/wxpython/gui_modules/p
rofile.py", line 449, in OnCreateProfile

self.DrawPlot()
  File "/usr/local/grass-6.4.0RC2/etc/wxpython/gui_modules/p
rofile.py", line 474, in DrawPlot

legend=r['plegend'])
  File "/usr/lib/python2.5/site-
packages/wx-2.8-gtk2-unicode/wx/lib/plot.py", line 224, in
__init__

PolyPoints.__init__(self, points, attr)
  File "/usr/lib/python2.5/site-
packages/wx-2.8-gtk2-unicode/wx/lib/plot.py", line 124, in
__init__

self._points =
_Numeric.array(points).astype(_Numeric.Float64)
ValueError
:
matrices are not aligned for copy


Some advice?


Regards,


Jhon Ortiz Trujillo 
Bioestratigrafia - ICP
Bogotá - Colombia 




_
Descubre cómo compartir tus fotos con Windows Live. ¡Pruébalo ya! 
http://home.live.com/___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


RE: [GRASS-user] error running digitzing tool wxpython

2008-11-20 Thread Jhon Ortiz



> Date: Thu, 20 Nov 2008 21:20:22 +0100
> From: [EMAIL PROTECTED]
> To: grass-user@lists.osgeo.org
> Subject: [GRASS-user] error running digitzing tool wxpython
> 
> Hello Grass Usersgroup
> 
> Running on linux open suse 10.3  have download 
> grass-6.4.svn_src_snapshot_2008_11_15.tar.gz
> en install some additional libraries (wxwidget, wxpyton ,swig etc)  and 
> compiled the source-code  include the pyton
> digitizing tool v.digit.


Check if you compiled the source code -with-python
"-with-python" is not enough to get the new wxPython GUI installed.
That is only required for the new vdigit. 

> Running the digitize tool I've the following error masseges:
> 
> if len(self.vdigitMove['id']) > 0:
> TypeError
> :
> tuple indices must be integers
> Traceback (most recent call last):
>   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
> pdisp.py", line 1125, in MouseActions
> 
> self.OnMouseMoving(event)
>   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
> pdisp.py", line 2011, in OnMouseMoving
> 
> if len(self.vdigitMove['id']) > 0:
> TypeError
> :
> tuple indices must be integers
> Traceback (most recent call last):
>   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
> pdisp.py", line 1125, in MouseActions
> 
> self.OnMouseMoving(event)
>   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
> pdisp.py", line 2011, in OnMouseMoving
> 
> if len(self.vdigitMove['id']) > 0:
> TypeError
> :
> tuple indices must be integers
> Traceback (most recent call last):
>   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
> pdisp.py", line 1125, in MouseActions
> 
> self.OnMouseMoving(event)
>   File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
> pdisp.py", line 2011, in OnMouseMoving
> 
> if len(self.vdigitMove['id']) > 0:
> TypeError
> :
> tuple indices must be integers
> 
> 
> What is wrong?
> The vectormap contains floating point coordinates, and reading the 
> report of Martin Landa  (Perugia, 21-22 Feb 2008)
> wxPython-based GUI for GRASS GIS
> 
> "the general display architecture needs to bee improved to support 
> floating-point coordinates"
> Is here the problem
> 
> 
> 
> thanks for help
> 
> Joop Goedbloed
> 

Jhon Ortiz Trujillo 
Geologist - EOS-DTH - ICP
Bogotá - Colombia 


_
Los más de lo más, Especial Rankings
http://events.es.msn.com/dinero/listas/default.aspx___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


RE: [GRASS-user] How to install Grass into Ubuntu

2008-10-20 Thread Jhon Ortiz

  RE: [GRASS-user] How to install Grass into Ubuntu

> > sudo apt-get install grass
> 
> The offical Ubuntu repositories are a bit outdated. A more updated
> repo is the one from Jachym: http://www.les-ejk.cz/ubuntu/
> The Gutsy one has Grass 6.3.0, updated to May 2008.

Im working with Ubuntu 7.10 Gutsy and in this repositories
not is available the version 6.3.0, the laster version in this 
repositories is 6.2.2  (http://www.les-ejk.cz/ubuntu/).
The people who working in Ubuntu and want to work with
other version have to compile it. It's not a so hard task.
http://grass.osgeo.org/wiki/Compile_and_Install

> If you want newer versions... you need to compile it. It's not a so
> hard task, and we can give advices.
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user

_
¿Sigue el calor? Consulta MSN El tiempo
http://eltiempo.es.msn.com/___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


RE: [GRASS-user] connect to postgreSQL

2008-10-04 Thread Jhon Ortiz

> On 04/10/08 16:39, Stanislav Bek wrote:
>> Hi,
>> 
>> I have problem to connect to postgreSQL server from grass.
>> 
>> GRASS 6.3.0 (opava):~> psql -l
>> List of databases
>>Name|  Owner   | Encoding 
>> ---+--+--
>>  gis1  | bekas| UTF8
>>  postgres  | postgres | UTF8
>>  template0 | postgres | UTF8
>>  template1 | postgres | UTF8
>> (4 rows)
>> 
>> GRASS 6.3.0 (opava):~> db.connect driver=pg database=gis1 
>> 
>> GRASS 6.3.0 (opava):~> db.test test=test1
>> create table grass_test1 (i1 integer, d1 double precision, c1 varchar(20))
>> DBMI-Postgres driver error:
>> Cannot connect to Postgres: could not connect to server: No such file or 
>> directory
>>  Is the server running locally and accepting
>>  connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

in the error said, the server is running locally..

Try

GRASS 6.3.0 (opava):~> db.connect driver=pg 
database="host=localhost,dbname=gis1"
db.login user=your user  pass=your password 
db.connect -p
db.tables -p

if not is connection posible. follow you the advice Moritz

John

>> 
>> 
>> ERROR: Unable to open database 
>> ERROR: EXECUTE:  ERROR 
>> 
>> etc.
>> 
>> I use PostgreSQL 8.3.3.
>> 
>> Don't you have an idea why it is not working?
> 
> The error message is quite clear:
> 
> "could not connect to server: No such file or directory
>   Is the server running locally and accepting
>   connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?"
> 
> This is a PostgreSQL issue (you will probably get the same message if 
> you try to connect with 'psql -h localhost gis1').
> 
> This means that PostgreSQL is not installed to accept connections via 
> tcp/. You can change that in the relevant config file (probably 
> something like /etc/postgresql/8.3/main/postgresql.conf - but that 
> depends on your distribution).
> 
> Moritz
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user

_
¡Entra en el Club oficial de Messenger y te enterarás de todas las novedades! 
http://www.vivelive.com/ilovemessenger___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


RE: [GRASS-user] install grass with new wxPython user interface in Ubuntu (Solved)

2008-09-19 Thread Jhon Ortiz

> [cc list]
> 
> Jhon Ortiz wrote:
>>>> But with this errors:
>>>> **
>>>> Errors in:
>>>> /usr/local/src/grass-6.3.0/visualization/nviz
>>>> **
> 
>> When I type
>> cd /usr/local/src/grass-6.3.0/visualization/nviz
>> make
>> 
>> Give me a lot erros, but this errors is because nviz is
>> working with tcltk, and I compiled without tcltk. 
>> I resolved that compiled with tcltk
> 
> ok, it is already fixed in SVN that nviz will only build if Tcl/Tk is
> used:
>   http://trac.osgeo.org/grass/changeset/31328
> 
> but 6.3.0 shipped before that change.
> 
>> [...] and python
>>
>> ./configure -with-cxx -with-gdal=/usr/bin/gdal-config
>> -with-postgres
>> -with-postgres-includes=/usr/include/postgresql
>> -with-postgres-libs=/usr/lib/postgresql/8.2/lib
>> -with-tcltk-includes=/usr/include/tcl8.4 -without-mysql
>> -without-odbc -with-readline -with-fftw
>> -with-fftw-libs=/usr/local/lib -with-freetype
>> --with-freetype-includes=/usr/include/freetype2
>> -enable-largefile -with-python
>> -with-proj-share=/usr/share/proj
> 
> 
> "-with-python" is not enough to get the new wxPython GUI installed.
> That is only required for the new vdigit.
> 
> You will need to install wxPython 2.8 and friends.
> see grass-6.3.0/gui/wxpython/README 
> 
> 
>> But now when I type in the terminal for start grass
>> (grass63 -wxpython), give me this error:
>>  
>> ***
>>>>[EMAIL PROTECTED]:~$ grass63 -wxpython
>> Cleaning up temporary files.
>> Starting GRASS ...
>> Traceback (most recent call last):
>>   File
>> "/usr/local/grass-6.3.0/etc/wxpython/gis_set.py",
>> line 31, in 
>> from gui_modules import globalvar
>>   File
>> "/usr/local/grass-6.3.0/etc/wxpython/gui_modules/globalvar.py",
>> line 48, in 
>> CheckForWx()
>>   File
>> "/usr/local/grass-6.3.0/etc/wxpython/gui_modules/globalvar.py",
>> line 39, in CheckForWx
>> except (ImportError, ValueError,
>> wxversion.VersionError), e:
>> UnboundLocalError: local variable 'wxversion' referenced before
>>  assignment
>> Error in GUI startup. If necessary, please
>> report this error to the GRASS developers.
>> Switching to text mode now.
>> Hit RETURN to continue...
>> ***
> 
> but the Tcl/Tk GUI works, right? and -text mode?
> $ grass63 -tcltk
> 
> I think just the wxPython 2.8 packages are missing.
> 
>> Thanks Hamish and all list
>> 
>> And sorry for repet the post, but is for answer the
>> question to Hamish.
> 
> answers are good to have in the archives for others who search for the
> same error.
>  
>> someone has an idea of how I can install grass with new
>> wxPython user interface in Ubuntu 7.10?
> 
> If you wish to use the new wxGUI I would suggest to download the latest
> 6.4svn source code snapshot. The GUI has seen a lot of improvements.
> 
>   http://grass.osgeo.org/grass64/source/snapshot/
> 
> 
> And see grass64.svn/debian/README.debian there for instructions on how
> to download Debian packaging rules from DebianGIS and build a .deb for
> your version of Ubuntu. (it is almost as simple as "dpkg-buildpackage"
> to create them using the automated scripts)
> 
> or if you prefer just compile it yourself as you have been doing.
> 
> 
> Hamish
   
Just missing packages wxPython 2.8 and friends.
I just install these packages and now is working with Tcl/Tk, wxPhyton and text 
mode.

Thanks for your help Hamish.


John

  
_
¿Eres un cotilla? Disfruta de todas las novedades en MSN Corazón
http://entretenimiento.es.msn.com/corazon/___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] install grass with new wxPython user interface in Ubuntu

2008-09-16 Thread Jhon Ortiz

Hi,

I'm working with grass-6.4.svn_src_snapshot_2008 in Ubuntu Gutsy, with the 
tcl/tk interface. But now I want to work with the new wxPython interface.

I tried install grass 6.3 following the instructions given at 
www.les-ejk.cz/ubuntu/, but in these repository still is grass 6.2.3 with 
tcl/tk. 

after I download grass-6.3.0.tar.gz and compiled 

./configure -with-cxx -with-gdal=/usr/bin/gdal-config -with-postgres 
-with-postgres-includes=/usr/include/postgresql 
-with-postgres-libs=/usr/lib/postgresql/8.2/lib -without-tcltk -without-mysql 
-without-odbc -with-readline -with-fftw -with-fftw-libs=/usr/local/lib 
-with-freetype --with-freetype-includes=/usr/include/freetype2 
-enable-largefile -with-python -with-proj-share=/usr/share/proj

But with this errors:
**
Errors in:
/usr/local/src/grass-6.3.0/visualization/nviz
**

Thanks in advance


Jhon Ortiz Trujillo
Geologist
Bioestratigraphic Group
(EOS-DTH) Instituto Colombiano del petroleo

_
¡Entra en el Club oficial de Messenger y te enterarás de todas las novedades! 
http://www.vivelive.com/ilovemessenger___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Can I import the symbology of the a shapefile to GRASS?

2008-07-09 Thread Jhon Ortiz

Hi, all

I have vector geology maps made in ArcGis. I'm importing the shapefile v.in.ogr 
with attributes data, without problems. I want to import the symbology made in 
ArcGis "colors, symbols and labels", in ArcGis it's stored in files .style .lyr
Can I import the files .style .lyr to GRASS?

I need use this symbology because the colors represent standars attributes of 
the rocks,
and I can't working with random colors.
This maps have approximately 1000 polygons, make colors rules for each polygon 
in GRASS,
is a lot of work and this work was already made in ArcGis.

How should I make this in GRASS?, or can I do this in QGIS?

Thanks for your help


Jhon Ortiz Trujillo 
Bogotá - Colombia 


_
Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar 
siempre a la última
http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance&Brand=WL&RU=http%3a%2f%2fmail.live.com___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


RE: [GRASS-user] How could I uninstall GRASS, for change version?

2008-07-09 Thread Jhon Ortiz


> Date: Tue, 8 Jul 2008 20:47:27 +0200
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: [GRASS-user] How could I uninstall GRASS, for change version?
> CC: grass-user@lists.osgeo.org
> 
> Jhon,
> 
> 
> On Tue, Jul 8, 2008 at 4:50 PM, Jhon Ortiz <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I compiled grass-6.4.svn_src_snapshot_2008_06_28, in Ubuntu 7.10
> >
> > ./configure -with-cxx -with-gdal=/usr/bin/gdal-config -with-postgres 
> > -with-postgres-includes=/usr/includes/postgresql
> > -with-postgres-libs=/usr/lib/postgresql/8.2/lib 
> > -with-tcltk-includes=/usr/include/tcl8.4 -without-mysql -without-odbc
> > -with-readline -with-fftw -with-fftw-libs=/usr/local/lib -with-freetype 
> > --with-freetype-includes=/usr/include/freetype2
> > -enable-largefile -with-python -with-blas -with-lapack 
> > -with-proj-share=/usr/share/proj
> 
> just leave out
> -with-blas -with-lapack
> it's not yet used...
> ...
> > In case of errors please change into the directory with error and run 
> > 'make'.
> 
> this you should do...
> 
> Markus


Markus,

Following your instructions, I compiled grass-6.4.svn_src_snapshot_2008_06_28, 
without errors

Thanks,

John

_
La vida de los famosos al desnudo en MSN Entretenimiento
http://entretenimiento.es.msn.com/___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] How could I uninstall GRASS, for change version?

2008-07-08 Thread Jhon Ortiz

Hi,

I compiled grass-6.4.svn_src_snapshot_2008_06_28, in Ubuntu 7.10 

./configure -with-cxx -with-gdal=/usr/bin/gdal-config -with-postgres 
-with-postgres-includes=/usr/includes/postgresql
-with-postgres-libs=/usr/lib/postgresql/8.2/lib 
-with-tcltk-includes=/usr/include/tcl8.4 -without-mysql -without-odbc
-with-readline -with-fftw -with-fftw-libs=/usr/local/lib -with-freetype 
--with-freetype-includes=/usr/include/freetype2
-enable-largefile -with-python -with-blas -with-lapack 
-with-proj-share=/usr/share/proj

make 
install

But with this errors:
***
Errors in:
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/lib/gmath
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/lib/imagery
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/lib/cluster
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/lib/rst/interp_float
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/general/g.transform
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.cluster
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.gensig
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.gensigset
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.group
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.his.rgb
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.maxlik
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.rectify
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.rgb.his
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.smap/shapiro
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.target
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.pca
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.cca
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.fft
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.ifft
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.zc
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.class
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.ortho.photo/libes
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.ortho.photo/menu
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.ortho.photo/photo.2image
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.ortho.photo/photo.2target
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.ortho.photo/photo.camera
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.ortho.photo/photo.elev
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.ortho.photo/photo.init
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.ortho.photo/photo.rectify
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.ortho.photo/photo.target
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.points
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/imagery/i.vpoints
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/ps/ps.map
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/raster/r.param.scale
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/raster/r.resamp.rst
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/raster/r.surf.random
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/raster/r.surf.gauss
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/raster/simwe/simlib
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/raster/simwe/r.sim.water
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/raster/simwe/r.sim.sediment
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/raster/r.in.gdal
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/raster/r.out.gdal
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/raster/r.surf.fractal
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/vector/v.kernel
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/vector/v.surf.rst
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/vector/lidar/lidarlib
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/vector/lidar/v.surf.bspline
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/vector/lidar/v.outlier
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/vector/lidar/v.lidar.correction
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/vector/lidar/v.lidar.edgedetection
/usr/local/grass-6.4.svn_src_snapshot_2008_06_28/vector/lidar/v.lidar.growing
--
In case of errors please change into the directory with error and run 'make'.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you will
also get errors from anything which uses the library.
--
Finished compilation: Mon Jul  7 09:16:02 COT 2008
make: *** [default] Error 1
*

The modules with errros doesn't working, and I need use some this modules.
Need I uninstall and install other version?
How could I uninstall GRASS, for change version?
Can we help me please?
Thanks
John








Jhon Ortiz Trujillo
Bogotá - Colombia
Celular (057