I think we could also use the GeoJSON package? I did a little example with the package from the zweidenker repository Metacello new baseline: 'GeoJSON'; repository: 'github://zweidenker/GeoJSON'; load. and use it like this: | url file | url := 'https://github.com/mgaitan/departamentos_argentina/raw/master/departamentos-...'. ZnClient new systemPolicy; url: url; numberOfRetries: 2; maximumEntitySize: 1024 * 1024 * 1024; signalProgress: true; contentReader: [ : entity | GeoJSONReader fromString: entity contents ]; get. And the coordinates can be obtained using: self features anyOne geometry coordinates But is this useful for CORMAS? Cheers, Hernán El mié., 3 jun. 2020 a las 18:16, Stéphane Ducasse (< stephane.ducasse@inria.fr>) escribió:
I did it as a kata as fast as I could â¦
https://github.com/Ducasse/ESRI-ASCII-Raster
I found the spec a bit strange
The header information is followed by cell value information specified in space-delimited row-major order, with each row separated by a carriage return. and
- No carriage returns are necessary at the end of each row in the raster. The number of columns in the header determines when a new row begins.
O_o
so I followed the example on wikipedia
It was fun. My implementation could be more robust but for 2 hours coding. It was a fun kata.
S.
On 3 Jun 2020, at 11:24, Cédrick Béler <cdrick65@gmail.com> wrote:
Iâll try to join.
The file seem indeed easy to process.
<GraphiqueCollé-3.png>
Except the implication by the or (xllcenter or xllcorner).
Cheers, Cédrick
Le 3 juin 2020 à 09:44, Serge Stinckwich <serge.stinckwich@gmail.com> a écrit :
On Wed, Jun 3, 2020 at 3:40 PM Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
Ok Iâm a paper on the grill and I will give a try to see if I can do it in TDD in 1 or 1:30 as a kata. I will let you know but by the end of the week you have it.
Our meeting is every Friday at 11:30am (France time), 9:30am UTC time.
Regards, -- Serge Stinckwic h https://twitter.com/SergeStinckwich
-------------------------------------------- Stéphane Ducasse http://stephane.ducasse.free.fr / http://www.pharo.org 03 59 35 87 52 Assistant: Aurore Dalle FAX 03 59 57 78 50 TEL 03 59 35 86 16 S. Ducasse - Inria 40, avenue Halley, Parc Scientifique de la Haute Borne, Bât.A, Park Plaza Villeneuve d'Ascq 59650 France