Interactive interface for browsing global, full-resolution satellite imagery
Documentation updates
Mike McGann437017cec480
diff --git a/.gitignore b/.gitignoreindex e87bf394a..d3a99676a 100644--- a/.gitignore+++ b/.gitignore@@ -3,6 +3,7 @@ distlibdoc/NaturalDocs/Datadoc/NaturalDocs/LastCrash.txt+doc/NaturalDocs/Menu_Backup.txt# Ignore the Eclipse files for now.projectdiff --git a/build.xml b/build.xmlindex 0553863e7..27ad5eca8 100644--- a/build.xml+++ b/build.xml@@ -24,6 +24,7 @@<target name="clean" description="Removes the build and dist directories"><delete dir="${build.dir}"/><delete dir="${dist.dir}"/>+ <delete dir="doc/NaturalDocs/Data"/></target><target name="distclean" depends="clean"diff --git a/doc/NaturalDocs/Menu.txt b/doc/NaturalDocs/Menu.txtindex 59aa71927..cd4586987 100644--- a/doc/NaturalDocs/Menu.txt+++ b/doc/NaturalDocs/Menu.txt@@ -55,21 +55,14 @@ Group: Development Notes {Group: Code Reference {File: Logging (/Users/jmcgann/Code/Aptana/worldview/js/Logging.js)- File: OpenLayers.Tile.Canvas (/Users/jmcgann/Code/Aptana/worldview/js/OpenLayers/Tile/Canvas.js)File: SOTE.util (/Users/jmcgann/Code/Aptana/worldview/js/util.js)+ File: TestSuite (/Users/jmcgann/Code/Aptana/worldview/test/lib/TestSuite.js)File: Worldview (/Users/jmcgann/Code/Aptana/worldview/js/Worldview.js)Group: Worldview {- File: OpenLayers (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/OpenLayers.js)- File: Visual (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Visual.js)-- Group: OpenLayers {-- File: DailyProduct (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/OpenLayers/DailyProduct.js)- File: ProductMap (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/OpenLayers/ProductMap.js)- File: StaticProduct (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/OpenLayers/StaticProduct.js)- } # Group: OpenLayers+ File: Map (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Map.js)+ File: Palette (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Palette.js)Group: JSON {@@ -83,24 +76,35 @@ Group: Code Reference {} # Group: JSON- Group: Visual {+ Group: Map {++ File: CanvasTile (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Map/CanvasTile.js)+ File: DailyProduct (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Map/DailyProduct.js)+ File: Product (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Map/Product.js)+ File: ProductMap (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Map/ProductMap.js)+ File: StaticProduct (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Map/StaticProduct.js)+ } # Group: Map++ Group: Palette {- File: ColorBar (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Visual/ColorBar.js)- File: ColorHSL (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Visual/ColorHSL.js)- File: ColorRGBA (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Visual/ColorRGBA.js)- File: Lookup (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Visual/Lookup.js)- File: Palette (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Visual/Palette.js)- File: PaletteSelector (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Visual/PaletteSelector.js)- File: StopRGBA (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Visual/StopRGBA.js)- } # Group: Visual+ File: ColorBar (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Palette/ColorBar.js)+ File: ColorHSL (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Palette/ColorHSL.js)+ File: ColorRGBA (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Palette/ColorRGBA.js)+ File: Lookup (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Palette/Lookup.js)+ File: Palette (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Palette/Palette.js)+ File: PaletteSelector (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Palette/PaletteSelector.js)+ File: StopRGBA (/Users/jmcgann/Code/Aptana/worldview/js/Worldview/Palette/StopRGBA.js)+ } # Group: Palette} # Group: Worldview- } # Group: Code Reference+ Group: TestSuite {++ File: Patcher (no auto-title, /Users/jmcgann/Code/Aptana/worldview/test/lib/TestSuite/Patcher.js)+ File: TestCases (no auto-title, /Users/jmcgann/Code/Aptana/worldview/test/lib/TestSuite/TestCases.js)+ } # Group: TestSuite-File: TestSuite (/Users/jmcgann/Code/Aptana/worldview/test/lib/TestSuite.js)-File: TestSuite.Patcher (/Users/jmcgann/Code/Aptana/worldview/test/lib/TestSuite/Patcher.js)-File: TestSuite.TestCases (/Users/jmcgann/Code/Aptana/worldview/test/lib/TestSuite/TestCases.js)+ } # Group: Code ReferenceGroup: Index {diff --git a/doc/Topics/Worldview/JSON/MapConfig/Product.txt b/doc/Topics/Worldview/JSON/MapConfig/Product.txtindex 4f4cd3f6b..4c34ec073 100644--- a/doc/Topics/Worldview/JSON/MapConfig/Product.txt+++ b/doc/Topics/Worldview/JSON/MapConfig/Product.txt@@ -1,28 +1,33 @@Class: Worldview.JSON.MapConfig.ProductDefines a product available within Worldview.-Any property used to create an OpenLayers.Layer object can be provided in this-object. Properties specific for a certain projection can be placed in the-<projections> property and these will be copied over and overrides any-property defined in the general section.+For WMTS layers, all values in the <properties> section are passed directly to+the OpenLayers layer when created. For WMS layers, all values in the+<parameters> and <properties> section are passed to the OpenLayers layer when+created. The <properties> are passed in to the constructor as the options+value. Configurations that a specific to a projection can be placed in the+<projections> section and are copied into the corresponding <properties>+section.-The properties listed below are the required properties.+The properties listed those that are specific to Worldview.-Example:+WMTS Example:(begin code)"MODIS_Terra_CorrectedReflectance_TrueColor": {- "layer": "MODIS_Terra_CorrectedReflectance_TrueColor",- "productClass": "Worldview.Map.DailyProduct",- "layerClass": "OpenLayers.Layer.WMTS",-"name": "Corrected Reflectance (True Color)","description": "Terra / MODIS",-- "defaultLayer": "true",- "start_date": "2012-04-07",- "format": "image/jpeg",- "tileSize": [ 512, 512 ],-++ "product": "daily",+ "type": "wmts",+ "startDate": "2012-04-07",++ "properties": {+ "layer": "MODIS_Terra_CorrectedReflectance_TrueColor",+ "defaultLayer": "true",+ "format": "image/jpeg",+ "tileSize": [ 512, 512 ]+ },+"projections": {"geographic": {"url": [@@ -32,7 +37,10 @@ Example:],"maxExtent": [-180, -90, 180, 90],"matrixSet": "EPSG4326_250m",- "maxResolution": 0.5625+ "maxResolution": 0.5625,+ "serverResolutions": [0.5625, 0.28125, 0.140625, 0.0703125,+ 0.03515625, 0.017578125, 0.0087890625,+ 0.00439453125, 0.002197265625]},"arctic": {"url": [@@ -42,7 +50,9 @@ Example:],"maxExtent": [-4194304, -4194304, 4194304, 4194304],"matrixSet": "EPSG3995_250m",- "maxResolution": 8192.0+ "maxResolution": 8192.0,+ "serverResolutions": [8192.0, 4096.0, 2048.0, 1024.0,+ 512.0, 256.0]},"antarctic": {"url": [@@ -52,21 +62,44 @@ Example:],"maxExtent": [-4194304, -4194304, 4194304, 4194304],"matrixSet": "EPSG3031_250m",- "maxResolution": 8192.0+ "maxResolution": 8192.0,+ "serverResolutions": [8192.0, 4096.0, 2048.0, 1024.0,+ 512.0, 256.0]}}}(end code)-Property: layer-Identifier used to reference the layer from the remote map service.--Property: productClass-The Product object to create to manage the layers for this product. Either-<Worldview.Map.DailyProduct> or <Worldview.Map.StaticProduct>.--Property: layerClass-The OpenLayers.Layer class used to create layers for this product as needed.+WMS Example:+(begin code)+"MODIS_Fires_All": {+ "name": "Fires (Day and Night)",+ "description": "Terra/ and Aqua/MODIS Fire and Thermal Anomalies",++ "product": "daily",+ "type": "wms",+ "startDate": "2012-04-07",++ "url": [+ "http://map2a.vis.earthdata.nasa.gov/wms/wms.php",+ "http://map2b.vis.earthdata.nasa.gov/wms/wms.php",+ "http://map2c.vis.earthdata.nasa.gov/wms/wms.php"+ ],++ "parameters": {+ "layers": "MODIS_Fires_All",+ "format": "image/png"+ },++ "properties": {+ "tileSize": [ 512, 512 ]+ },++ "projections": {+ "geographic": {}+ }+}+(end code)Property: nameDescriptive name of this product, displayed to the end user in Worldview.@@ -75,39 +108,32 @@ Property: descriptionAdditional information about this product, displayed to the end user inWorldview.-Property: defaultLayer-Set to "true" if this layer should be selected when the application starts.+Property: product+The type of the product, either "daily" for data that is generated every+day or "static" for data that is generated only once.++Property: type+Either "wms", "wmts", or "graticle"-Property: start_date+Property: startDateFirst date that data is available for this product as a string in YYYY-DD-MMformat.-Property: format-MIME type of the image to be returned from the map server (e.g., image/jpeg,-image/png)--Property: tileSize-Array of width and height of the tile, in pixels, to request from the-map server.--Property: url-Either a string or an array of strings containing URLs to the map service-endpoint.--Property: maxExtent-Array containing the minimum longitude, minimum latitude, maximum longitude,-and maximum latitude for all data available for this product. Must be-specified using projected units.--Property: matrixSet-The matrix set to request from the remote server.+Property: parameters+Values passed directly to the OpenLayers layer object. This is only used+for WMS layers and is passed to the constructor as the params parameter.-Property: maxResolution-The maximum resolution available for this product.+Property: properties+Values passed directly to the OpenLayers layer object. For WMS layers,+this is the options argument to the constructor. For WMTS layers, this is the+config argument to the constructor.Property: projectionsAn object containing any of the listed properties above that are specific-to a certain projection. The object should be keyed by the projection name.+to a certain projection. The object should be keyed by the projection name.+These values will be copied into the properties section. There should be an+entry for each projection this layer supports--if no specific properties are+necessary, an empty object should be specified.Example:(begin code)diff --git a/doc/Topics/Worldview/JSON/MapConfig/Projection.txt b/doc/Topics/Worldview/JSON/MapConfig/Projection.txtindex 2191a3b65..745aef219 100644--- a/doc/Topics/Worldview/JSON/MapConfig/Projection.txt+++ b/doc/Topics/Worldview/JSON/MapConfig/Projection.txt@@ -2,7 +2,7 @@ Class: Worldview.JSON.MapConfig.ProjectionDefines a map projection to be available within Worldview.Any property used to create an OpenLayers.Map object can be provided in this-object. The properties listed below are the required properties.+object. The properties listed below are properties specific to Worldview.Example:(begin code)@@ -15,26 +15,21 @@ Example:0.5625, 0.28125, 0.140625,0.0703125, 0.03515625, 0.017578125,0.0087890625, 0.00439453125, 0.002197265625- ]+ ],+ "startCenter": [0, 0],+ "startZoom": 1}(end code)-Property: projection-Projection in the form of "EPSG:x" where x is the corresponding EPSG code-for this projection.-Property: name-The name of this projection used in Worldview to reference this projection+The name of this projection used in Worldview to reference this projection.(i.e. "geographic", "arctic", "antarctic").-Property: maxExtent-An array containing the minimum longitude, minimum latitude, maximum-longitude, and the maximum latitude for this projection.+Property: startCenter+Starting map position for this projection. Array containing the latitude and+longitude values in the units of the projection.-Property: numZoomLevels-Number of zoom levels appropriate for all data products.+Property: startZoom+Starting zoom level for this projection.-Property: resolutions-Array of map resolutions as map units per pixel in decending order. There-should be as many resolution entries as there are <numZoomLevels>diff --git a/js/Worldview/Map/DailyProduct.js b/js/Worldview/Map/DailyProduct.jsindex 6adbcad52..50c402ca7 100644--- a/js/Worldview/Map/DailyProduct.js+++ b/js/Worldview/Map/DailyProduct.js@@ -22,15 +22,16 @@ Worldview.namespace("Map");* layers are invalidated and eligbile for removal the next time the map* needs to be redrawn.*+ * Inherits from:+ * <Worldview.Map.Product>+ ** Constructor: DailyProduct* Creates a new instance.** Parameters:* map - The map object that layers will be added and removed from.- * config - Options passed to the OpenLayers.Layer constructor to create- * each layer. This object must also have one other property:- * layerClass which defines the type of layer to create (e.g.,- * OpenLayers.Layer.WMTS)+ * config - Configuration for this layer as a <Worldview.JSON.MapConfig.Product>+ * object.*/Worldview.Map.DailyProduct = function(map, config) {diff --git a/js/Worldview/Map/Product.js b/js/Worldview/Map/Product.jsindex 29165eeb2..803264b49 100644--- a/js/Worldview/Map/Product.js+++ b/js/Worldview/Map/Product.js@@ -11,11 +11,25 @@Worldview.namespace("Map");+/**+ * Class: Worldview.Map.Product+ * Provides common methods for all products.+ *+ * Constructor: Worldview.Map.Product+ * Creates a new instance.+ *+ * Parameters:+ * c - Configuration for this layer as a <Worldview.JSON.MapConfig.Product>+ * object.+ */Worldview.Map.Product = function(c) {var self = {};var config;+ /**+ * True if this product should be displayed on top of all other products.+ */self.bringToFront = false;var init = function() {@@ -35,6 +49,9 @@ Worldview.Map.Product = function(c) {}};+ /**+ * Creates a new layer based on the configuration provided.+ */self.createLayer = function() {if ( config.type === "wms" ) {return new OpenLayers.Layer.WMS(config.name, config.url,diff --git a/js/Worldview/Map/StaticProduct.js b/js/Worldview/Map/StaticProduct.jsindex be876754a..a8b327fda 100644--- a/js/Worldview/Map/StaticProduct.js+++ b/js/Worldview/Map/StaticProduct.js@@ -15,15 +15,16 @@ Worldview.namespace("Map");* Class: Worldview.Map.StaticProduct* Product that is not based on the current date or time.*+ * Inherits from:+ * <Worldview.Map.Product>+ ** Constructor: StaticProduct* Creates a new instance.** Parameters:* map - The map object that layers will be added and removed from.- * config - Options passed to the OpenLayers.Layer constructor to create- * each layer. This object must also have one other property:- * layerClass which defines the type of layer to create (e.g.,- * OpenLayers.Layer.WMTS)+ * config - Configuration for this layer as a <Worldview.JSON.MapConfig.Product>+ * object.*/Worldview.Map.StaticProduct = function(map, config) {