[GRASS-dev] v.extracy fails for type=boundary

Markus Metz markus.metz.giswork at gmail.com
Fri May 4 07:41:59 PDT 2018


On Fri, May 4, 2018 at 4:09 PM, Nikos Alexandris <nik at nikosalexandris.net>
wrote:
>
> Dears,
>
> I get something unexpected using type=boundary with `v.external`:
>
> ```
> v.extract input=european_grid_10k_boundaries out=test type=boundary --v
--o
> Using native format
> Extracting features...
> 100%
> Building topology for vector map <test at PERMANENT>...
> Registering primitives...
> 0 primitives registered
> 0 vertices registered
> Topology was built
> Number of nodes: 0
> Number of primitives: 0
> Number of points: 0
> Number of lines: 0
> Number of boundaries: 0
> Number of centroids: 0
> Number of areas: 0
> Number of isles: 0
> Writing attributes...
> ```

The default answer for the layer option of v.extract is 1, i.e. only
features with a category in layer 1 will be extracted. If you want to
extract all features of a given type, use e.g. v.extract layer=-1
type=boundary.

Markus M

>
> I tried this in both 7.4 and trunk.
>
> The map does have boundaries,
> ```
> v.info -t european_grid_10k_boundaries
> nodes=253
> points=0
> lines=0
> boundaries=422
> centroids=177
> areas=177
> islands=8
> primitives=599
> map3d=0
> ```
>
> I can draw the boundaries on-screen using `d.vect type=boundary`.
>
> The vector map is small, so I have attached it here-in, in case someone
> can have a quick look.
>
> Thank you, Nikos
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20180504/169c87cc/attachment.html>


More information about the grass-dev mailing list