Dear all, I'm looking for an implementation of ESRI ASCII raster format: We are looking for such an implementation for CORMAS: Thank you. Regards, Serge Stinckwic h
|
Thanks for mentioning it.
It can be a super nice exercise. with a line based constructor. It can be super fun to code for a book chapter. For when do you need it? S.
-------------------------------------------- Stéphane Ducasse 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 |
On Wed, Jun 3, 2020 at 3:27 PM Stéphane Ducasse <[hidden email]> wrote:
Yes I think so. This is not super complicated from what I see in the format description.
ASAP, but we can wait :-) This is part of our work on the migration of CORMAS from VW to Pharo: https://github.com/cormas/cormas At the moment, the code to support this format is entangled in the grid model ... We can even do a pair programming session with you and other CORMERS. We are doing weekly meeting on Discord. Thank you. Regards, Serge Stinckwic h
|
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.
-------------------------------------------- Stéphane Ducasse 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 |
On Wed, Jun 3, 2020 at 3:40 PM Stéphane Ducasse <[hidden email]> wrote:
Our meeting is every Friday at 11:30am (France time), 9:30am UTC time. Regards, Serge Stinckwic h
|
I’ll try to join.
The file seem indeed easy to process. Except the implication by the or (xllcenter or xllcorner). Cheers, Cédrick
|
In reply to this post by SergeStinckwich
Reading and writing the format looks pretty straightforward; the question is, what is the internal representation? These things are basically decorated 2D number arrays. It is said in various places that the cell entries are stored as integers, but not what precision, nor what mapping there might be between internal and external numbers. On Wed, 3 Jun 2020 at 14:02, Serge Stinckwich <[hidden email]> wrote:
|
In reply to this post by cedreek
I did it as a kata as fast as I could …
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
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.
-------------------------------------------- Stéphane Ducasse 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 |
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-argentina.json'. 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: But is this useful for CORMAS? Cheers, Hernán El mié., 3 jun. 2020 a las 18:16, Stéphane Ducasse (<[hidden email]>) escribió:
|
In reply to this post by Stéphane Ducasse
On Thu, Jun 4, 2020 at 5:16 AM Stéphane Ducasse <[hidden email]> wrote:
yes this is a very old format ...
Would you want to share your work during our next CORMAS meeting, Friday? Regards, Serge Stinckwic h
|
If you want now cormas can use it, fork it, expand,…. I did it for you as an exercise for me. S. |
On Thu, Jun 4, 2020 at 4:08 PM Stéphane Ducasse <[hidden email]> wrote:
Ok, this is great. We will definitively reused it for CORMAS. Regards -- Serge Stinckwic h
|
In reply to this post by Richard O'Keefe
Does anyone know of a collection of test files for this format? On Thu, 4 Jun 2020 at 01:39, Richard O'Keefe <[hidden email]> wrote:
|
Minimal... On Thu, 4 Jun 2020 at 21:00, Richard O'Keefe <[hidden email]> wrote:
You might be looking for smaller tests, but anyway.. |
A couple of other interesting things I bumped into... https://jblindsay.github.io/ghrg/WhiteboxTools/index.html (
MIT Licensed ) On Fri, 5 Jun 2020 at 01:33, Ben Coman <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |