Simple implementation of GeoJSON object model in Pharo.
Metacello new
baseline: 'GeoJSON';
repository: 'github://zweidenker/GeoJSON';
load.
Select and inspect the following expression:
| url file |
url := 'https://github.com/mgaitan/departamentos_argentina/raw/master/departamentos-argentina.json'.
ZnClient new
systemPolicy;
url: url;
numberOfRetries: 2;
maximumEntitySize: 1024 * 1024 * 1024;
signalProgress: true;
contentReader: [ : entity | GeoJSONReader fromString: entity contents ];
get