Trying to convert my geoJSON file into topoJSON so
- I downloaded
topojson
fromnpm
and - followed the instructions on gis.stackexchange Convert GeoJSON to TopoJSON
- basically the same as the topoJSON GitHub page
However, I got an error message:
> topojson -o prTopo.json prCounties.json
quantization: bounds NaN NaN NaN NaN (spherical)
quantization: maximum error 0.00m (0.00°)
prune: retained 0 / 0 arcs (NaN%)
The original output I have is all the municipalities of Puerto Rico which I collected on GitHub (Municipios). Here is an abridged version:
{"type": "FeatureCollection",
"properties": {"kind": "state", "state": "PR"},
"features": [[
{"geometry": {
"type": "MultiPolygon",
"coordinates": [[[[-65.4406, 18.1541], [-65.2763, 18.1322], [-65.4515, 18.0884], [-65.5775, 18.1048]]]]},
"type": "Feature", "properties": {"kind": "county", "name": "Vieques", "state": "PR"}}]]
}
The output I got was
{"type":"Topology",
"transform":{"scale":[null,null],"translate":[null,null]},
"objects":{"prCounties":{"type":null,"properties":{"kind":"state","state":"PR"}}},
"arcs":[]}
I don't really understand the geoJSON or topoJSON specs, but it looks like the transform
data comes out null and the arc
data is null is empty.