[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grass-user
Subject:    Re: [GRASS-user] Remove islands with v.extract problem (again)
From:       "Blumentrath, Stefan" <Stefan.Blumentrath () nina ! no>
Date:       2014-06-29 21:18:47
Message-ID: 2C5F82DA3EE3E449BD473075F2C290BF991112A0 () NINSRV05 ! nina ! no
[Download RAW message or body]

Hi Sotiris,

Thanks for your answer. The second workaround you propose should work, but is a bit \
complicated. Does removal of islands with v.extract work for others? Am I doing \
something wrong?

Cheers
Stefan


From: S. Koukoulas (listes) [mailto:sotkouklistes@gmail.com]
Sent: 21. juni 2014 21:59
To: Blumentrath, Stefan; grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] Remove islands with v.extract problem (again)

I don't know how your file looks like, but one of the following should work,

try
v.clean and remove small areas
or
make the internal islands polygons, and using the same attributes (add them), use \
v.dissolve to get rid of internal polygons.

regards,
sotiris
On 06/12/2014 12:35 PM, Blumentrath, Stefan wrote:

Hi,



I am trying to remove islands (here also in the topological sense) from a set of lake \
polygons.



The polygon layer contains only the water bodies (means islands within the lakes have \
no category).



I tryed v.extract -d as well as v.extract list/cats=1-99999999 both in GRASS 6 and 7 \
(on Ubuntu 12.04 LTS).



In all tests the layer did not get modified as expected and islands were still \
present.



This topic has been (repeatedly) discussed earlier. But the proposed solution (also \
in the manual of v.extract) did not work for others as well (quite some time ago):

http://lists.osgeo.org/pipermail/grass-user/2006-January/032016.html



I am wondering what the problem might be?

Any idea? I can provide sample data if that might help...



I am now using ST_ExteriorRing from PostGIS \
(http://postgis.net/docs/manual-2.1/ST_ExteriorRing.html) to achieve what I want, but \
it would be nice to have a GRASS solution...



Cheers

Stefan






_______________________________________________

grass-user mailing list

grass-user@lists.osgeo.org<mailto:grass-user@lists.osgeo.org>

http://lists.osgeo.org/mailman/listinfo/grass-user


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";
	color:black;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";
	color:black;}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";
	color:black;}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:Consolas;
	color:black;}
span.EmailStyle20
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="NO-BOK" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hi \
Sotiris,<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Thanks \
for your answer. The second workaround you propose should work, but is a bit \
complicated.<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Does \
removal of islands with v.extract work for others? Am I doing something \
wrong?<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Cheers<o:p></o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Stefan
 <o:p></o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">From:</span></b><span \
lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"> \
S. Koukoulas (listes) [mailto:sotkouklistes@gmail.com] <br>
<b>Sent:</b> 21. juni 2014 21:59<br>
<b>To:</b> Blumentrath, Stefan; grass-user@lists.osgeo.org<br>
<b>Subject:</b> Re: [GRASS-user] Remove islands with v.extract problem \
(again)<o:p></o:p></span></p> </div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">I don't know how your file looks \
like, but one of the following should work,<br> <br>
try <br>
v.clean and remove small areas<br>
or <br>
make the internal islands polygons, and using the same attributes (add them), use \
v.dissolve to get rid of internal polygons.<br> <br>
regards,<br>
sotiris<o:p></o:p></p>
<div>
<p class="MsoNormal">On 06/12/2014 12:35 PM, Blumentrath, Stefan \
wrote:<o:p></o:p></p> </div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Hi,<o:p></o:p></span></p>
 <p><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
 <p><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">I \
am trying to remove islands (here also in the topological sense) from a set of lake \
polygons.<o:p></o:p></span></p> <p><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
 <p><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">The \
polygon layer contains only the water bodies (means islands within the lakes have no \
category).<o:p></o:p></span></p> <p><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
 <p><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">I \
tryed v.extract -d as well as v.extract list/cats=1-99999999 both in GRASS 6 and 7 \
(on Ubuntu 12.04 LTS).<o:p></o:p></span></p> <p><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
 <p><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">In \
all tests&nbsp;the layer&nbsp;did not get modified as expected&nbsp;and islands were \
still present.<o:p></o:p></span></p> <p><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
 <p><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">This \
topic has been (repeatedly) discussed earlier. But the proposed solution (also in the \
manual of v.extract) did not work for others as well (quite some time \
ago):<o:p></o:p></span></p> <p><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"><a \
href="http://lists.osgeo.org/pipermail/grass-user/2006-January/032016.html">http://lis \
ts.osgeo.org/pipermail/grass-user/2006-January/032016.html</a><o:p></o:p></span></p> \
<p><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
 <p><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">I \
am wondering what the problem might be?<o:p></o:p></span></p> <p><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Any \
idea? I can provide sample data if that might help...<o:p></o:p></span></p> <p><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
 <p><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">I \
am now using ST_ExteriorRing from PostGIS (<a \
href="http://postgis.net/docs/manual-2.1/ST_ExteriorRing.html">http://postgis.net/docs/manual-2.1/ST_ExteriorRing.html</a>) \
to achieve what I  want, but it would be nice to have a GRASS \
solution...&nbsp;<o:p></o:p></span></p> <p><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
 <p><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Cheers<o:p></o:p></span></p>
 <p><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Stefan<o:p></o:p></span></p>
 <p><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
 </div>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>grass-user mailing list<o:p></o:p></pre>
<pre><a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><o:p></o:p></pre>
 <pre><a href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a><o:p></o:p></pre>
 </blockquote>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>



_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
--===============7722964119164691431==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic