Re: [GRASS-user] Clip vector to current region

2008-07-06 Thread Markus Neteler
On Sat, Jul 5, 2008 at 7:28 PM, Dwight Needels <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> What is the quickest way to clip a vector to the current region, while
> ending up with the attribute table retaining all original field names and
> data values?

Dwight,

see v.in.region and v.overlay/v.select.

Markus
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] How to combine rasters?

2008-07-06 Thread Nikos Alexandris
On Sun, 2008-07-06 at 04:02 -0700, leonidas300 wrote:
> I have 3 rasters:
> 1. Lakes with value 2.5
> 2. Rivers with value 1
> 3. Mountains above 1000m with value 3
> I need to combine the 3 rasters so as Lakes' values dominate on Rivers' and
> Mountains' values and Rivers' values dominates on Mountains' values. How can
> I achieve that? Is r.patch suitable for that? Where can I find any tutorial
> with raster combination like that? Thank you for any help, Leonidas Greece

Γεια σου Λεωνίδα.

>g.manual r.patch and read the DESCRIPTION to understand the
"hierarchy" when patching.

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] How to combine rasters?

2008-07-06 Thread leonidas300

I have 3 rasters:
1. Lakes with value 2.5
2. Rivers with value 1
3. Mountains above 1000m with value 3
I need to combine the 3 rasters so as Lakes' values dominate on Rivers' and
Mountains' values and Rivers' values dominates on Mountains' values. How can
I achieve that? Is r.patch suitable for that? Where can I find any tutorial
with raster combination like that? Thank you for any help, Leonidas Greece
-- 
View this message in context: 
http://www.nabble.com/How-to-combine-rasters--tp18301033p18301033.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


[GRASS-user] obtaining spatial data from shapefile maps

2008-07-06 Thread Richard Peskin
I want to use GRASS (and QGIS) for analysis of water well locations in  
a town. The basic data has been provided thru (ARCWare) shapefiles.  
While input of data to create the well location point maps is no  
problem, the shapefile format embeds the "real" spatial location data  
in a proprietary file (the .shx index files). So I can input shapefile  
data, including the dBase attributes, I can't get at the spatial  
locations; consequently I can't correct for any location errors made  
as a result of data input mistakes. Is there a way to access these  
shapefile index files using GRASS? Or is there a way I can use that  
fact that I can produce a GRASS location map of points to obtain (say  
a table of) (x,y) relative to some know location on the map? If I  
could solve this problem, I could probably move the whole well data  
set out of shapefiles and into more accessible database system, e.g.  
MySql.

thanks,
--dick peskin






Richard L. Peskin, RLP Consulting, Londonderry, VT
http://www.rlpcon.com
http://www.caip.rutgers.edu/~peskin



___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


PD: [GRASS-user] How to combine rasters?

2008-07-06 Thread Maciej Tomaszczyk
hi
You can use r.mapcalc and if(isnull) function
best
mt


Maciej Tomaszczyk
Polish Geological Institute
Geological Mapping Department
http://www.pgi.gov.pl
http://www.opengeology.pl



-Wiadomość oryginalna-
Od: [EMAIL PROTECTED] w imieniu leonidas300
Wysłano: N 2008-07-06 13:02
Do: grass-user@lists.osgeo.org
Temat: [GRASS-user] How to combine rasters?
 

I have 3 rasters:
1. Lakes with value 2.5
2. Rivers with value 1
3. Mountains above 1000m with value 3
I need to combine the 3 rasters so as Lakes' values dominate on Rivers' and
Mountains' values and Rivers' values dominates on Mountains' values. How can
I achieve that? Is r.patch suitable for that? Where can I find any tutorial
with raster combination like that? Thank you for any help, Leonidas Greece
-- 
View this message in context: 
http://www.nabble.com/How-to-combine-rasters--tp18301033p18301033.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

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] instalation error on Mac

2008-07-06 Thread William Kyngesburye

Almost forgot - new build online with the FFTW linking fixed.

On Jul 3, 2008, at 5:11 PM, William Kyngesburye wrote:

Looks like my FFTW framework got messed up.  I'll look into it  
further and get an updated GRASS binary out soon.


On Jul 3, 2008, at 5:47 PM, Manuel Gerardo Chávez Angeles wrote:



Any feedback?

GRASS 6.3.0 (zonas):~ > v.in.ogr dsn=/manolo/OCDE/GIS/base  
output=ProvinciasEsp layer=Provincias.shp
ERROR 1: dlopen(/Library/Frameworks/GDAL.framework/Versions/1.5/ 
PlugIns/ogr_GRASS.dylib, 1): Library not loaded: /Users/Shared/unix/ 
fftw3-tig/FFTW3.framework/Versions/3.1/FFTW3
Referenced from: /Applications/GRASS-6.3.app/Contents/MacOS/lib/ 
libgrass_gmath.dylib

Reason: image not found
ERROR 1: dlopen(/Library/Frameworks/GDAL.framework/Versions/1.5/ 
PlugIns/ogr_GRASS.dylib, 1): corrupt binary, library ordinal too big

ERROR: Unable to open data source 
GRASS 6.3.0 (zonas):~



-
William Kyngesburye 
http://www.kyngchaos.com/

"This is a question about the past, is it? ... How can I tell that the  
past isn't a fiction designed to account for the discrepancy between  
my immediate physical sensations and my state of mind?"


- The Ruler of the Universe


___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Gdal-config with 6.4svn

2008-07-06 Thread Brian Bishop
Still had this issue with:
--with-includes

Found workaround by changing the first line in gdal-config;
>From this:
CONFIG_LIBS="-L/usr/lib -lgdal1.5.0"
To this:
CONFIG_LIBS="-L/usr/lib -lgdal1.5.0 -I/usr/include/gdal"

Cheers
Brian


On Sat, 2008-07-05 at 20:23 +0200, G. Allegri wrote:

> Solved...
> I was looking for --with-gdal-includes when it was --with-includes
> 
> I need to rest :-)
> 
> 2008/7/5 G. Allegri <[EMAIL PROTECTED]>:
> > Have you solved the problem?
> > I'm facing it too...
> >
> > I've uninstalled libgdal1-1.4.0 and libgdal1-1.4.0-grass, but it
> > doesn't solve it.
> >
> >
> > 2008/7/2 doktoreas <[EMAIL PROTECTED]>:
> >>
> >>
> >>
> >> Markus Neteler OSGeo wrote:
> >>>
> >>>
>  The system is an Ubuntu Hardy with Jachym's repository
> 
>  Gdal installed:
>  libgdal1-1.4.0
>  libgdal1-1.4.0-grass
>  libgdal1-1.5.0
>  libgdal1-dev
> >>>
> >>> personally, I would not mix those versions. One version should
> >>> be enough.
> >>>
> >>>
> >>
> >> Yes, you are right. The 1.4.0 comes with qgis-grass-plugin from Tim
> >> Ubuntu repository. Hopes to see just one repository for Ubuntu (Osgeo?)  :)
> >>
> >> Thanks for all your suggestion.
> >>
> >> Bye
> >> Luca
> >> --
> >> View this message in context: 
> >> http://www.nabble.com/Gdal-config-with-6.4svn-tp18234142p18234719.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
> >>
> >
> 

-- 
Brian Bishop <[EMAIL PROTECTED]>
SOPAC Secretariat
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Clip vector to current region

2008-07-06 Thread Dwight Needels
on 7/6/08 12:00 PM, "Markus Neteler" <[EMAIL PROTECTED]> wrote:

> On Sat, Jul 5, 2008 at 7:28 PM, Dwight Needels <[EMAIL PROTECTED]>
> wrote:
>> Hi all,
>> 
>> What is the quickest way to clip a vector to the current region, while
>> ending up with the attribute table retaining all original field names and
>> data values?
> 
> Dwight,
> 
> see v.in.region and v.overlay/v.select.
> 
> Markus

Thanks, Markus (v.select is exactly what I was looking for).

I had been trying to use v.overlay to clip a line vector map (of roads), but
it added an "a_" prefix to each of the field names in the attribute table. I
also seemed to have to add a centroid to the vector created by g.in.region
to get v.overlay to work. Finally, v.overlay  resulted in 5,451 lines
compared to 5,444 from v.select. The extra lines were copies of 4 lines that
all happen to intersect the binput map boundary.

-Dwight

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Gdal-config with 6.4svn

2008-07-06 Thread maning sambale
I just updated and compiled to day.  Seems to work now.

maning
On 7/7/08, Brian Bishop <[EMAIL PROTECTED]> wrote:
> Still had this issue with:
> --with-includes
>
> Found workaround by changing the first line in gdal-config;
> >From this:
> CONFIG_LIBS="-L/usr/lib -lgdal1.5.0"
> To this:
> CONFIG_LIBS="-L/usr/lib -lgdal1.5.0 -I/usr/include/gdal"
>
> Cheers
> Brian
>
>
> On Sat, 2008-07-05 at 20:23 +0200, G. Allegri wrote:
>
>> Solved...
>> I was looking for --with-gdal-includes when it was --with-includes
>>
>> I need to rest :-)
>>
>> 2008/7/5 G. Allegri <[EMAIL PROTECTED]>:
>> > Have you solved the problem?
>> > I'm facing it too...
>> >
>> > I've uninstalled libgdal1-1.4.0 and libgdal1-1.4.0-grass, but it
>> > doesn't solve it.
>> >
>> >
>> > 2008/7/2 doktoreas <[EMAIL PROTECTED]>:
>> >>
>> >>
>> >>
>> >> Markus Neteler OSGeo wrote:
>> >>>
>> >>>
>>  The system is an Ubuntu Hardy with Jachym's repository
>> 
>>  Gdal installed:
>>  libgdal1-1.4.0
>>  libgdal1-1.4.0-grass
>>  libgdal1-1.5.0
>>  libgdal1-dev
>> >>>
>> >>> personally, I would not mix those versions. One version should
>> >>> be enough.
>> >>>
>> >>>
>> >>
>> >> Yes, you are right. The 1.4.0 comes with qgis-grass-plugin from Tim
>> >> Ubuntu repository. Hopes to see just one repository for Ubuntu (Osgeo?)
>> >>  :)
>> >>
>> >> Thanks for all your suggestion.
>> >>
>> >> Bye
>> >> Luca
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/Gdal-config-with-6.4svn-tp18234142p18234719.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
>> >>
>> >
>>
>
> --
> Brian Bishop <[EMAIL PROTECTED]>
> SOPAC Secretariat
>


-- 
|-|--|
| __.-._  |"Ohhh. Great warrior. Wars not make one great." -Yoda |
| '-._"7' |"Freedom is still the most radical idea of all" -N.Branden|
|  /'.-c  |Linux registered user #402901, http://counter.li.org/ |
|  |  /T  |http://esambale.wikispaces.com|
| _)_/LI
|-|--|
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user