Skip to content

Simple implementation of GeoJSON object model in pharo

License

Notifications You must be signed in to change notification settings

zweidenker/GeoJSON

Repository files navigation

Description

Simple implementation of GeoJSON object model in Pharo.

Installation

    Metacello new
    	baseline: 'GeoJSON';
    	repository: 'github://zweidenker/GeoJSON';
    	load.

Usage

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