<HTML>
<HEAD>
<TITLE>Re: [GRASSLIST:5505] Re: Newcomer Q:Missing libraries on OS X</TITLE>
</HEAD>
<BODY>
<FONT FACE="Skia, Verdana, Helvetica, Arial"><SPAN DEFANGED_STYLE='font-size:12.0px'>Matt,<BR>
<BR>
Well, it would be good if you have some metadata on these files. Where do they come from? You must have some information about them. Nevertheless, if you check the &#8216;extend extents...&#8217; to match map checkbox, both v.in.ogr and r.in.gdal will automatically do this for you. This way, you don&#8217;t have to make sure that your region exactly matches the extents and resolution of the original data. <BR>
<BR>
Michael<BR>
<BR>
On 1/24/05 6:13 PM, &quot;Matt Sakals&quot; &lt;msakals@interchg.ubc.ca&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Skia, Verdana, Helvetica, Arial"><SPAN DEFANGED_STYLE='font-size:12.0px'>Michael, &nbsp;<BR>
Thank you for your help. &nbsp;<BR>
How do I determine what the extents are? What are the units? How do I know what the extents are if I can't open the data? <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 24 Jan 2005, at 15:57, Michael Barton wrote: <BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><SPAN DEFANGED_STYLE='font-size:12.0px'><FONT FACE="Verdana, Helvetica, Arial">Matt,</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> 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.</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> Michael</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> Use v.in.ogr (/files/import/vector/various formats using OGR) for the shape files.</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> 1. Make sure you are in a location with the correct projection parameters and extents.</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> 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).</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> 3. Put the new name of the GRASS vector file you want to create in the &#8220;name of output vector&#8221; field</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> 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)</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> 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).</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> 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.</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> This should work.</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> Use r.in.gdal for the ArcView grid file. (/files/import/raster/various formats using gdal).</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> 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</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> 2. Give a name to the new GRASS raster file you are creating</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> 3. You may have to check the &#8220;Override projections...&#8221; checkbox, and may want to check the &#8220;Extend location extents...&#8221; checkbox</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> This should import fine.</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> 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.</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> Use the GIS manager to display your data.</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> On 1/24/05 3:58 PM, &quot;Matt Sakals&quot; &lt;msakals@interchg.ubc.ca&gt; wrote:</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial">Hi,</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> 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.  </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> I am trying to import .shp files and ArcView grids, they are projected according to BC Albers (<FONT COLOR="#0000EE"><a href="http://srmwww.gov.bc.ca/gis/bceprojection.html).">http://srmwww.gov.bc.ca/gis/bceprojection.html).</a></FONT> I am using GRASS 6.0 beta on OSX, would you be able to help me get off the ground?</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> Here is a sample data set of data I would like to work with:</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
<BR>
<BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> Many thanks, it would be great if you can find the time to help me out,</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> <B>Matt Sakals</B>, PAg, GIT</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> Sustainable Forest Management Laboratory</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> University of British Columbia</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> <FONT COLOR="#0000EE"><a href="mailto:msakals@interchg.ubc.ca">mailto:msakals@interchg.ubc.ca</a></FONT> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
</FONT><FONT COLOR="#0000EE"><FONT FACE="Verdana, Helvetica, Arial"><a href="http://sustain.forestry.ubc.ca/home.html">http://sustain.forestry.ubc.ca/home.html</a></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> 785 Dickens St., Trail, BC, V1R 2B7</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> ph. 250.368.3191</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> m. 250.231.0951</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> __________________________________</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> On 19 Jan 2005, at 22:24, Michael Barton wrote:</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><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"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
<BR>
Hi,</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
&nbsp;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> &nbsp;<BR>
&nbsp;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"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
<BR>
&nbsp;Matt,</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
&nbsp;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"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
&nbsp;    1. Using the terminal program and entering</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
&nbsp;    &gt;&gt;cd /usr/local/grasslib</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
&nbsp;    &gt;&gt;ls</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
&nbsp;    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"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
&nbsp;    You should be able to navigate to /usr/local/grasslib then.</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
<BR>
<BR>
&nbsp;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"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
<BR>
&nbsp;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"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial">Hope this helps.</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
&nbsp;Michael</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial">____________________</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
&nbsp;C. Michael Barton, Professor of Anthropology</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
&nbsp;School of Human Evolution and Social Change</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
&nbsp;PO Box 872402</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
&nbsp;Arizona State University</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
&nbsp;Tempe, AZ  85287-2402</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
&nbsp;USA</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
&nbsp;Phone: 480-965-6262</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
&nbsp;Fax: 480-965-7671</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
&nbsp;www: &lt;www.public.asu.edu/~cmbarton&gt;</FONT><FONT FACE="Verdana, Helvetica, Arial"> </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial">   </FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
<BR>
<BR>
<BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> ______________________________</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> Michael Barton, Professor of Anthropology</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> School of Human Evolution and Social Change</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> Arizona State University</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> Tempe, AZ  85287-2402</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> USA</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> voice: 480-965-6262; fax: 480-965-7671</FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"> www: <FONT COLOR="#0000EE"><a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a></FONT></FONT><FONT FACE="Skia, Verdana, Helvetica, Arial"> <BR>
&nbsp;&nbsp;<BR>
</FONT></SPAN></BLOCKQUOTE><SPAN DEFANGED_STYLE='font-size:12.0px'><FONT FACE="Skia, Verdana, Helvetica, Arial"><BR>
</FONT></SPAN></BLOCKQUOTE><SPAN DEFANGED_STYLE='font-size:12.0px'><FONT FACE="Skia, Verdana, Helvetica, Arial"><BR>
<BR>
____________________<BR>
C. Michael Barton, Professor of Anthropology<BR>
School of Human Evolution and Social Change<BR>
PO Box 872402<BR>
Arizona State University<BR>
Tempe, AZ &nbsp;85287-2402<BR>
USA<BR>
<BR>
Phone: 480-965-6262<BR>
Fax: 480-965-7671<BR>
www: &lt;www.public.asu.edu/~cmbarton&gt;<BR>
</FONT></SPAN>
</BODY>
</HTML>