140 | | * Polygons for PaP neighborhoods from https://www.geoint-online.net/community/haitiearthquake/Geospatial%20Data%20Files/Forms/AllItems.aspx |
141 | | * '''Projection Issue''' Departments and Communes files are in [http://www.spatialreference.org/ref/epsg/32618/ EPSG:32618] |
142 | | * Administratrive Areas (3 levels) -- tcarobruce has a partial solution for this |
| 139 | |
| 140 | ==== ToDo ==== |
| 141 | * admin_area_for_latlng (filter by bbox, use shapely to do PIP) |
| 142 | * merge wkt parse code into modules/gis.py |
| 143 | * simplify polygon if too big for wkt field (or throw exception, to start) |
| 144 | * don't display all admin area feature groups (> 700) |
| 145 | |
| 146 | ==== Administrative Areas ==== |
| 147 | * Sources |
144 | | * Official (with '''projection issue'''): [https://www.geoint-online.net/community/haitiearthquake/Geospatial%20Data%20Files/haiti_departments01132010.zip Departments], [https://www.geoint-online.net/community/haitiearthquake/Geospatial%20Data%20Files/haiti_communes_01132010.zip Communes], [https://www.geoint-online.net/community/haitiearthquake/Geospatial%20Data%20Files/haiti_sections_01132010.zip Sections] |
145 | | * Shapefile to WKT (for calculations): {{{ogr2ogr -f CSV haiti_departments Haiti_departementes_edited_01132010.shp -lco GEOMETRY=AS_WKT}}} (OGR 1.6+) |
146 | | * '''to reproject''' with ogr2ogr, add source and transformation SRSes: {{{-s_srs EPSG:32618 -t_srs EPSG:4326}}} |
147 | | * Build a script to do this (very useful for future responses as this is a common process) |
| 149 | * Official (from [https://www.geoint-online.net/community/haitiearthquake/Geospatial%20Data%20Files/Forms/AllItems.aspx GeoInt-Online]): [https://www.geoint-online.net/community/haitiearthquake/Geospatial%20Data%20Files/haiti_departments01132010.zip Departments], [https://www.geoint-online.net/community/haitiearthquake/Geospatial%20Data%20Files/haiti_communes_01132010.zip Communes], [https://www.geoint-online.net/community/haitiearthquake/Geospatial%20Data%20Files/haiti_sections_01132010.zip Sections] |
| 150 | * '''Projection Issue''' Departments and Communes files are in [http://www.spatialreference.org/ref/epsg/32618/ EPSG:32618] |
| 151 | * WMS for display on Map (large Vectors will slow browsers to a crawl): http://haiti.opensgi.net/geoserver/ows?service=wms&version=1.1.1&request=GetCapabilities |
| 152 | * Preprocessing Addendum |
| 153 | * Shapefile to WKT (for calculations): {{{ogr2ogr -f CSV haiti_departments Haiti_departementes_edited_01132010.shp -lco GEOMETRY=AS_WKT}}} (OGR 1.6+) |
| 154 | * '''to reproject''' with ogr2ogr, add source and transformation SRSes: {{{-s_srs EPSG:32618 -t_srs EPSG:4326}}} |
| 155 | * Build a script to do this (very useful for future responses as this is a common process) |