[GRASS-user] Points to area workflow

Markus Metz markus.metz.giswork at gmail.com
Mon Jul 22 01:32:00 PDT 2019


On Sun, Jul 21, 2019 at 7:01 PM Rich Shepard <rshepard at appl-ecosys.com>
wrote:
>
[...]

so you want to define a boundary with 5 coordinates and no categories: that
is
B 5
and make sure you do not define a category for the boundary
and a centroid with one coordinate and one category
C 1 1

therefore remove the line with " 1 1" in the boundary definition
>
> analysis_points.dat:
>
> VERTI:
> B 5                     # There are 5 coordinates and no categories
>   -123.940000 45.150100
>   -123.940000 45.145400
>   -123.960000 45.150100
>   -123.960000 45.145400
>   -123.940000 45.150100

--> remove
>   1 1
<--

--> change
> C 1
C 1 1
<--
>   -123.950000 45.147500
>   1 1

you get then

B 5                     # 5 coordinates and no categories
  -123.940000 45.150100
  -123.940000 45.145400
  -123.960000 45.150100
  -123.960000 45.145400
  -123.940000 45.150100
C 1 1                # 1 coordinate and one category
  -123.950000 45.147500
  1 1

this conforms now to the GRASS ASCII vector format specification, in
particular

TYPE NUMBER_OF_COORDINATES [NUMBER_OF_CATEGORIES]

and should import successfully

Markus M

>
> GRASS now fails to import the data file:
>
> v.in.ascii in=analysis_points.dat out=analysis_corners for=standard --o
> WARNING: Error reading ASCII file: (unknown type) [ 1 1]
> ERROR: Import failed
>
> Grass seems to not like the layer and category number for the centroid as
> removing those for the boundary produces the same error.
>
> What am I still missing?
>
> Regards,
>
> Rich
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20190722/80482ac6/attachment.html>


More information about the grass-user mailing list