<div dir="ltr"><div><div><div><div><div><div><br><br>On Tue, Nov 28, 2017 at 3:34 AM, 洪朝貴 <<a href="mailto:ckhung@cyut.edu.tw">ckhung@cyut.edu.tw</a>> wrote:<br>><br>> Hi All,<br>><br>> There is a one-to-one correspondence between each point<br>> of the input point set and a region in the output region set<br>> of the Voronoi diagram. Is there a way (say, adding<br>> an attribute column?) to create the two way links between<br>> these two data sets?<br>><br>> An unrelated minor question: the output of v.voronoi can be displayed,<br>> but it does not pass the geojson validator:<br>> <a href="https://github.com/mapbox/geojsonhint">https://github.com/mapbox/geojsonhint</a><br>> The orientation of the output regions seem to be the opposite<br>> of the geojson specification. I guess the responsibility<br>> of ensuring the correct orientation falls more on v.voronoi<br>> than on v.out.ogr (which outputs the geojson file)?<br><br></div>v.voronoi produces boundaries, and areas are constructed from these boundaries. GRASS uses a topological vector model, see<br><a href="https://grass.osgeo.org/grass73/manuals/vectorintro.html#vector-model-and-topology">https://grass.osgeo.org/grass73/manuals/vectorintro.html#vector-model-and-topology</a><br><br></div>The correct orientation of polygons must not be assured by v.voronoi or v.out.ogr, but by OGR. According to OGC simple feature specification, polygons must be oriented counter-clockwise, interior rings are oriented clockwise. But e.g. according to ESRI shapefile specifications, the orientation is opposite to the OGC specification: polygons must be oriented clockwise, inner rings are oriented counter-clockwise. <br></div></div></div>Therefore I would defer the responsibility to provide the correct orientation for each output format to OGR.<br><br></div>Markus M<br><div><div><div><div><div><div><br>><br>> Thanks!<br>><br>> --<br>> 『我的野蠻工讀生』用高昂的『下賊船的代價』<br>> 綁架了我的文件! (請分別搜尋)<br>> Chao-Kuei Hung 洪朝貴<br>><br>> PGP Key ID: 4096R/5828A7A7<br>> Fingerprint: 67AF B5AB 5242 3E99 16D7  EAF8 A94D 2C92 5828 A7A7<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><br><br></div></div></div></div></div></div></div>