[GRASS-user] how to import vector file

Pawan Joshi josh_0882 at yahoo.com
Mon May 14 10:18:12 EDT 2007


Hello all,
   
     how can i open the vector file that is with extention dgn.

Thanks



grassuser-request at grass.itc.it wrote: Send grassuser mailing list submissions to
 grassuser at grass.itc.it

To subscribe or unsubscribe via the World Wide Web, visit
 http://grass.itc.it/mailman/listinfo/grassuser
or, via email, send a message with subject or body 'help' to
 grassuser-request at grass.itc.it

You can reach the person managing the list at
 grassuser-owner at grass.itc.it

When replying, please edit your Subject line so it is more specific
than "Re: Contents of grassuser digest..."


Today's Topics:

   1. Re: bugtracker (Maciej Sieczka)
   2. Re: Again: Problem with WMS-Services (Maciej Sieczka)
   3. Re: RGB to Grayscale (Markus Neteler)
   4. Re: RGB to Grayscale (Glynn Clements)
   5. Re: RGB to Grayscale (Hamish)
   6. Re: RGB to Grayscale (Glynn Clements)
   7. Re: gdal - r.in.onearth (Hamish)
   8. Re: which version of GRASS should I choose to install in a
      Suse 10.2 i386 version ? (Raymond Fu)
   9. Re: which version of GRASS should I choose to install in a
      Suse 10.2 i386 version ? (Stephan Holl)
  10. Re: which version of GRASS should I choose to install in a
      Suse 10.2 i386 version ? (Otto Dassau)


----------------------------------------------------------------------

Message: 1
Date: Sat, 12 May 2007 12:10:42 +0200
From: Maciej Sieczka 
Subject: Re: [GRASS-user] bugtracker
To: Helmut Kudrnovsky 
Cc: grassuser at grass.itc.it
Message-ID: <464592A2.3050301 at o2.pl>
Content-Type: text/plain; charset=ISO-8859-2

Helmut Kudrnovsky wrote:
> hi,
> 
> i've looked at the new bugtracker, but there was the following error
> message:

GForge maintenance was annouced for Monday, thus temporary access
problems are to be expected. See my previous post. Maybe they have just
started earlier than announced.

Maciek



------------------------------

Message: 2
Date: Sat, 12 May 2007 12:17:36 +0200
From: Maciej Sieczka 
Subject: Re: [GRASS-user] Again: Problem with WMS-Services
To: Hamish 
Cc: grassuser at grass.itc.it, Christian Braun 
Message-ID: <46459440.3070903 at o2.pl>
Content-Type: text/plain; charset=ISO-8859-2

Hamish wrote:

> Are you using Ubuntu and GRASS 6.2.1? Ubuntu uses "dash" as it's /bin/sh
> instead of Bash.

To be exact, only Ubuntu > 6.06.1 uses dash. All previous, until and
including Dapper 6.06.1 use bash.

Maciek



------------------------------

Message: 3
Date: Sat, 12 May 2007 19:21:42 +0200
From: Markus Neteler 
Subject: Re: [GRASS-user] RGB to Grayscale
To: grassuser 
Message-ID: <20070512172142.GA22124 at bartok.itc.it>
Content-Type: text/plain; charset=us-ascii

On Thu, May 10, 2007 at 06:14:31PM +0100, Glynn Clements wrote:
> To convert to greyscale, you would normally just use the intensity.
> 
> Also, note that the "intensity" map generated by i.rgb.his is
> completely bogus.

Should be reported as bug then/fixed?

Markus



------------------------------

Message: 4
Date: Sat, 12 May 2007 20:19:41 +0100
From: Glynn Clements 
Subject: Re: [GRASS-user] RGB to Grayscale
To: Markus Neteler 
Cc: grassuser 
Message-ID: <17990.4941.9454.816806 at cerise.gclements.plus.com>
Content-Type: text/plain; charset=us-ascii


Markus Neteler wrote:

> > To convert to greyscale, you would normally just use the intensity.
> > 
> > Also, note that the "intensity" map generated by i.rgb.his is
> > completely bogus.
> 
> Should be reported as bug then/fixed?

Probably not; presumably, the existing behaviour was useful for
something, otherwise it wouldn't have been written that way. But the
result isn't what most people would consider "intensity".

The most common RGB to intensity transformations are either an
unweighted mean or weighted a mean using the NTSC weights (30/59/11).

At most, the manual page should document the calculation.

      scaler = (double) rowbuffer[0][sample];
      scaler /= 255.0;
      scaleg = (double) rowbuffer[1][sample];
      scaleg /= 255.0;
      scaleb = (double) rowbuffer[2][sample];
      scaleb /= 255.0;
 
      high = scaler;
      if (scaleg > high)
 high = scaleg;
      if (scaleb > high)
 high = scaleb;
      low = scaler;
      if (scaleg < low)
 low = scaleg;
      if (scaleb < low)
 low = scaleb;
      /*
 calculate the lightness (intensity)
 */
      intens = ((high + low) / 2.0);

IOW: i = (min(r,g,b) + max(r,g,b))/2

Note that the 

Beyond that, it might be worth resurrecting rgb.hsv.sh and hsv.rgb.sh
from 5.3. Although the V of HSV still isn't reasonable for a normal
greyscale conversion (v = max(r,g,b)), the RGB<->HSV conversion
performed by those scripts is the usual one, e.g.:

 http://en.wikipedia.org/wiki/HSV_color_space

-- 
Glynn Clements 



------------------------------

Message: 5
Date: Sun, 13 May 2007 16:22:18 +1200
From: Hamish 
Subject: Re: [GRASS-user] RGB to Grayscale
To: Glynn Clements 
Cc: grassuser at grass.itc.it
Message-ID: <20070513162218.05e16d70.hamish_nospam at yahoo.com>
Content-Type: text/plain; charset=US-ASCII

Glynn Clements wrote:
> IOW: i = (min(r,g,b) + max(r,g,b))/2
> 
> Note that the 
> 
> Beyond that, it might be worth resurrecting rgb.hsv.sh and hsv.rgb.sh


did something interesting get lost after "Note that the" ?


Hamish



------------------------------

Message: 6
Date: Sun, 13 May 2007 08:05:20 +0100
From: Glynn Clements 
Subject: Re: [GRASS-user] RGB to Grayscale
To: Hamish 
Cc: grassuser at grass.itc.it
Message-ID: <17990.47280.382596.679540 at cerise.gclements.plus.com>
Content-Type: text/plain; charset=us-ascii


Hamish wrote:

> > IOW: i = (min(r,g,b) + max(r,g,b))/2
> > 
> > Note that the 
> > 
> > Beyond that, it might be worth resurrecting rgb.hsv.sh and hsv.rgb.sh
> 
> did something interesting get lost after "Note that the" ?

No.

I think that I was about to write something like "Note that the
calculation performed by rgb.hsv.sh ..." before rewording it.

-- 
Glynn Clements 



------------------------------

Message: 7
Date: Mon, 14 May 2007 20:33:29 +1200
From: Hamish 
Subject: Re: [GRASS-user] gdal - r.in.onearth
To: Markus Neteler 
Cc: grassuser at grass.itc.it
Message-ID: <20070514203329.101fbaa8.hamish_nospam at yahoo.com>
Content-Type: text/plain; charset=US-ASCII

Hamish:
> > G63> g.region -b
> > pj_transform() failed
> > cause: failed to load NAD27-83 correction file
> > ERROR: Error in pj_do_proj (projection of input coordinate pair)
> > 
> > that doesn't look good.

Markus:
> (as you will know)
> It indicates that 
>  http://proj.maptools.org/
>  -> proj-datumgrid-1.3.zip
>     ftp://ftp.remotesensing.org/proj/proj-datumgrid-1.3.zip
> 
> wasn't expanded in nad/ before compiling proj4.


The error was because I had changed the region to match a XY raster,
well outside of the location's nad grid file coverage.


### Spearfish60 location
G63> g.region rast=elevation.dem
G63> g.region -b
north longitude:  44:30:05.90947N
south longitude:  44:22:23.520696N
west latitude:    103:52:14.440271W
east latitude:    103:37:45.943809W
center latitude:  103:45:00.19204W
center longitude: 44:26:14.715083N

G63> g.region rast=xy2 -p
projection: 1 (UTM)
zone:       13
datum:      nad27
ellipsoid:  clark66
north:      1025
south:      -1025
west:       -1025
east:       1025
nsres:      50
ewres:      50
rows:       41
cols:       41
cells:      1681

G63> g.region -b
pj_transform() failed
cause: failed to load NAD27-83 correction file
ERROR: Error in pj_do_proj (projection of input coordinate pair)


I have seen this before when overlaying a geo-grid on a country-scale
zoom.

At minimum, the error message is misleading and should be changed.
It would be nicer if we could somehow know the extents of the nad file
and produce an out-of-region error instead.

r.in.onearth is not in GRASS CVS, otherwise about now I'd add a
if [ $? -ne 0 ] ; then
  echo "There was a problem"
  exit 1
fi
test just after the g.region call in the script.


Hamish



------------------------------

Message: 8
Date: Mon, 14 May 2007 18:07:52 +0800 (CST)
From: Raymond Fu 
Subject: Re: [GRASS-user] which version of GRASS should I choose to
 install in a Suse 10.2 i386 version ?
To: stephan.holl at intevation.de, neteler at itc.it
Cc: grassuser at grass.itc.it
Message-ID: <859228.66099.qm at web36102.mail.mud.yahoo.com>
Content-Type: text/plain; charset="iso-8859-1"

hi Markus,Stephan,

Thanks, it can proceed installation of first few files as stated in readme file.  However when  grass-6.2.1-1suse10.2.i586.rpm is installed, it returns below error?   How can I proceed the installation?   Do I need to install certain extra file first?

linux-s3qw:~/Desktop/GRASS# rpm -Uhv grass-6.2.1-1suse10.2.i586.rpm 
error: Failed dependencies:
        unixODBC is needed by grass-6.2.1-1suse10.2.i586
        fftw3 is needed by grass-6.2.1-1suse10.2.i586
        libfftw3.so.3 is needed by grass-6.2.1-1suse10.2.i586
        libmysqlclient.so.15 is needed by grass-6.2.1-1suse10.2.i586
        libmysqlclient.so.15(libmysqlclient_15) is needed by grass-6.2.1-1suse10.2.i586
        libodbc.so.1 is needed by grass-6.2.1-1suse10.2.i586


Thanks,

Raymond


Stephan Holl  wrote: Hello Raymond,

Raymond Fu , [20070511-17:28:04]:

> Thanks.  However when I run the installation, it returns errors as
> belows.  How can I proceed the installation?  Did I miss certain
> settings?
> 
> OSS at linux-s3qw:~/Desktop/Work/OpenSource/GRASS/SuseV10.2> rpm -Uhv
> geos-2.2.3-1suse10.2.i586.rpm error: can't create transaction lock
> on /var/lib/rpm/__db.000

You need to be root to install RPM-packages. This should cure the above
behaviour.

Best

 Stephan


-- 
Stephan Holl , http://intevation.de/~stephan
Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabrück - HR B 18998
Geschäftsführer:  Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner


 Send instant messages to your online friends http://uk.messenger.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://grass.itc.it/pipermail/grassuser/attachments/20070514/0b2cf20e/attachment-0001.html

------------------------------

Message: 9
Date: Mon, 14 May 2007 12:13:49 +0200
From: Stephan Holl 
Subject: Re: [GRASS-user] which version of GRASS should I choose to
 install in a Suse 10.2 i386 version ?
To: Raymond Fu 
Cc: grassuser at grass.itc.it
Message-ID: <20070514121349.237a227c at thoe.hq.intevation.de>
Content-Type: text/plain; charset=ISO-8859-15

Hello Raymond,

Raymond Fu , [20070514 - 18:07:52]

> hi Markus,Stephan,
> 
> Thanks, it can proceed installation of first few files as stated in
> readme file.  However when  grass-6.2.1-1suse10.2.i586.rpm is
> installed, it returns below error?   How can I proceed the
> installation?   Do I need to install certain extra file first?
> 
> linux-s3qw:~/Desktop/GRASS# rpm -Uhv grass-6.2.1-1suse10.2.i586.rpm 
> error: Failed dependencies:
>         unixODBC is needed by grass-6.2.1-1suse10.2.i586
>         fftw3 is needed by grass-6.2.1-1suse10.2.i586
>         libfftw3.so.3 is needed by grass-6.2.1-1suse10.2.i586
>         libmysqlclient.so.15 is needed by grass-6.2.1-1suse10.2.i586
>         libmysqlclient.so.15(libmysqlclient_15) is needed by
> grass-6.2.1-1suse10.2.i586 libodbc.so.1 is needed by
> grass-6.2.1-1suse10.2.i586

These files need to be installes using your suse-installer called yast.
After that, you need to do:
rpm -Uhv grass-6.2.1-1suse10.2.i586.rpm

This should work then.

Best
 Stephan



-- 
Stephan Holl , http://intevation.de/~stephan
Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabrück - HR B 18998
Geschäftsführer:  Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner



------------------------------

Message: 10
Date: Mon, 14 May 2007 12:49:46 +0200
From: Otto Dassau 
Subject: Re: [GRASS-user] which version of GRASS should I choose to
 install in a Suse 10.2 i386 version ?
To: Raymond Fu 
Cc: grassuser at grass.itc.it
Message-ID: <20070514124946.7a4a47ee at localhost.localdomain>
Content-Type: text/plain; charset=US-ASCII

On Mon, 14 May 2007 18:07:52 +0800 (CST)
Raymond Fu  wrote:

> hi Markus,Stephan,
> 
> Thanks, it can proceed installation of first few files as stated in readme
file.  However when  grass-6.2.1-1suse10.2.i586.rpm is installed, it returns
below error?   How can I proceed the installation?   Do I need to install
certain extra file first?
> 
> linux-s3qw:~/Desktop/GRASS# rpm -Uhv grass-6.2.1-1suse10.2.i586.rpm 
> error: Failed dependencies:
>         unixODBC is needed by grass-6.2.1-1suse10.2.i586
>         fftw3 is needed by grass-6.2.1-1suse10.2.i586
>         libfftw3.so.3 is needed by grass-6.2.1-1suse10.2.i586
>         libmysqlclient.so.15 is needed by grass-6.2.1-1suse10.2.i586
>         libmysqlclient.so.15(libmysqlclient_15) is needed by
>         grass-6.2.1-1suse10.2.i586
>         libodbc.so.1 is needed by grass-6.2.1-1suse10.2.i586

all depending packages are provided with your installation CD or DVD, or you can
download the packages from Opensuse:

http://download.opensuse.org/distribution/10.2/repo/oss/suse/i586/

in your case you probably need the packages:

- unixODBC-2.2.12-13.i586.rpm
- fftw3-3.1.2-19.i586.rpm 
- mysql-client-5.0.26-12.i586.rpm  

as Stephan said, the easiest way is to open YAST and search for the depending
packages.

regards,
 Otto

> Thanks,
> 
> Raymond
> 
> 
> Stephan Holl  wrote: Hello Raymond,
> 
> Raymond Fu , [20070511-17:28:04]:
> 
> > Thanks.  However when I run the installation, it returns errors as
> > belows.  How can I proceed the installation?  Did I miss certain
> > settings?
> > 
> > OSS at linux-s3qw:~/Desktop/Work/OpenSource/GRASS/SuseV10.2> rpm -Uhv
> > geos-2.2.3-1suse10.2.i586.rpm error: can't create transaction lock
> > on /var/lib/rpm/__db.000
> 
> You need to be root to install RPM-packages. This should cure the above
> behaviour.
> 
> Best
> 
>  Stephan
> 
> 


-- 



------------------------------

_______________________________________________
grassuser mailing list
grassuser at grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser


End of grassuser Digest, Vol 13, Issue 16
*****************************************



Pawan Joshi 
   
  

 

       
---------------------------------
Luggage? GPS? Comic books? 
Check out fitting  gifts for grads at Yahoo! Search.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20070514/fb3c9ba4/attachment.html


More information about the grass-user mailing list