//
you're reading...
Blog

Esri’s 100-lines-or-less competition

Esri are running a coding competition, with the challenge being to write a fully-functional JavaScript map using a maximum of 100 lines of code.

I love this idea, as it’s the functional equivalent of a good GeoRabble talk – cut the crap and get straight to the point. Even better, they’re using GitHub to manage the entries, which makes each entry public so other people can learn from it. The full details of the competition are at https://github.com/Esri/100-lines-or-less-js

I decided to give it a go – my entry is available here.

Climate Explorer

In order to make it Australian-focussed, I wanted to use the BOM’s climate datasets. Unfortunately I don’t think there’s an easy way to obtain this data, so I wrote a Python script to scrape the data from the site. I’m not sure of the legality of this, but my conscience is clear as it’s just an automated way of getting to publicly accessible information. Hopefully they feel the same way…

Once I had downloaded the information, I made a point featureclass from it, and served it out via ArcGIS Server. My entry is basically a wrapper to make it easy to find weather stations and see their historical records. A link underneath the charts takes your directly to that weather station’s data feed. This is arguably easier and more intuitive than having to look up a station number, as at http://www.bom.gov.au/climate/data

I’d love to add more functionality, but I’m already dangerously close to the 100 line limit. Please let me know of any feedback.

Cheers,
Steve (@stephenlead)

Discussion

3 thoughts on “Esri’s 100-lines-or-less competition

  1. Impressive! Or was yesterday – site seems stuck now. Nice work extracting data from BOM.

    Posted by Jody Garnett (@jodygarnett) | 20/03/2013, 2:17 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

GeoRabble Tweets!

%d bloggers like this: