際際滷

際際滷Share a Scribd company logo
INTRO TO GEODJANGO
Thats the Django Pony. And Im Eric Palakovich Carr.
THE TALKING POINTS

   Installing and Con鍖guring PostGIS

   Setting up a GeoDjango project

   GeoDjango Model + Django Admin

   Loading ESRI (ArcGIS) data

   Spatial Queries in Djangos ORM

   GeoDjango + Google Maps

   ...and more!
INSTALLING POSTGIS

 OSX

  http://www.kyngchaos.com/software:postgres

 Ubuntu   > Lucid

  Apt-get   for PostgreSQL and PostGIS

 Ubuntu   = Lucid

  http://pastebin.com/rTDnhCdq
SETTING UP POSTGIS



 Create   the PostGIS template in your PostgreSQL database

  See   last block in http://pastebin.com/rTDnhCdq for tips
LETS CODE!
https://github.com/bigsassy/weloveponies_blank
GIS DATUMS & PROJECTIONS

  Datum      X-Coordinate       Y-Coordinate


 NAD_1927   -122.466903686523   48.7440490722656


 NAD_1983   -122.46818353793    48.7438798543649

 WGS_1984
            -122.46818353793    48.7438798534299
TWO DIFFERENT DATUMS
HOORAY! BACK TO CODE!
KEY LEGAL TAKEAWAYS WITH
      GOOGLE MAPS (IANAL!)
   http://code.google.com/apis/maps/terms.html

   Must be free, but you can require logins.

   The API requires you to report things sometimes (like if youre using a sensor)

   Link to Google's Terms of Use

   Explicitly state in your Maps API Implementation's terms of use that, by using your Maps API
    Implementation, your users are agreeing to be bound by Google's Terms of Use

   You can pre-fetch, cache, or store api data for improving the performance of your Maps API
    implementation, as long as its temporary, securely, and in a manner that does not permit use of
    the Content outside of your service
GOOGLE MAP ALTERNATIVES


 Bing
     Maps: http://www.microsoft.com/maps/developers/
 web.aspx

 MapQuest:   http://developer.mapquest.com/

 OpenStreetMaps:   http://lea鍖et.cloudmade.com/
DONE? GET BACK TO IT!
HLS COLOR TRICK
Base Color: RGB(0, 255, 0)

           HLS: (0.333..., 0.5, 1)


L = 0.15                             L = 0.92
CODE CODE CODE CODE
  CODE CODE CODE...
ITS OVER!


 Eric   Palakovich Carr

 @bigsassy

 gplus.to/bigsassy

More Related Content

Geotalk presentation

  • 1. INTRO TO GEODJANGO Thats the Django Pony. And Im Eric Palakovich Carr.
  • 2. THE TALKING POINTS Installing and Con鍖guring PostGIS Setting up a GeoDjango project GeoDjango Model + Django Admin Loading ESRI (ArcGIS) data Spatial Queries in Djangos ORM GeoDjango + Google Maps ...and more!
  • 3. INSTALLING POSTGIS OSX http://www.kyngchaos.com/software:postgres Ubuntu > Lucid Apt-get for PostgreSQL and PostGIS Ubuntu = Lucid http://pastebin.com/rTDnhCdq
  • 4. SETTING UP POSTGIS Create the PostGIS template in your PostgreSQL database See last block in http://pastebin.com/rTDnhCdq for tips
  • 6. GIS DATUMS & PROJECTIONS Datum X-Coordinate Y-Coordinate NAD_1927 -122.466903686523 48.7440490722656 NAD_1983 -122.46818353793 48.7438798543649 WGS_1984 -122.46818353793 48.7438798534299
  • 9. KEY LEGAL TAKEAWAYS WITH GOOGLE MAPS (IANAL!) http://code.google.com/apis/maps/terms.html Must be free, but you can require logins. The API requires you to report things sometimes (like if youre using a sensor) Link to Google's Terms of Use Explicitly state in your Maps API Implementation's terms of use that, by using your Maps API Implementation, your users are agreeing to be bound by Google's Terms of Use You can pre-fetch, cache, or store api data for improving the performance of your Maps API implementation, as long as its temporary, securely, and in a manner that does not permit use of the Content outside of your service
  • 10. GOOGLE MAP ALTERNATIVES Bing Maps: http://www.microsoft.com/maps/developers/ web.aspx MapQuest: http://developer.mapquest.com/ OpenStreetMaps: http://lea鍖et.cloudmade.com/
  • 11. DONE? GET BACK TO IT!
  • 12. HLS COLOR TRICK Base Color: RGB(0, 255, 0) HLS: (0.333..., 0.5, 1) L = 0.15 L = 0.92
  • 13. CODE CODE CODE CODE CODE CODE CODE...
  • 14. ITS OVER! Eric Palakovich Carr @bigsassy gplus.to/bigsassy

Editor's Notes