anoved / Shapetcl

Simple shapefile access for Tcl.
MIT License
3 stars 0 forks source link

Issue reading multi-part arc test/shptest/test7 #20

Closed anoved closed 11 years ago

anoved commented 11 years ago

Second of three parts appears as {} with vertices prepended to the third part's list.

anoved commented 11 years ago

This occurs when reading shapes we output as well.

$shp write {{0 0 0 100 100 100 100 0 0 0} {10 20 30 20 30 40 10 40 10 20} {60 20 90 20 90 40 60 40 60 20}} {test} -> 0

$shp coords 0 -> {0.0 0.0 0.0 100.0 100.0 100.0 100.0 0.0 0.0 0.0} {} {10.0 20.0 30.0 20.0 30.0 40.0 10.0 40.0 10.0 20.0 60.0 20.0 90.0 20.0 90.0 40.0 60.0 40.0 60.0 20.0}

anoved commented 11 years ago

Confirming that the file output in previous example is OK; it is listed correctly by shpdump. The error is in coordRead.