SlideShare una empresa de Scribd logo
1 de 2
Task 1: Simplify LGA Boundaries

ogr2ogr -sql "select g.gid, lga_code11, lga_name11, ste_code11,
area_sqkm, ST_Simplify(g.geom, 0.005) as geom from
lga_2011_aust_2 g order by ST_Area(g.geom) desc" -f kml out.kml
PG:"host=localhost user=postgres dbname=postgis20 password=X"
Task 2: Compare touching LGAs
SELECT s1.lga_name11, s2.lga_name11
FROM lga_2011_aust s1, lga_2011_aust_2 s2
WHERE ST_Overlaps(s1.geom, s2.geom);

Más contenido relacionado

Destacado

Sydney Python Presentation (Feb 2010) - Tracking Large Metallic Objects / Goo...
Sydney Python Presentation (Feb 2010) - Tracking Large Metallic Objects / Goo...Sydney Python Presentation (Feb 2010) - Tracking Large Metallic Objects / Goo...
Sydney Python Presentation (Feb 2010) - Tracking Large Metallic Objects / Goo...Kelvin Nicholson
 
Geo_DC Meetup talk: Mapping a marathon
Geo_DC Meetup talk: Mapping a marathonGeo_DC Meetup talk: Mapping a marathon
Geo_DC Meetup talk: Mapping a marathonBruno Nuño
 
Sydney Quantified Self (November 2013) - The Sleep Performance Formula
Sydney Quantified Self (November 2013) - The Sleep Performance FormulaSydney Quantified Self (November 2013) - The Sleep Performance Formula
Sydney Quantified Self (November 2013) - The Sleep Performance FormulaKelvin Nicholson
 
Quantified Self - November 2013 - Timesheets
Quantified Self - November 2013 - TimesheetsQuantified Self - November 2013 - Timesheets
Quantified Self - November 2013 - TimesheetsKelvin Nicholson
 
Server side geo_tools_in_drupal_pnw_2012
Server side geo_tools_in_drupal_pnw_2012Server side geo_tools_in_drupal_pnw_2012
Server side geo_tools_in_drupal_pnw_2012Mack Hardy
 
Taming Rich GML with Stetl - FOSS4G 2013 Nottingham
Taming Rich GML with Stetl - FOSS4G 2013 NottinghamTaming Rich GML with Stetl - FOSS4G 2013 Nottingham
Taming Rich GML with Stetl - FOSS4G 2013 NottinghamJust van den Broecke
 

Destacado (7)

Sydney Python Presentation (Feb 2010) - Tracking Large Metallic Objects / Goo...
Sydney Python Presentation (Feb 2010) - Tracking Large Metallic Objects / Goo...Sydney Python Presentation (Feb 2010) - Tracking Large Metallic Objects / Goo...
Sydney Python Presentation (Feb 2010) - Tracking Large Metallic Objects / Goo...
 
Geo_DC Meetup talk: Mapping a marathon
Geo_DC Meetup talk: Mapping a marathonGeo_DC Meetup talk: Mapping a marathon
Geo_DC Meetup talk: Mapping a marathon
 
pgRoutingを使った経路検索
pgRoutingを使った経路検索pgRoutingを使った経路検索
pgRoutingを使った経路検索
 
Sydney Quantified Self (November 2013) - The Sleep Performance Formula
Sydney Quantified Self (November 2013) - The Sleep Performance FormulaSydney Quantified Self (November 2013) - The Sleep Performance Formula
Sydney Quantified Self (November 2013) - The Sleep Performance Formula
 
Quantified Self - November 2013 - Timesheets
Quantified Self - November 2013 - TimesheetsQuantified Self - November 2013 - Timesheets
Quantified Self - November 2013 - Timesheets
 
Server side geo_tools_in_drupal_pnw_2012
Server side geo_tools_in_drupal_pnw_2012Server side geo_tools_in_drupal_pnw_2012
Server side geo_tools_in_drupal_pnw_2012
 
Taming Rich GML with Stetl - FOSS4G 2013 Nottingham
Taming Rich GML with Stetl - FOSS4G 2013 NottinghamTaming Rich GML with Stetl - FOSS4G 2013 Nottingham
Taming Rich GML with Stetl - FOSS4G 2013 Nottingham
 

Sydney GeoRabble Presentation - GovHack 2012 - Happiness Matters

  • 1. Task 1: Simplify LGA Boundaries ogr2ogr -sql "select g.gid, lga_code11, lga_name11, ste_code11, area_sqkm, ST_Simplify(g.geom, 0.005) as geom from lga_2011_aust_2 g order by ST_Area(g.geom) desc" -f kml out.kml PG:"host=localhost user=postgres dbname=postgis20 password=X"
  • 2. Task 2: Compare touching LGAs SELECT s1.lga_name11, s2.lga_name11 FROM lga_2011_aust s1, lga_2011_aust_2 s2 WHERE ST_Overlaps(s1.geom, s2.geom);