Changes between Version 25 and Version 26 of HaitiGISToDo
- Timestamp:
- 01/18/10 03:05:42 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HaitiGISToDo
v25 v26 3 3 == Haiti GIS == 4 4 5 bitner d & flavour coordinating5 bitner, flavour & tcarobruce coordinating in #sahanagis 6 6 7 === Map-based Lat/Lon Data entry === 7 8 * Provide a function to allow selecting a location on a map to populate Lat/Lon fields 8 9 10 === Admin UI === 9 11 * Provide admin UI for feature_to_feature_group, feature_class_to_feature_group, etc 10 12 * {{{controllers/gis.py}}} & {{{views/gis/...}}} … … 16 18 * We want nice User interface for these & menus (menus for GIS need some wider cleanup work anyway) 17 19 20 === Feeds === 18 21 * Provide UI to access feeds: 19 22 * KML feeds: … … 21 24 * http://haiti.sahanafoundation.org/prod/gis/location.kml?feature_class=Hospital 22 25 * http://haiti.sahanafoundation.org/prod/or/organisation/4/office.kml 26 * Provide an easy way to select the Org by name 23 27 * http://haiti.sahanafoundation.org/prod/or/office.kml 24 28 * GeoRSS feeds: … … 45 49 * bounds information - e.g. lat/long min/max to go in the metadata. this improves display of GPX when opened in the like of GE and other apps. not required, but does improve display 46 50 51 * Import 52 * GPX 53 * Bulk Uploader needs finishing 54 * GeoRSS 55 * KML 56 57 === UI === 47 58 * Separate out the Internal Features from External Features in !LayerSwitcher ([http://geoext.org/tutorials/layertree-tutorial.html#filtering GeoExt] skills) 48 59 * {{{views/gis/map_viewing_client.html}}} +68 49 60 50 * Popups for KML/GeoRSS overlays (works in Chrome & IE8, but not FF)51 * {{{views/gis/ol_layers_georss.js}}}52 * {{{views/gis/ol_layers_kml.js}}}53 * {{{views/gis/ol_controls_features.js}}}54 * {{{views/gis/ol_layers_feature.js}}}55 * {{{views/gis/ol_layers_features.js}}}56 * {{{views/gis/ol_layers_features_all.js}}}57 * {{{views/gis/toolbar.js}}}58 {{{59 <crschmidt> so two selectfeature controls don't work60 <crschmidt> they work in safari because safari fails at SVG61 <crschmidt> so you need to fix your code62 <crschmidt> specifically, what you should do is:63 <crschmidt> 1. Change from "OnFeatureSelect" on the control to registereing for the "Featureselected" Event on the layer64 <crschmidt> (The API is a bit different; featureselected event functions get an 'evt' object that has a .feature property you can access)65 <crschmidt> 2. Create a single SelectFeature control with multiple layers: new OpenLayers.Control.SelectFeature([layer1, layer2]);66 <flavour> We already do 2. within KML/GeoRSS/Internal Features, so what we need is a single one for all 3 types: good copy67 <flavour> I'd seen 1. in some examples68 <crschmidt> yeah69 <crschmidt> it's the more recent style70 <crschmidt> the 'onfeatureselect' stuff is old and busted because it wasn't well thought out71 <crschmidt> http://hypercube.telascience.org/haiti/uav.html72 <crschmidt> there's a reasonably concise example there73 <crschmidt> as well as http://docs.openlayers.org/library/overlays.html#interaction74 }}}75 76 61 * [http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Layer/XYZ-js.html XYZ Layers] 62 * Generated JS seems OK, but layers aren't visible 77 63 78 64 * Unzip KMZ layers 79 65 80 * WMS Caps Browser 66 * WMS Capabilities Browser 67 * http://dev.geoext.org/trunk/geoext/examples/wms-capabilities.html 81 68 82 69 * Image layers 83 84 * KML Import85 * GeoRSS Import86 70 87 71 === Load GIS data === … … 92 76 * [https://www.geoint-online.net/community/haitiearthquake/Geospatial%20Data%20Files/haiti_sections_01132010.zip Sections] 93 77 * Shapefile to WKT (for calculations): {{{ogr2ogr -f CSV haiti_departments Haiti_departementes_edited_01132010.shp -lco GEOMETRY=AS_WKT}}} (OGR 1.6+) 78 * Build a script to do this (very useful for future responses as this is a common process) 79 * can run the script from a Controller so that you can access Models 80 * provide UI afterwards 94 81 * 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 95 82 * Populations