<div dir="ltr"><br><br>On Sun, Jul 21, 2019 at 7:01 PM Rich Shepard <<a href="mailto:rshepard@appl-ecosys.com">rshepard@appl-ecosys.com</a>> wrote:<br>><br>[...]<br><div><br></div><div>so you want to define a boundary with 5 coordinates and no categories: that is</div><div>B 5</div><div>and make sure you do not define a category for the boundary<br></div><div>and a centroid with one coordinate and one category</div><div>C 1 1</div><div><br></div><div>therefore remove the line with " 1 1" in the boundary definition<br></div><div>></div>> analysis_points.dat:<br>><br>> VERTI:<br>> B 5 # There are 5 coordinates and no categories<br>> -123.940000 45.150100<br>> -123.940000 45.145400<br>> -123.960000 45.150100<br>> -123.960000 45.145400<br><div>> -123.940000 45.150100</div><div><br></div><div>--> remove<br></div><div>> 1 1</div><--<br><div><br></div><div>--> change<br></div><div>> C 1</div><div>C 1 1</div><div><--<br></div>> -123.950000 45.147500<br>> 1 1<br><div><br></div><div>you get then</div><div><br></div><div>B 5 # 5 coordinates and no categories<br>
-123.940000 45.150100<br>
-123.940000 45.145400<br>
-123.960000 45.150100<br>
-123.960000 45.145400<span class="gmail-im"><br>
-123.940000 45.150100<br>C 1 1 # 1 coordinate and one category<br></span>
-123.950000 45.147500<br>
1 1</div><div><br></div><div>this conforms now to the GRASS ASCII vector format specification, in particular</div><div><pre>TYPE NUMBER_OF_COORDINATES [NUMBER_OF_CATEGORIES]</pre></div><div> and should import successfully</div><div><br></div><div>Markus M</div><div><br></div><div>></div>> GRASS now fails to import the data file:<br>><br>> v.in.ascii in=analysis_points.dat out=analysis_corners for=standard --o<br>> WARNING: Error reading ASCII file: (unknown type) [ 1 1]<br>> ERROR: Import failed<br>><br>> Grass seems to not like the layer and category number for the centroid as<br>> removing those for the boundary produces the same error.<br>><br>> What am I still missing?<br>><br>> Regards,<br>><br>> Rich<br>> _______________________________________________<br>> grass-user mailing list<br>> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a></div>