topo_client 1.0.4 copy "topo_client: ^1.0.4" to clipboard
topo_client: ^1.0.4 copied to clipboard

Manipulate TopoJSON, such as to merge shapes, and convert it back to GeoJSON.

Dart CI pub package package publisher

Manipulate TopoJSON, such as to merge shapes, and convert it back to GeoJSON.

The topo_client package provides tools for manipulating TopoJSON, such as to [merge] shapes or [quantize] coordinates, and for converting back to GeoJSON (using [feature]) for rendering with standard tools such as GeoPath. For example, bl.ocks.org/3783604:

import 'dart:convert';

import 'package:d4_geo/d4_geo.dart';
import 'package:http/http.dart' as http;

void main() async {
  var path = GeoPath();

  String url = "https://d3js.org/us-10m.v1.json";
  final response = await http.get(Uri.parse(url));

  path(jsonDecode(response.body));
}
0
likes
140
pub points
5%
popularity

Publisher

verified publisherluizbarboza.com

Manipulate TopoJSON, such as to merge shapes, and convert it back to GeoJSON.

Repository (GitHub)
View/report issues

Documentation

API reference

License

ISC (LICENSE)

Dependencies

topo_parse

More

Packages that depend on topo_client