We indeed may have a need in the future about shp files. We will see. Alexandre On Nov 17, 2013, at 2:40 AM, Hernán Morales Durand <hernan.morales@gmail.com> wrote:
Yes, loading .shp is mandatory for GIS features. I don't know how it matches with your GPS project or it's complementary with your Athens/Roassal implementation. I hope so because it would be a real open door for GIS developers.
I have updated the packages and added an install script. Try it tomorrow in Pharo 2.0 (for some reason I cannot upload changes in StHub now):
http://www.smalltalkhub.com/#!/~hernan/Shapes
With this dataset:
https://drive.google.com/file/d/0B7XMfmjGRcXAdkgzeE84c2JtZEk/edit?usp=sharin...
| shpE legend | shpE := ShapeEnsemble fromFile: 'ne_110m_admin_0_countries.shp'. shpE attribute: 'CONTINENT'. legend := ColorLegend mapValuesToRandom: shpE valuesOfCurrentAttribute. shpE legend: legend. shpE displayMorphic
I have reviewed the code and there is a great effort put into. However there are places which need savage refactoring.
Hernán
El 16/11/2013 22:31, btc@openinworld.com escribió:
Alexandre Bergel wrote:
Have you checked Shapes to load ESRI .shp files?
Apparently it does not load in Pharo 3.0. I am not sure how popular are .shp files. The map I used in my examples are SVG path description.
SHaPe files a very popular with mining & oil companies => potential clients with big wallets. ESRI are the defacto standard for GIS. There are also probably a lot of smaller organisations limping by with data locked in old ESRI versions because upgrading is too expensive. Might be a good collaboration with your local GIS group.
cheers -ben
Our next goal is to represent GPS coordinate and cities. We will then probably try to show some visually interesting data (e.g., flights, tweets). Having this run at the top of Roassal @ Amber will come for free. Stay tuned!
Also, in december, when I will visit inria @ Lille, I would like to push Athens more into Roassal.
There are free shapefile maps in sites like this
Impressive website.
Cheers, Alexandre
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@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@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.3405434... https://twitter.com/objectprofile/status/401433558684008448
On our facebook account we have many more screenshots.
Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergelhttp://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
.
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.