<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="IncrediMail 1.0" name=GENERATOR>
<STYLE>v\:* {
        BEHAVIOR: url (#default#vml)
}
</STYLE>
<style>v\:* {
        BEHAVIOR: url (#default#vml)
}
</style>
<!--IncrdiXMLRemarkStart>
<IncrdiX-Info>
<X-FID>79F8FDE2-E90C-4120-9A2C-E484CCFAA091</X-FID>
<X-FVER></X-FVER>
<X-FIT></X-FIT>
<X-FILE></X-FILE>
<X-FCOL></X-FCOL>
<X-FCAT></X-FCAT>
<X-FDIS></X-FDIS>
<X-Extensions></X-Extensions>
<X-BG>cid:AE2B765A-890B-43F6-B49E-8655C861ACE3</X-BG>
<X-BGT>repeat</X-BGT>
<X-BGC>#f3eded</X-BGC>
<X-BGPX>left</X-BGPX>
<X-BGPY>top</X-BGPY>
<X-ASN></X-ASN>
<X-ASNF></X-ASNF>
<X-ASH></X-ASH>
<X-ASHF></X-ASHF>
<X-AN></X-AN>
<X-ANF></X-ANF>
<X-AP></X-AP>
<X-APF></X-APF>
<X-AD></X-AD>
<X-ADF></X-ADF>
<X-AUTO>X-ASN,X-ASH,X-AN,X-AP,X-AD</X-AUTO>
<X-CNT>;</X-CNT>
</IncrdiX-Info>
<IncrdiXMLRemarkEnd-->
</HEAD>
<BODY style="BACKGROUND-POSITION: left top; SCROLLBAR-FACE-COLOR: #c6d7ff; FONT-SIZE: 12pt; MARGIN: 0px 10px 10px; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: #ffffff; COLOR: #010158; SCROLLBAR-3DLIGHT-COLOR: #7b9ed6; SCROLLBAR-ARROW-COLOR: #4a6184; BACKGROUND-REPEAT: repeat; FONT-FAMILY: Arial; SCROLLBAR-DARKSHADOW-COLOR: #bebebe" text=#010158 vLink=#0000ff aLink=#0000ff link=#0000ff bgColor=#f3eded background=cid:AE2B765A-890B-43F6-B49E-8655C861ACE3 scroll=yes SIGCOLOR="11031552">
<TABLE id=INCREDIMAINTABLE cellSpacing=0 cellPadding=2 width="100%" border=0>
<TBODY>
<TR>
<TD id=INCREDITEXTREGION dir=ltr style="FONT-SIZE: 12pt; DIRECTION: ltr" vAlign=top width="100%">
<DIV><EM><FONT size=2>4. RE: I can?t import postgis layer using v.in.ogr in WinGRASS</FONT></EM>
<DIV><EM><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(Pablo Carreira)</FONT></EM></DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>Hi Pablo. I used your sugestion (without "")&nbsp;and recieve these messages:</DIV>
<DIV>&nbsp;</DIV>
<DIV>Sorry, &lt;host&gt;&nbsp;is not a valid parameter<BR>Sorry, &lt;user&gt;&nbsp;is not a valid parameter<BR>Sorry, &lt;password&gt;&nbsp;is not a valid parameter</DIV>
<DIV>&nbsp;</DIV>
<DIV>:-(</DIV>
<DIV>&nbsp;</DIV>
<DIV>Another sugestion?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Best regards.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thybério Luna Freire</DIV>
<DIV>&nbsp;</DIV>
<DIV id=IncrediOriginalMessage dir=ltr><I>-------Original Message-------</I></DIV>
<DIV>&nbsp;</DIV>
<DIV id=receivestrings>
<DIV dir=ltr style="FONT-SIZE: 11pt"><I><B>From:</B></I> <A href="mailto:grass-user-request@lists.osgeo.org">grass-user-request@lists.osgeo.org</A></DIV>
<DIV dir=ltr style="FONT-SIZE: 11pt"><I><B>Date:</B></I> 10/3/2010 00:43:29</DIV>
<DIV dir=ltr style="FONT-SIZE: 11pt"><I><B>To:</B></I> <A href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</A></DIV>
<DIV dir=ltr style="FONT-SIZE: 11pt"><I><B>Subject:</B></I> grass-user Digest, Vol 47, Issue 26</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>Send grass-user mailing list submissions to</DIV>
<DIV>&nbsp; <A href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>To subscribe or unsubscribe via the World Wide Web, visit</DIV>
<DIV>&nbsp; <A href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</A></DIV>
<DIV>or, via email, send a message with subject or body 'help' to</DIV>
<DIV>&nbsp; <A href="mailto:grass-user-request@lists.osgeo.org">grass-user-request@lists.osgeo.org</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>You can reach the person managing the list at</DIV>
<DIV>&nbsp; <A href="mailto:grass-user-owner@lists.osgeo.org">grass-user-owner@lists.osgeo.org</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>When replying, please edit your Subject line so it is more specific</DIV>
<DIV>than "Re: Contents of grass-user digest..."</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Today's Topics:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; 1. I can?t import postgis layer using v.in.ogr in WinGRASS</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(Thyb?rio Luna Freire)</DIV>
<DIV>&nbsp;&nbsp; 2. ps.map: One Script Works, One Doesn't (Rich Shepard)</DIV>
<DIV>&nbsp;&nbsp; 3. Re: ps.map: One Script Works, One Doesn't (Rich Shepard)</DIV>
<DIV>&nbsp;&nbsp; 4. RE: I can?t import postgis layer using v.in.ogr in WinGRASS</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(Pablo Carreira)</DIV>
<DIV>&nbsp;&nbsp; 5. Re: ps.map: One Script Works, One Doesn't (Rich Shepard)</DIV>
<DIV>&nbsp;&nbsp; 6. Re: Running Python scripts inside GRASS (Milton Cezar Ribeiro)</DIV>
<DIV>&nbsp;&nbsp; 7. Re: ps.map: One Script Works, One Doesn't (Rich Shepard)</DIV>
<DIV>&nbsp;&nbsp; 8. Re: ps.map: One Script Works, One Doesn't (Hamish)</DIV>
<DIV>&nbsp;&nbsp; 9. Re: ps.map: One Script Works, One Doesn't (Rich Shepard)</DIV>
<DIV>&nbsp;&nbsp;10. Re: ps.map: One Script Works, One Doesn't (Dave Kent)</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>----------------------------------------------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>Message: 1</DIV>
<DIV>Date: Tue, 9 Mar 2010 16:21:53 -0300</DIV>
<DIV>From: Thyb?rio Luna Freire &lt;<A href="mailto:thyberio@gmail.com">thyberio@gmail.com</A>&gt;</DIV>
<DIV>Subject: [GRASS-user] I can?t import postgis layer using v.in.ogr in</DIV>
<DIV>&nbsp; WinGRASS</DIV>
<DIV>To: <A href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</A>, <A href="mailto:grass-stats-request@lists.osgeo.org">grass-stats-request@lists.osgeo.org</A></DIV>
<DIV>Message-ID:</DIV>
<DIV>&nbsp; &lt;<A href="mailto:9e23a6811003091121h43dee098s5c86b29975a2a355@mail.gmail.com">9e23a6811003091121h43dee098s5c86b29975a2a355@mail.gmail.com</A>&gt;</DIV>
<DIV>Content-Type: text/plain; charset="iso-8859-1"</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hi,</DIV>
<DIV>I´m a Linux/Windows user. Using GRASS in my Ubuntu, i can import postgis</DIV>
<DIV>layers by v.in.ogr with facility. But, in my job, the OS used is Windows and</DIV>
<DIV>i use WinGRASS.</DIV>
<DIV>I just installed PostgreSQL/Postgis to manage my data.</DIV>
<DIV>I transfered the db administration to pg:</DIV>
<DIV>&nbsp;</DIV>
<DIV>*db.connect driver=pg database="host=localhost, dbname=gis"</DIV>
<DIV>db.login driver=pg database=gis user=postgres pass=******</DIV>
<DIV>&nbsp;</DIV>
<DIV>until that, all ok.....but when:</DIV>
<DIV>&nbsp;</DIV>
<DIV>*v.in.ogr dsn="PG:host=localhost dbname=gis user=postgres" layer=Municipios</DIV>
<DIV>output=Municipios</DIV>
<DIV>*</DIV>
<DIV>i recieve the following message:</DIV>
<DIV>&nbsp;</DIV>
<DIV>ERROR: Unable to open data source &lt;"PG:host=localhost dbname=gis</DIV>
<DIV>user=postgres........</DIV>
<DIV>&nbsp;</DIV>
<DIV>I searched in all documents and sites and i didn't find any answer.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I need help.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks!</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thybério Luna Freire - Brazil</DIV>
<DIV>-------------- next part --------------</DIV>
<DIV>An HTML attachment was scrubbed...</DIV>
<DIV>URL: <A href="http://lists.osgeo.org/pipermail/grass-user/attachments/20100309/95e77be8/attachment-0001.html">http://lists.osgeo.org/pipermail/grass-user/attachments/20100309/95e77be8/attachment-0001.html</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>Message: 2</DIV>
<DIV>Date: Tue, 9 Mar 2010 11:35:02 -0800 (PST)</DIV>
<DIV>From: Rich Shepard &lt;<A href="mailto:rshepard@appl-ecosys.com">rshepard@appl-ecosys.com</A>&gt;</DIV>
<DIV>Subject: [GRASS-user] ps.map: One Script Works, One Doesn't</DIV>
<DIV>To: <A href="mailto:grass-users@lists.osgeo.org">grass-users@lists.osgeo.org</A></DIV>
<DIV>Message-ID:</DIV>
<DIV>&nbsp; &lt;<A href="mailto:alpine.LNX.2.00.1003091129320.14989@salmo.appl-ecosys.com">alpine.LNX.2.00.1003091129320.14989@salmo.appl-ecosys.com</A>&gt;</DIV>
<DIV>Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; This has been wasting my time this morning and I'd sure like to learn why.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; I have two ps.map input scripts called 'flowlinedensity.psmap' and</DIV>
<DIV>'slopes.psmap'. They both compile, but when I view the latter I get a</DIV>
<DIV>ghostscript error box, no colortable, and no points legend in the v.legend</DIV>
<DIV>area.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; Running diff on the two scripts shows only this:</DIV>
<DIV>&nbsp;</DIV>
<DIV>1c1</DIV>
<DIV>&lt; raster aber10m.flowdensityAvg</DIV>
<DIV>---</DIV>
<DIV>&gt; raster aber10m.slope</DIV>
<DIV>48c48</DIV>
<DIV>&lt; text 78% 28% Flow Line\n Densities</DIV>
<DIV>---</DIV>
<DIV>&gt; text 77% 30% Slope (Degrees)</DIV>
<DIV>58c58</DIV>
<DIV>&lt;&nbsp;&nbsp; range 0 100</DIV>
<DIV>---</DIV>
<DIV>&gt;&nbsp;&nbsp; range 0 25</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; Since the only differences are the base raster map, text position and</DIV>
<DIV>content, and colortable range I fail to see why the latter throws a gv</DIV>
<DIV>error.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; If I remove the vlegend clause it displays.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any ideas?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Rich</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>Message: 3</DIV>
<DIV>Date: Tue, 9 Mar 2010 11:45:50 -0800 (PST)</DIV>
<DIV>From: Rich Shepard &lt;<A href="mailto:rshepard@appl-ecosys.com">rshepard@appl-ecosys.com</A>&gt;</DIV>
<DIV>Subject: Re: [GRASS-user] ps.map: One Script Works, One Doesn't</DIV>
<DIV>To: <A href="mailto:grass-users@lists.osgeo.org">grass-users@lists.osgeo.org</A></DIV>
<DIV>Message-ID:</DIV>
<DIV>&nbsp; &lt;<A href="mailto:alpine.LNX.2.00.1003091144400.14989@salmo.appl-ecosys.com">alpine.LNX.2.00.1003091144400.14989@salmo.appl-ecosys.com</A>&gt;</DIV>
<DIV>Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed</DIV>
<DIV>&nbsp;</DIV>
<DIV>On Tue, 9 Mar 2010, Rich Shepard wrote:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt;&nbsp;&nbsp;I have two ps.map input scripts called 'flowlinedensity.psmap' and</DIV>
<DIV>&gt; 'slopes.psmap'. They both compile, but when I view the latter I get a</DIV>
<DIV>&gt; ghostscript error box, no colortable, and no points legend in the v.legend</DIV>
<DIV>&gt; area.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; I should mention that of the 5 maps in the report, the slopes map is the</DIV>
<DIV>only one that balks at displaying properly. The only differences are the</DIV>
<DIV>base raster and the text contents.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Rich</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>Message: 4</DIV>
<DIV>Date: Tue, 9 Mar 2010 16:48:59 -0300</DIV>
<DIV>From: Pablo Carreira &lt;<A href="mailto:pablotcarreira@hotmail.com">pablotcarreira@hotmail.com</A>&gt;</DIV>
<DIV>Subject: RE: [GRASS-user] I can?t import postgis layer using v.in.ogr</DIV>
<DIV>&nbsp; in WinGRASS</DIV>
<DIV>To: &lt;<A href="mailto:thyberio@gmail.com">thyberio@gmail.com</A>&gt;, &lt;<A href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</A>&gt;</DIV>
<DIV>Message-ID: &lt;<A href="mailto:SNT114-W32657C8DA7DE09E9A44D72D6340@phx.gbl">SNT114-W32657C8DA7DE09E9A44D72D6340@phx.gbl</A>&gt;</DIV>
<DIV>Content-Type: text/plain; charset="iso-8859-1"</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hi Thyberio,</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt;until that, all ok.....but when:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt;v.in.ogr dsn="PG:host=localhost dbname=gis user=postgres" layer=Municipios output=Municipios</DIV>
<DIV>&gt;i recieve the following message:</DIV>
<DIV>&gt;ERROR: Unable to open data source &lt;"PG:host=localhost dbname=gis user=postgres........</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Try:</DIV>
<DIV>v.in.ogr dsn=PG:dbname=gis host=localhost user=postgres password=******** output=Municipios</DIV>
<DIV>&nbsp;</DIV>
<DIV>Note there is no "" .&nbsp;&nbsp;If it does not work please paste the full error report.</DIV>
<DIV>Make sure that pg server is running.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Pablo.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>_________________________________________________________________</DIV>
<DIV>Navegue sem medo: O Internet Explorer 8 te deixa mais protegido. Baixe gratuitamente.</DIV>
<DIV><A href="http://go.microsoft.com/?linkid=9707132">http://go.microsoft.com/?linkid=9707132</A></DIV>
<DIV>-------------- next part --------------</DIV>
<DIV>An HTML attachment was scrubbed...</DIV>
<DIV>URL: <A href="http://lists.osgeo.org/pipermail/grass-user/attachments/20100309/a1ac5b6f/attachment-0001.html">http://lists.osgeo.org/pipermail/grass-user/attachments/20100309/a1ac5b6f/attachment-0001.html</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>Message: 5</DIV>
<DIV>Date: Tue, 9 Mar 2010 13:15:41 -0800 (PST)</DIV>
<DIV>From: Rich Shepard &lt;<A href="mailto:rshepard@appl-ecosys.com">rshepard@appl-ecosys.com</A>&gt;</DIV>
<DIV>Subject: Re: [GRASS-user] ps.map: One Script Works, One Doesn't</DIV>
<DIV>To: <A href="mailto:grass-users@lists.osgeo.org">grass-users@lists.osgeo.org</A></DIV>
<DIV>Message-ID:</DIV>
<DIV>&nbsp; &lt;<A href="mailto:alpine.LNX.2.00.1003091314350.14989@salmo.appl-ecosys.com">alpine.LNX.2.00.1003091314350.14989@salmo.appl-ecosys.com</A>&gt;</DIV>
<DIV>Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed</DIV>
<DIV>&nbsp;</DIV>
<DIV>On Tue, 9 Mar 2010, Rich Shepard wrote:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt;&nbsp;&nbsp;I should mention that of the 5 maps in the report, the slopes map is the</DIV>
<DIV>&gt; only one that balks at displaying properly.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; More testing reveals the problem is with the slope raster map. What in</DIV>
<DIV>that particular map might cause an issue with vlegend?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Rich</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>Message: 6</DIV>
<DIV>Date: Tue, 9 Mar 2010 16:22:03 -0500</DIV>
<DIV>From: Milton Cezar Ribeiro &lt;<A href="mailto:miltinho.astronauta@gmail.com">miltinho.astronauta@gmail.com</A>&gt;</DIV>
<DIV>Subject: Re: [GRASS-user] Running Python scripts inside GRASS</DIV>
<DIV>To: Hamish &lt;<A href="mailto:hamish_b@yahoo.com">hamish_b@yahoo.com</A>&gt;</DIV>
<DIV>Cc: Sonja Jankowfsky &lt;<A href="mailto:sonja.jankowfsky@cemagref.fr">sonja.jankowfsky@cemagref.fr</A>&gt;, GRASS user list</DIV>
<DIV>&nbsp; &lt;<A href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</A>&gt;, Glynn Clements</DIV>
<DIV>&nbsp; &lt;<A href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</A>&gt;</DIV>
<DIV>Message-ID:</DIV>
<DIV>&nbsp; &lt;<A href="mailto:64f1583f1003091322m702ade4au536045fc8e238d82@mail.gmail.com">64f1583f1003091322m702ade4au536045fc8e238d82@mail.gmail.com</A>&gt;</DIV>
<DIV>Content-Type: text/plain; charset="iso-8859-1"</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hi There,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am happy running python inside a OSGeo4W grass instalallation.</DIV>
<DIV>I start MSYS, start grass, and then ryn python 2.5 which are run</DIV>
<DIV>from C:\OSGeo4W\apps\Python25. But I needed to copy the grass/python</DIV>
<DIV>library to C:\OSGeo4W\apps\Python25\Lib\site-packages.</DIV>
<DIV>Good luck,</DIV>
<DIV>&nbsp;</DIV>
<DIV>milton</DIV>
<DIV>&nbsp;</DIV>
<DIV>2010/3/9 Hamish &lt;<A href="mailto:hamish_b@yahoo.com">hamish_b@yahoo.com</A>&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt; Sonja wrote:</DIV>
<DIV>&gt; &gt; Is there any other place where a wrong PYTHONPATH could be stored???</DIV>
<DIV>&gt;</DIV>
<DIV>&gt; if you have the grass source code try from the the msys prompt:</DIV>
<DIV>&gt;</DIV>
<DIV>&gt; grep -ri python25 mswindows/*</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt; wingrass is a bit of a tangle of startup scripts, especially the osgeo4w</DIV>
<DIV>&gt; build. the above searches through the custom/lesser known wingrass ones.</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt; you can also try a recursive grep in the GRASS-64-SVN\ directory to try</DIV>
<DIV>&gt; and find and. If doing that I'd add the -I flag to skip searching in</DIV>
<DIV>&gt; binaries.</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt; Hamish</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt; _______________________________________________</DIV>
<DIV>&gt; grass-user mailing list</DIV>
<DIV>&gt; <A href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</A></DIV>
<DIV>&gt; <A href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</A></DIV>
<DIV>&gt;</DIV>
<DIV>-------------- next part --------------</DIV>
<DIV>An HTML attachment was scrubbed...</DIV>
<DIV>URL: <A href="http://lists.osgeo.org/pipermail/grass-user/attachments/20100309/77109c37/attachment-0001.html">http://lists.osgeo.org/pipermail/grass-user/attachments/20100309/77109c37/attachment-0001.html</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>Message: 7</DIV>
<DIV>Date: Tue, 9 Mar 2010 13:22:33 -0800 (PST)</DIV>
<DIV>From: Rich Shepard &lt;<A href="mailto:rshepard@appl-ecosys.com">rshepard@appl-ecosys.com</A>&gt;</DIV>
<DIV>Subject: Re: [GRASS-user] ps.map: One Script Works, One Doesn't</DIV>
<DIV>To: <A href="mailto:grass-users@lists.osgeo.org">grass-users@lists.osgeo.org</A></DIV>
<DIV>Message-ID:</DIV>
<DIV>&nbsp; &lt;<A href="mailto:alpine.LNX.2.00.1003091321420.14989@salmo.appl-ecosys.com">alpine.LNX.2.00.1003091321420.14989@salmo.appl-ecosys.com</A>&gt;</DIV>
<DIV>Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed</DIV>
<DIV>&nbsp;</DIV>
<DIV>On Tue, 9 Mar 2010, Rich Shepard wrote:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt;&nbsp;&nbsp;This has been wasting my time this morning and I'd sure like to learn why.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; Fixed it. I re-created the slopes map (r.slope.aspect) and that did the</DIV>
<DIV>trick. No idea what was wrong with the original, but something definitely</DIV>
<DIV>was.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Rich</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>Message: 8</DIV>
<DIV>Date: Tue, 9 Mar 2010 15:28:06 -0800 (PST)</DIV>
<DIV>From: Hamish &lt;<A href="mailto:hamish_b@yahoo.com">hamish_b@yahoo.com</A>&gt;</DIV>
<DIV>Subject: Re: [GRASS-user] ps.map: One Script Works, One Doesn't</DIV>
<DIV>To: <A href="mailto:grass-users@lists.osgeo.org">grass-users@lists.osgeo.org</A>, Rich Shepard</DIV>
<DIV>&nbsp; &lt;<A href="mailto:rshepard@appl-ecosys.com">rshepard@appl-ecosys.com</A>&gt;</DIV>
<DIV>Message-ID: &lt;<A href="mailto:67948.82195.qm@web110007.mail.gq1.yahoo.com">67948.82195.qm@web110007.mail.gq1.yahoo.com</A>&gt;</DIV>
<DIV>Content-Type: text/plain; charset=iso-8859-1</DIV>
<DIV>&nbsp;</DIV>
<DIV>Rich wrote:</DIV>
<DIV>&gt; &nbsp; I have two ps.map input scripts called</DIV>
<DIV>&gt; 'flowlinedensity.psmap' and</DIV>
<DIV>&gt; 'slopes.psmap'. They both compile, but when I view the</DIV>
<DIV>&gt; latter I get a</DIV>
<DIV>&gt; ghostscript error box, no colortable, and no points legend</DIV>
<DIV>&gt; in the v.legend</DIV>
<DIV>&gt; area.</DIV>
<DIV>&gt;</DIV>
<DIV>&gt; &nbsp; Running diff on the two scripts shows only this:</DIV>
<DIV>&gt;</DIV>
<DIV>&gt; 1c1</DIV>
<DIV>&gt; &lt; raster aber10m.flowdensityAvg</DIV>
<DIV>&gt; ---</DIV>
<DIV>&gt; &gt; raster aber10m.slope</DIV>
<DIV>&gt; 48c48</DIV>
<DIV>&gt; &lt; text 78% 28% Flow Line\n Densities</DIV>
<DIV>&gt; ---</DIV>
<DIV>&gt; &gt; text 77% 30% Slope (Degrees)</DIV>
<DIV>....</DIV>
<DIV>&gt; &nbsp; Since the only differences are the base raster map,</DIV>
<DIV>&gt; text position and content, and colortable range I fail</DIV>
<DIV>&gt; to see why the latter throws a gv error.</DIV>
<DIV>&gt;</DIV>
<DIV>&gt; &nbsp; If I remove the vlegend clause it displays.</DIV>
<DIV>&gt;</DIV>
<DIV>&gt; Any ideas?</DIV>
<DIV>&nbsp;</DIV>
<DIV>text 77% 30% Slope (Degrees)</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>( and ) need to be quoted like \( and \).</DIV>
<DIV>&nbsp;</DIV>
<DIV>see the documentation for the "comments" instruction, I guess it</DIV>
<DIV>applies to "text" as well.</DIV>
<DIV>&nbsp;</DIV>
<DIV>PostScript uses () as the beginning/end delimiter for text</DIV>
<DIV>strings.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hamish</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>Message: 9</DIV>
<DIV>Date: Tue, 9 Mar 2010 16:19:27 -0800 (PST)</DIV>
<DIV>From: Rich Shepard &lt;<A href="mailto:rshepard@appl-ecosys.com">rshepard@appl-ecosys.com</A>&gt;</DIV>
<DIV>Subject: Re: [GRASS-user] ps.map: One Script Works, One Doesn't</DIV>
<DIV>To: <A href="mailto:grass-users@lists.osgeo.org">grass-users@lists.osgeo.org</A></DIV>
<DIV>Message-ID:</DIV>
<DIV>&nbsp; &lt;<A href="mailto:alpine.LNX.2.00.1003091617500.14989@salmo.appl-ecosys.com">alpine.LNX.2.00.1003091617500.14989@salmo.appl-ecosys.com</A>&gt;</DIV>
<DIV>Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed</DIV>
<DIV>&nbsp;</DIV>
<DIV>On Tue, 9 Mar 2010, Hamish wrote:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt; text 77% 30% Slope (Degrees)</DIV>
<DIV>&gt; ( and ) need to be quoted like \( and \).</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hamish,</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; Actually, they don't. Originally I had the string in quotes and those</DIV>
<DIV>printed, too. The above prints quite well.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; As I wrote to the list, I isolated the problem to the base raster map.</DIV>
<DIV>Regenerating that fixed the problem.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Rich</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>Message: 10</DIV>
<DIV>Date: Tue, 09 Mar 2010 21:35:28 -0600</DIV>
<DIV>From: Dave Kent &lt;<A href="mailto:dkent@sasktel.net">dkent@sasktel.net</A>&gt;</DIV>
<DIV>Subject: Re: [GRASS-user] ps.map: One Script Works, One Doesn't</DIV>
<DIV>To: Rich Shepard &lt;<A href="mailto:rshepard@appl-ecosys.com">rshepard@appl-ecosys.com</A>&gt;</DIV>
<DIV>Cc: <A href="mailto:grass-users@lists.osgeo.org">grass-users@lists.osgeo.org</A></DIV>
<DIV>Message-ID: &lt;<A href="mailto:2238A0B6-FF1C-481F-B50E-3F367FB8BA32@sasktel.net">2238A0B6-FF1C-481F-B50E-3F367FB8BA32@sasktel.net</A>&gt;</DIV>
<DIV>Content-Type: text/plain; charset=us-ascii</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am having a similar, perhaps related problem.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have a raster image overlain by a series of vectors.</DIV>
<DIV>&nbsp;</DIV>
<DIV>ps.map fails erratically.</DIV>
<DIV>&nbsp;</DIV>
<DIV>If I remove the raster, it works.</DIV>
<DIV>&nbsp;</DIV>
<DIV>If I remove v.legend, it works.&nbsp;&nbsp;(legend only for vector features)</DIV>
<DIV>&nbsp;</DIV>
<DIV>If I make one specific item in the legend as -- lpos 0 -- it works.</DIV>
<DIV>&nbsp;</DIV>
<DIV>When all are present in the script, it fails.</DIV>
<DIV>&nbsp;</DIV>
<DIV>When I try to make a&nbsp;&nbsp;pdf with Distiller, the "offending error" is a long numeric string approximately 100 digits long.&nbsp;&nbsp;I opened the postscript file in a text editor and the long string seemed to be associated with the legend.&nbsp;&nbsp;After editing the string, I could open the postscript file.</DIV>
<DIV>&nbsp;</DIV>
<DIV>In other mapsets, things work fine.</DIV>
<DIV>&nbsp;</DIV>
<DIV>The problem appears to be associated with the legend.&nbsp;&nbsp;i have no idea why there is any link with the raster image.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Mac, Snow Leopard, Grass 6.4RC3, Mr. Kyngesburye's binaries updated today.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Dave</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>On 2010-03-09, at 6:19 PM, Rich Shepard wrote:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt; On Tue, 9 Mar 2010, Hamish wrote:</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&gt; text 77% 30% Slope (Degrees)</DIV>
<DIV>&gt;&gt; ( and ) need to be quoted like \( and \).</DIV>
<DIV>&gt;</DIV>
<DIV>&gt; Hamish,</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;&nbsp;Actually, they don't. Originally I had the string in quotes and those</DIV>
<DIV>&gt; printed, too. The above prints quite well.</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;&nbsp;As I wrote to the list, I isolated the problem to the base raster map.</DIV>
<DIV>&gt; Regenerating that fixed the problem.</DIV>
<DIV>&gt;</DIV>
<DIV>&gt; Thanks,</DIV>
<DIV>&gt;</DIV>
<DIV>&gt; Rich</DIV>
<DIV>&gt; _______________________________________________</DIV>
<DIV>&gt; grass-user mailing list</DIV>
<DIV>&gt; <A href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</A></DIV>
<DIV>&gt; <A href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>_______________________________________________</DIV>
<DIV>grass-user mailing list</DIV>
<DIV><A href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</A></DIV>
<DIV><A href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>End of grass-user Digest, Vol 47, Issue 26</DIV>
<DIV>******************************************</DIV></TD></TR>
<TR>
<TD id=INCREDIFOOTER width="100%">
<TABLE cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD width="100%"></TD>
<TD id=INCREDISOUND vAlign=bottom align=middle></TD>
<TD id=INCREDIANIM vAlign=bottom align=middle></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><SPAN id=IncrediStamp><A href="http://www.incredimail.com/?id=606430&amp;rui=124945965"><SPAN name="imgCache" border="0"><IMG alt="FREE Animations for your email - by IncrediMail! Click Here!" src="cid:D2E53146-38DE-4691-B9C3-D7C2E20E6362" border=0></SPAN></A></SPAN></BODY></HTML>