<html style="direction: ltr;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style id="bidiui-paragraph-margins" type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body bidimailui-charset-is-forced="true" style="direction: ltr;">
<p><br>
</p>
<div class="moz-cite-prefix">On 09/05/2023 23:53, Rich Shepard
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:2e52a5c8-e297-a639-8fe-62862c9a798@appl-ecosys.com">I'm
trying to clip the vector contour map with its very large areal
<br>
coverage to my project's analysis area (image attached). The
v.clip module
<br>
has three parameters: input map, clip map, output map. I wonder if
the
<br>
structure of my analysis area is the source of the error(s).
<br>
<br>
Analysis area used for input with v.in.ascii (output name
clipbox):
<br>
L 5 1
<br>
2306066.00 224201.00
<br>
2307121.58 224201.00
<br>
2307121.58 223164.00
<br>
2306066.00 223164.00
<br>
2306066.00 224201.00
<br>
1 1
<br>
<br>
</blockquote>
<p><br>
</p>
<p>Your v.in.ascii command has create a *line* feature, (the L on
the first line) not an area. Even though the lines connect it's
not a boundary, and there's no centroid, which is required for a
closed boundary to be considered a polygon area. Have another
look at the v.in.ascii man page, and refer to Example 1 a). You'll
need to define the list of corners as B (not L) and also add
another few lines for the centroid.</p>
<p><br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:2e52a5c8-e297-a639-8fe-62862c9a798@appl-ecosys.com">The
command and its results:v.clip in=base_contours clip=clipbox
out=dm_baseline
<br>
<br>
--------------------------------------------------------------------------------
<br>
Default clipping with dissolved clip map.
<br>
--------------------------------------------------------------------------------
<br>
WARNING: No 'column' option specified. Dissolving based on
category values
<br>
from layer <1>.
<br>
Extracting features...
<br>
100%
<br>
Building topology for vector map
<temp_13361@northside_rock>...
<br>
Registering primitives...
<br>
Writing attributes...
<br>
Removing duplicate centroids...
<br>
Building topology for vector map
<temp_13361@northside_rock>...
<br>
Registering primitives...
<br>
Copying vector features from
<base_contours@northside_rock>...
<br>
100%
<br>
Copying vector features from <temp_13361@northside_rock>...
<br>
ERROR: No area features found in vector map
<temp_13361@northside_rock>.
<br>
Verify 'btype' parameter.
<br>
ERROR: Clipping steps failed. Check above error messages and see
following
<br>
details:
<br>
Module run `v.overlay ainput=base_contours
binput=temp_13361
<br>
operator=and output=dm_baseline olayer=0,1,0` ended with an
error.
<br>
The subprocess ended with a non-zero return code: 1. See
errors
<br>
above the traceback or in the error output
<br>
====================================================
<br>
<br>
Perhaps the error is the result of my not using the -d option
because I'm
<br>
not sure what would be dissolved with it: the contours external to
the
<br>
clipbox? Which is what I want.
<br>
<br>
Confused,
<br>
<br>
Rich
<br>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918</pre>
</body>
</html>