[postgis-devel] Wrong output in AsTopoJson example
Tom van Tilburg
tom.van.tilburg at gmail.com
Thu Aug 22 05:19:13 PDT 2013
Thank you all for bringing a new version. I'm happy to see all the
improvements.
In the smallprint there was some feature I got very excited about called
"topology.AsTopoJSON".
But the manual gives a brief example which I feel is not correct.
Could it be that for topojson so called 'delta' values are needed in the
coordinates instead of pure coordinates?
Also the order of the arcs in multipolygon seems wrong (why negative
values?) and komma's are missing after each new arc.
IMO the example should be something like:
{ "type": "Topology", "transform": { "scale": [1,1], "translate": [0,0]
}, "objects": {
"P3P4": { "type": "MultiPolygon", "arcs": [[[0]],[[1,2,3,4,5,6]]]}
}, "arcs": [
[[25,30],[6,0],[0,10],[-14,0],[0,-10],[14,0]],
[[35,14],[0,-8]],
[[35,6],[12,0]],
[[47,6],[0,8]],
[[47,14],[0,8]],
[[47,22],[-12,0]],
[[35,22],[0,-8]]
]}
Cheers,
Tom
More information about the postgis-devel
mailing list