[GRASSweb-list]markus: web/grass51/tutorial usa_demo.html,1.1,1.2

grass at intevation.de grass at intevation.de
Fri Aug 22 09:19:59 EDT 2003


Author: markus

Update of /grassrepository/web/grass51/tutorial
In directory doto:/tmp/cvs-serv31093

Modified Files:
	usa_demo.html 
Log Message:
thanks to Alex Shevlakov the Substring match operator is there

Index: usa_demo.html
===================================================================
RCS file: /grassrepository/web/grass51/tutorial/usa_demo.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- usa_demo.html	19 Aug 2003 16:17:25 -0000	1.1
+++ usa_demo.html	22 Aug 2003 13:19:57 -0000	1.2
@@ -152,11 +152,13 @@
 <P>
 Ex 3) List all the cities, which are within 150 km of the Interstate Route 90 road.
 <div class="code"><pre>
-d.vect map=roads where="NAME='Interstate Route 90' or NAME='Interstate Route 90, US Route 395'" col=green
-#incomplete: we need a LIKE operator or =~
-v.extract input=roads output=interstate90 field=1 new=0 where="NAME='Interstate Route 90' or NAME='Interstate Route 90, US Route 395'"
-#check if buffer means geodetic dist in Lat/Long:
-v.buffer input=interstate90 output=interstate90_150km buffer=150000 tolerance=1
+#we are using the STRING_MATCH operator '~':
+d.vect map=roads where="NAME ~ 'Interstate Route 90'" col=green
+
+v.extract input=roads output=interstate90 field=1 new=0 where="NAME ~ 'Interstate Route 90'"
+
+# buffer is in map units, here geodetic dist in Lat/Long = some arc seconds:
+v.buffer input=interstate90 output=interstate90_150km buffer=0:00:23 tolerance=1
 TODO - implementation of cross operator
 </pre></div>
 <hr>





More information about the grass-web mailing list