<HTML>
<HEAD>
<TITLE>Re: [GRASSLIST:5436] Newcomer Q:Missing libraries on OS X</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN DEFANGED_STYLE='font-size:12.0px'>Matt,<BR>
<BR>
Here are the steps to get your data into GRASS. The learning curve for GRASS is about the same as for ArcView (if you can remember starting from scratch). Knowing ArcView can be helpful and frustrating. You have some idea of what is possible, but the ways to do it are sometimes quite different&#8212;but not always. Now that I&#8217;ve mastered GRASS many things are much easier than in ArcView, some are harder, and others are just different. Hope this helps.<BR>
<BR>
Michael<BR>
<BR>
Use v.in.ogr (/files/import/vector/various formats using OGR) for the shape files. <BR>
<BR>
1. Make sure you are in a location with the correct projection parameters and extents.<BR>
<BR>
2. Put the path to directory with the files in the &#8220;OGR datasource name&#8221; box (path the DIRECTORY only, without the shapefile name).<BR>
<BR>
3. Put the new name of the GRASS vector file you want to create in the &#8220;name of output vector&#8221; field<BR>
<BR>
4. Put the name of the shapefile in the &#8220;OGR layer name&#8221; box WITHOUT the .shp extension. (You can check the List available layers... checkbox at the bottom to see a list of the names)<BR>
<BR>
5. You will probably have to check the &#8220;Override projection&#8221; checkbox because shape files don&#8217;t contain projection information (except with new ArcGIS).<BR>
<BR>
6. You may want to check the &#8220;Extend location extents...&#8221; box if the map is bigger than the region you are importing into.<BR>
<BR>
This should work.<BR>
<BR>
Use r.in.gdal for the ArcView grid file. (/files/import/raster/various formats using gdal).<BR>
<BR>
1. Browse to the hdr.adf file inside the grid folder (not the info folder) to put in the &#8220;Raster file to be imported&#8221; box<BR>
<BR>
2. Give a name to the new GRASS raster file you are creating<BR>
<BR>
3. You may have to check the &#8220;Override projections...&#8221; checkbox, and may want to check the &#8220;Extend location extents...&#8221; checkbox<BR>
<BR>
This should import fine.<BR>
<BR>
Once you have imported the files go to g.region (/gis/region/manage region) and set the region to match either of your maps. This makes sure that you are looking at the part of the world where you just imported data.<BR>
<BR>
Use the GIS manager to display your data.<BR>
<BR>
On 1/24/05 3:58 PM, &quot;Matt Sakals&quot; &lt;msakals@interchg.ubc.ca&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Hi, <BR>
I am still having troubles getting going with GRASS and don't know where to start. As I see it the big downside to continuous improvement is that the support documents are always out of date. This whole venture is extremely humbling as I am an advanced ArcView user, but can't get going here. &nbsp;<BR>
<BR>
I am trying to import .shp files and ArcView grids, they are projected according to BC Albers (<a href="http://srmwww.gov.bc.ca/gis/bceprojection.html).">http://srmwww.gov.bc.ca/gis/bceprojection.html).</a> I am using GRASS 6.0 beta on OSX, would you be able to help me get off the ground? <BR>
<BR>
Here is a sample data set of data I would like to work with: <BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"> <BR>
<BR>
Many thanks, it would be great if you can find the time to help me out, <BR>
<BR>
<B>Matt Sakals</B>, PAg, GIT <BR>
Sustainable Forest Management Laboratory <BR>
University of British Columbia <BR>
<a href="mailto:msakals@interchg.ubc.ca">mailto:msakals@interchg.ubc.ca</a> <BR>
<a href="http://sustain.forestry.ubc.ca/home.html">http://sustain.forestry.ubc.ca/home.html</a> <BR>
785 Dickens St., Trail, BC, V1R 2B7 <BR>
ph. 250.368.3191 <BR>
m. 250.231.0951 <BR>
__________________________________ <BR>
On 19 Jan 2005, at 22:24, Michael Barton wrote: <BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><SPAN DEFANGED_STYLE='font-size:12.0px'><FONT FACE="Skia, Verdana, Helvetica, Arial">On 1/19/05 8:30 AM, &quot;Matt Sakals&quot; &lt;msakals@interchange.ubc.ca&gt; wrote:</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
<BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial">Hi,</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> I am trying to install GRASS, and have used the GRASS complete download for OS X from <FONT COLOR="#0000EE"><a href="http://wwwamb.bologna.enea.it/forgrass/download.htm">http://wwwamb.bologna.enea.it/forgrass/download.htm</a></FONT> </FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> but I don't know if my libraries have been installed; I can't find a grasslib folder on my computer anywhere.  </FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
<BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> Matt,</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> If you have run the install program for the grass libraries in Lorenzo Moretti&#8217;s GRASS complete, they are probably OK. They are located in /usr/local/grasslib. This is a &#8216;hidden&#8217; directory on a Mac. You can check it by either...</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial">     1. Using the terminal program and entering</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial">     &gt;&gt;cd /usr/local/grasslib</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial">     &gt;&gt;ls</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial">     2. Selecting &#8216;Go to folder&#8217; from the &#8216;Go&#8217; menu in the finder. Enter /usr and press &#8216;Go&#8217;</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial">     You should be able to navigate to /usr/local/grasslib then.</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
<BR>
<BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> I don't know if GRASS is working right or not because I am new, but in the tutorial it crashes when trying to import .shp files.</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
<BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> You don&#8217;t say which version of GRASS you are using. But I recommend using GRASS 6.0.0beta1. It is posted on my mirror site for Lorenzo&#8217;s files. I do NOT recommend using 5.7.0 because it is problematic. GRASS 5.4 is fine also, but 6.0 does more and generally does it more better. You should have no trouble importing a *.shp file using v.in.ogr in GRASS 6.0. </FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> Hope this helps.</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> Michael </FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
<BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> ____________________</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> C. Michael Barton, Professor of Anthropology</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> School of Human Evolution and Social Change</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> PO Box 872402</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> Arizona State University</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> Tempe, AZ  85287-2402</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> USA</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> Phone: 480-965-6262</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> Fax: 480-965-7671</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> www: &lt;www.public.asu.edu/~cmbarton&gt;</FONT><FONT FACE="Verdana, Helvetica, Arial"> <BR>
&nbsp;&nbsp;<BR>
</FONT></SPAN></BLOCKQUOTE><SPAN DEFANGED_STYLE='font-size:12.0px'><FONT FACE="Verdana, Helvetica, Arial"><BR>
</FONT></SPAN></BLOCKQUOTE><SPAN DEFANGED_STYLE='font-size:12.0px'><FONT FACE="Verdana, Helvetica, Arial"><BR>
<BR>
______________________________<BR>
Michael Barton, Professor of Anthropology<BR>
School of Human Evolution and Social Change<BR>
Arizona State University<BR>
Tempe, AZ &nbsp;85287-2402<BR>
USA<BR>
<BR>
voice: 480-965-6262; fax: 480-965-7671<BR>
www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a><BR>
</FONT></SPAN>
</BODY>
</HTML>