Re: [GRASS-user] Perpendicular projection of points onto line

2012-05-11 Thread Maris Nartiss
v.profile is designed to do exactly what You are looking for.

http://grass.osgeo.org/wiki/GRASS_AddOns#v.profile

Maris.

2012/5/10 Carlos Grohmann carlos.grohm...@gmail.com:
 Hi all
 I'm thinking if  there is a way to project a series of points into a line,
 but this projection must be in a direction perpendicular to the line.

 Tks

 --
 Carlos Grohmann
 Sent with Sparrow


 ___
 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] convert many files together at once

2012-05-11 Thread giannis Nj

Hi,

is there any option so I can convert many files or a folder (for example, 500 
images from .asc to .tif) together at once, so that they will have matching 
color analysis? I use to do this untill now with Globalmapper, the batch 
convert/reproject option and I would like to do it through Grass or another 
open source gis program. 

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


Re: [GRASS-user] v.to.averline -- script to find averaging line(s) of input vector map

2012-05-11 Thread Paolo Cavallini
Il 11/05/2012 13:03, Alexander Muriy ha scritto:

 I wrote shell script to find average line(s) of input vector map.

 Example picture in includes.

quite nice, thanks. this solves a long-standing problem, for which I never 
found a
satisfactory solution. very good for averaging multiple GPS tracks of the same 
road
(I think OSMers will appreciate this).
All the best.
-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] v.to.averline -- script to find averaging line(s) of input vector map

2012-05-11 Thread Paolo Cavallini
Il 11/05/2012 13:05, Paolo Cavallini ha scritto:
 Il 11/05/2012 13:03, Alexander Muriy ha scritto:
 
 I wrote shell script to find average line(s) of input vector map.

BTW: why not adding it to GRASS trunk?

-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] convert many files together at once

2012-05-11 Thread Daniel Victoria
There are several options. You could do a shell script to import all
files in grass (very easy in linux) or I believe grass gui has a batch
import feature. Also, QGis has a gdal plugin that will let you convert
several files at once (I think it's in raster / gdaltools /
transform).

To set the same color for all rasters, once in grass you can see what
is your high and low value and set the correct color for one of the
rasters. Then you just use r.colors to copy the colortable from one
raster to all the rest.

cheers
Daniel

On Fri, May 11, 2012 at 5:23 AM, giannis Nj netsag...@hotmail.com wrote:
 Hi,

 is there any option so I can convert many files or a folder (for example,
 500 images from .asc to .tif) together at once, so that they will have
 matching color analysis? I use to do this untill now with Globalmapper, the
 batch convert/reproject option and I would like to do it through Grass or
 another open source gis program.

 Thank you.

 ___
 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] r.finder

2012-05-11 Thread ricerca
 
 
dear all, 
  I recently published a grass script for focussing surveys. The name is 
r.finder, hoping it can be of help for somebody... you can find it at:
 
www.palombini.net/sw/finder 
 
with explanations, manual and a brief tutorial 
(the script purposes summary is copied below) 
 
All the bestAgu 
 
 
 
 
 -
r.finder
by Augusto Palombini
r.finder is a
GRASS-GIS script created for the intelligent geographic survey, in
order to check the analogies of the places where some known items are
located and show the most similar areas in the region. r.finder
outs a map containing all cells matching the same combination of
thematic maps parameters of the non-null/non-zero cells in the input
map. May out as well a statistical report and graphs of the cell
values. 
 
 
 
 
 
 
 
 
 
 
 
 
 
o 
 Dr    Augusto Palombini PhD    
www.palombini.net  -    archeologo   -   archaeologist   
-     ricercatore - researcher CNR   
(National Research Council of Italy)ITABC - Institute for Technologies applied 
to Cultural Heritage Virtual Heritage Lab  
http://www.vhlab.itabc.cnr.it  (+39)  06 90672721  -  06 
90672448o
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] convert many files together at once

2012-05-11 Thread Markus Neteler
On Fri, May 11, 2012 at 10:23 AM, giannis Nj netsag...@hotmail.com wrote:
 is there any option so I can convert many files or a folder (for example,
 500 images from .asc to .tif) together at once,

gdalwarp can do that well:

RES=10.0
BIGTIFF=-co BIGTIFF=YES

# in megabytes
CACHE=--config GDAL_CACHEMAX 8000 -wm 8000

LIST=`ls ??.tif`

# fix some no data on the fly
# for reprojection, using -r and -tr (don't use otherwise)
gdalwarp $CACHE $BIGTIFF -srcnodata 65535 -dstnodata 65535 -r bilinear
-tr $RES $RES $LIST out_$RES.tif
gdaladdo out_$RES.tif 2 4 8 16 32


 so that they will have matching color analysis?

This would require histogram matching.

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


[GRASS-user] Re: grass-user Digest, Vol 73, Issue 25

2012-05-11 Thread Alexander Muriy
 Il 11/05/2012 13:05, Paolo Cavallini ha scritto:
  Il 11/05/2012 13:03, Alexander Muriy ha scritto:
 
  I wrote shell script to find average line(s) of input vector map.

 BTW: why not adding it to GRASS trunk?


Thanks Paolo :)  I'll add it soon at add-ons wiki page, and then can add it
to AddOns SVN repository.
Short manual also needed to be made :)
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Re: r.finder

2012-05-11 Thread Alexander Muriy
   I recently published a grass script for focussing surveys. The name is
 r.finder, hoping it can be of help for somebody...


Augusto, great news :) I'll test it in my geomorphological work surely. You
would not want to add it to GRASS-Addons wiki page (
http://grass.osgeo.org/wiki/GRASS_AddOns)?

One note: in GRASS shell scripts it's usually better to use:

-- module g.message instead of standard echo

-- special temp files (made with g.tempfile):

# create temporary file
TMP1=$(g.tempfile pid=$$)
if [ $? -ne 0 ] || [ -z $TMP1 ] ; then
g.message -e ERROR: Unable to create temporary files.
exit 1
fi


-- cleanup function and some actions for the case of user exit


cleanup()
{
g.mremove -f vect=MY_TEMP_VECTOR --q
rm -f $TMP1*

}

## what to do in case of user break:
exitprocedure()
{
echo User break!
cleanup
exit 1
}

## shell check for user break (signal list: trap -l)
trap exitprocedure 2 3 15


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


[GRASS-user] LLE

2012-05-11 Thread jayasree saha
to perform Local Linear Embeeding i need to perform KNN.but i do not
understand how to perform KNN in hyperspectral image.plz suggest me/provide
me some gud paper.thanks

-- 
with regards
j@y@sree
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] wms import fail

2012-05-11 Thread javier Garcia Prieto

Hi, Im trying to import some maps from Inegi Server
http://gaia.inegi.org.mx/NLB/mdm5.wms

but I only have this mesage. What can I do?

2012-05-11 14:44:51 URL:http://gaia.inegi.org.mx/NLB/mdm5.wms [120596] - 
/home/loki/grassdata/DF/Df_ASTGMT2_UTM_WGS84/PERMANENT/.tmp/valhalla/11235.0capabilities.xml
 [1]
sed: -e expresión #1, carácter 19: opción desconocida para `s'
grep: escribiendo la salida: Tubería rota
grep: escribiendo la salida: Tubería rota

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


Re: [GRASS-user] wms import fail

2012-05-11 Thread Hamish
Javier wrote:
 Hi, Im trying to import some maps from Inegi Server
 http://gaia.inegi.org.mx/NLB/mdm5.wms

 but I only have this mesage. What can I do?

 2012-05-11 14:44:51 URL:http://gaia.inegi.org.mx/NLB/mdm5.wms [120596] -
 /home/loki/grassdata/DF/Df_ASTGMT2_UTM_WGS84/PERMANENT/.tmp/valhalla/11235.0capabilities.xml
   [1]
 sed: -e expresión #1, carácter 19: opción desconocida para `s'
 grep: escribiendo la salida: Tubería rota
 grep: escribiendo la salida: Tubería rota

Hi,

could you provide more details please[*]? Which version of GRASS, which 
platform you run it on, exact command line usage, translations of error 
messages to English (run export LC_ALL=C before the command).


thanks,
Hamish


[*] fyi for everyone, there are some hints at:
  http://grass.osgeo.org/wiki/Bugs#Reporting_bugs
  http://grass.osgeo.org/wiki/Mailing_list_etiquette#Some_requests
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user