[Pharo-users] ESRI ASCII raster format

2020-06-02 Thread Serge Stinckwich
Dear all, I'm looking for an implementation of ESRI ASCII raster format: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/ESRI_ASCII_raster_format/009t000z00/ We are looking for such an implementation for CORMAS: https://github.com/cormas/cormas/issues/135 Thank you. Regards

Re: [Pharo-users] ESRI ASCII raster format

2020-06-03 Thread Stéphane Ducasse
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. > On 3 Jun 2020, at 04:01, Serge Stinckwich wrote: > > Dear all, > > I'm looking for an implementation of ESRI ASCII raster

Re: [Pharo-users] ESRI ASCII raster format

2020-06-03 Thread Serge Stinckwich
On Wed, Jun 3, 2020 at 3:27 PM Stéphane Ducasse wrote: > 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. > Yes I think so. This is not super complicated from what I see in the format description. For

Re: [Pharo-users] ESRI ASCII raster format

2020-06-03 Thread Stéphane Ducasse
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. > On 3 Jun 2020, at 09:33, Serge Stinckwich wrote: > > > > On Wed, Jun 3, 2020 at 3:27 PM Stéphane Ducasse

Re: [Pharo-users] ESRI ASCII raster format

2020-06-03 Thread Serge Stinckwich
On Wed, Jun 3, 2020 at 3:40 PM Stéphane Ducasse 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

Re: [Pharo-users] ESRI ASCII raster format

2020-06-03 Thread Richard O'Keefe
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 b

Re: [Pharo-users] ESRI ASCII raster format

2020-06-03 Thread Stéphane Ducasse
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

Re: [Pharo-users] ESRI ASCII raster format

2020-06-03 Thread Hernán Morales Durand
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/departament

Re: [Pharo-users] ESRI ASCII raster format

2020-06-03 Thread Serge Stinckwich
On Thu, Jun 4, 2020 at 5:16 AM Stéphane Ducasse wrote: > 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 > yes this is a very old format ... > > The header information is followed by cell value information specified in

Re: [Pharo-users] ESRI ASCII raster format

2020-06-04 Thread Stéphane Ducasse
> > It was fun. > My implementation could be more robust but for 2 hours coding. > It was a fun kata. > > Would you want to share your work during our next CORMAS meeting, Friday? If you want now cormas can use it, fork it, expand,…. I did it for you as an exercise for me. S.

Re: [Pharo-users] ESRI ASCII raster format

2020-06-04 Thread Serge Stinckwich
On Thu, Jun 4, 2020 at 4:08 PM Stéphane Ducasse wrote: > >>- >> >> It was fun. >> My implementation could be more robust but for 2 hours coding. >> It was a fun kata. >> > > Would you want to share your work during our next CORMAS meeting, Friday? > > > > If you want now cormas can use it, fo

Re: [Pharo-users] ESRI ASCII raster format

2020-06-04 Thread 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 wrote: > 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

Re: [Pharo-users] ESRI ASCII raster format

2020-06-04 Thread Ben Coman
Minimal... On Thu, 4 Jun 2020 at 21:00, Richard O'Keefe wrote: > Does anyone know of a collection of test files for this format? > You might be looking for smaller tests, but anyway.. https://github.com/richbl/esri-ascii-parser/tree/master/sample_data https://www.planlaufterrain.com/LiDAR-Da

Re: [Pharo-users] ESRI ASCII raster format

2020-06-04 Thread Ben Coman
A couple of other interesting things I bumped into... https://jblindsay.github.io/ghrg/WhiteboxTools/index.html ( MIT Licensed ) https://www.diva-portal.org/smash/get/diva2:1086367/FULLTEXT01.pdf On Fri, 5 Jun 2020 at 01:33, Ben Coman wrote: > On Thu, 4 Jun 2020 at 21:00, Richard O'Keefe wrot