MapWarper at Where2.0, with Layers!

May 19, 2009 at 12:03 am | In geodata, gis, gps, neogeography | Leave a Comment
Tags: , ,

Tomorrow I’m going to be doing an Ignite talk about MapWarper, and will talk about the newest function – Layers!

You can now make a mosaic of your maps.

For example, here’s one I made really quickly from some of  Andrew Chadwicks Oxford scanned maps, and dropped into Google Eartyhi

Adding a primary key id to table in rails

May 9, 2009 at 7:00 pm | In gis | Leave a Comment
Tags: , , ,

Just a quick little tip in case someone searches for it.

I have a table that was used for a has_and_belongs_to_many (habtm) relationship – which was great earlier on. As the application grew, needed to change to a has_many :through (hmt) relationship – using this table as a model etc. Now. initially, I used “:id => false” when creating the habtm join table (Mahmoud tells you why).

But one needs an primary key id on hmt join tables. So created a migration:
def self.up
add_column :table_name, :id, :primary_key
end

def self.down
remove_column :table_name, :id
end

And it added an id column to the table in the correct data type (integer) and gave id values to the existing records. sweet.

Also note that you don’t have to give the :id column a datatype, as to rails :primary_key is a datatype.

Obama, White House support OpenStreetMap

May 3, 2009 at 5:25 pm | In geo, openstreetmap | 2 Comments
Tags: , , , , , , ,

Major stuff this:

White House uses OpenStreetMap maps, rendered with Cloudmade custom styles to match their design. Also, OpenLayers. Now that’s Change.

Open Maps in White House with Obama

http://www.whitehouse.gov/change/

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.