[Pharo-dev] New builder for Roassal: building geographical maps

Serge Stinckwich serge.stinckwich at gmail.com
Sun Nov 17 12:06:42 EST 2013


https://en.wikipedia.org/wiki/Shapefile

On Sun, Nov 17, 2013 at 6:02 PM, Stéphane Ducasse
<stephane.ducasse at inria.fr> wrote:
> hernan
>
> is shp a binary format?
>
> Stef
> On Nov 16, 2013, at 9:43 PM, Hernán Morales Durand <hernan.morales at gmail.com> wrote:
>
>> Hi Alex,
>> Have you checked Shapes to load ESRI .shp files?
>>
>> http://www.smalltalkhub.com/#!/~hernan/Shapes
>>
>> There are free shapefile maps in sites like this
>>
>> http://www.statsilk.com/maps/download-free-shapefile-maps
>>
>> Hernán
>>
>> El 16/11/2013 7:52, Alexandre Bergel escribió:
>>> It is currently ad-hoc since we use a bitmap for the map, and locate cities with distances in pixels.
>>>
>>>  We have found description in SVG and found a couple of formulas to map longitude and latitude into pixels. So we will have something vectorial very soon.
>>>
>>> If someone has some ideas, data, examples the we will be very happy to take them as challenges!
>>>
>>> Alexandre
>>>
>>>
>>>> Le 15-11-2013 à 18:39, Sven Van Caekenberghe <sven at stfx.eu> a écrit :
>>>>
>>>> Very nice, Alex, I guess you are using shape files then ?
>>>>
>>>> Sven
>>>>
>>>>> On 15 Nov 2013, at 20:56, Alexandre Bergel <alexandre.bergel at me.com> wrote:
>>>>>
>>>>> Hi!
>>>>>
>>>>> During our pair coding session on Friday, we worked on a new builder for Roassal.
>>>>>
>>>>> Here is short example:
>>>>>
>>>>>
>>>>>    | builder |
>>>>>    builder := ROFranceMapBuilder new.
>>>>>    builder shape circle size: 15; color: Color red; withLabel.
>>>>>    builder showCities: #('Paris' 'Lyon' 'Marseille').
>>>>>
>>>>>    builder shape circle size: 25; color: Color blue; withLabel.
>>>>>    builder show: 'Nice'.
>>>>>
>>>>>    builder open
>>>>>
>>>>> It should produce:
>>>>> <Screen Shot 2013-11-15 at 4.53.30 PM.png>
>>>>>
>>>>>
>>>>> There is no reference to external files. It runs out of the box.
>>>>>
>>>>> In case you got a sudden need to press a like button or do some retweet, here a bit of material:
>>>>>
>>>>> https://www.facebook.com/media/set/?set=a.543459092407359.1073741830.340543479365589&type=1
>>>>> https://twitter.com/objectprofile/status/401433558684008448
>>>>>
>>>>> On our facebook account we have many more screenshots.
>>>>>
>>>>> Cheers,
>>>>> Alexandre
>>>>> --
>>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>>> Alexandre Bergel  http://www.bergel.eu
>>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>
>>>>
>>>
>>> .
>>>
>>
>>
>
>



-- 
Serge Stinckwich
UCBN & UMI UMMISCO 209 (IRD/UPMC)
Every DSL ends up being Smalltalk
http://www.doesnotunderstand.org/




More information about the Pharo-dev mailing list