PageRenderTime 53ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/oliver.php

http://morisoliver.googlecode.com/
PHP | 173 lines | 146 code | 18 blank | 9 comment | 2 complexity | 711c813263d28f1f0f1a7bae9c95bf2c MD5 | raw file
  1. <?php
  2. if ( $_SERVER['HTTPS'] )
  3. {
  4. $host = $_SERVER['HTTP_HOST'];
  5. $request_uri = $_SERVER['REQUEST_URI'];
  6. $good_url = "http://" . $host . $request_uri;
  7. header( "Location: $good_url" );
  8. exit;
  9. }
  10. ?>
  11. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  12. <html>
  13. <head>
  14. <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7;">
  15. <!--
  16. (c) 2010 Third Sector New England, Inc. on behalf of the Massachusetts Ocean Partnership.
  17. This code was developed by Applied Science Associates, Inc. and Charlton Galvarino
  18. License: This program is free software; you can redistribute it and/or modify it under
  19. the terms of the GNU General Public License as published by the Free Software Foundation;
  20. either version 3 of the License, or (at your option) any later version. This program is
  21. distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
  22. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  23. Public License for more details. In addition to the terms of the GNU General Public License,
  24. licensee agrees to be subject to this Additional Term: Licensee shall notify and provide
  25. Third Sector New England and the Massachusetts Ocean Partnership via email to info@tsne.org
  26. and info@massoceanpoartnership.org, with a copy of all "modified versions" of the earlier
  27. work that is subject this license or a work "based on" the earlier work that is subject to
  28. this license.
  29. -->
  30. <script>
  31. //
  32. // DO NOT MODIFY THE FOLLOWING VARIABLES
  33. var mkzipCGI = false;
  34. var mkzipLoc = false;
  35. var bingDisabled = true;
  36. var bingKey;
  37. var xmlCacheLoc;
  38. var siteTitle;
  39. var siteUrl;
  40. //
  41. // site-specific variables which may be modified but MUST be set
  42. var foldersetLoc = '/temp/oliver_folderset.xml';
  43. var moreInfoHTML = '<table border="0" width=100% cellpadding=0 cellspacing=10><tr><td align=left><a target="_blank" href="http://www.mass.gov/czm"><img border=none src="img/czm_sda2.png" alt="CZM Logo"></a></td><td align="center" <img border=none src="img/oliver_logo_lcase.jpg" alt="OLIVER logo"></td><td align="right"><a target="_blank" href="http://www.mass.gov/mgis"><img border=none src="img/massgis.png" alt="MassGIS Logo"></a></td></tr><tr><td colspan=3 class="dirText"><p style="text-align:justify"><a target="_blank" href="http://www.mass.gov/czm/mapping">The Massachusetts OnLIne ViewER (OLIVER)</a> is an online mapping tool created by the <a target="_blank" href="http://www.mass.gov/czm">Massachusetts Office of Coastal Zone Management (CZM)</a>, the <a target="_blank" href="http://www.mass.gov/mgis">Office of Geographic Information (MassGIS)</a>, <a target="_blank" href="http://www.seaplan.org">SeaPlan (formerly the Massachusetts Ocean Partnership)</a> and <a target="_blank" href="http://www.asascience.com">Applied Science Associates (ASA)</a>, <a href="http://2creek.com" target="_blank">Charlton Galvarino</a>, and <a href="http://peoplegis.com/" target="_blank">PeopleGIS</a>. OLIVER can be used to search, display, and share spatial data pertaining to Massachusetts. Users can quickly create and share maps and download data for use in a Geographic Information System (GIS). In 2011, the OLIVER system was upgraded to a new web-based thin client using <a target="_blank" href="http://www.geoext.org">GeoExt</a> and <a target="_blank" href="http://www.openlayers.org">OpenLayers<a>. It continues to use <a target="_blank" href="http://www.geoserver.org">GeoServer</a>-based <a target="_blank" href="http://lyceum.massgis.state.ma.us">MassGIS web mapping services</a>. The project was graciously funded by SeaPlan.<br/><br/>OLIVER was developed using open source technology - the OLIVER codebase is free for use and modification under the GNU General Public License. More information about the open source nature of OLIVER can be found at the <a target="_blank" href="https://wiki.state.ma.us/confluence/display/massgis/OLIVER+and+customizations">OLIVER Developer web site</a>.<br><br>The mission of CZM is to balance the impacts of human activity with the protection of coastal and marine resources. As a networked program, CZM was specifically established to work with other state agencies, federal agencies, local governments, academic institutions, nonprofit groups, and the general public to promote sound management of the Massachusetts coast. CZM is funded primarily through the <a target="_blank" href="http://www.mass.gov">Commonwealth of Massachusetts</a>, the <a target="_blank" href="http://www.noaa.gov">National Oceanic and Atmospheric Administration (NOAA)</a> and the <a target="_blank" href="http://www.epa.gov">U.S. Environmental Protection Agency (EPA)</a>.<br/><br/><a target="_blank" href="http://www.mass.gov/mgis">MassGIS</a> is the Office of Geographic Information, within the <a target="_blank" href="http://www.mass.gov/itd">Information Technology Division (ITD)</a>.</a> Through MassGIS, the Commonwealth has created a comprehensive, statewide database of geospatial information. The state legislature has established MassGIS as the official state agency assigned to the collection, storage and dissemination of geographic data. In addition, the <a target="_blank" href="http://www.mass.gov/mgis/mandate.htm">legislative mandate</a> includes coordinating GIS activity within the Commonwealth and setting standards for geographic data to ensure universal compatibility.<br/><br/><a target="_blank" href="http://www.seaplan.org">SeaPlan</a> aims to advance science-based and stakeholder informed ocean management by enhancing knowledge, relationships and management tools through effective practice of ecosystem-based coastal and marine spatial planning (CMSP) and the dissemination of its products. The application is one example of the initiative of SeaPlan to advance an integrated data network to improve the accessibility and interoperability of coastal and marine data for ocean management and other marine related uses.<br/><br/>Please contact <a href="mailto:Paul.Nutting@state.ma.us">Paul.Nutting@state.ma.us</a> with questions or comments. Last Updated November 30, 2011</p></td></tr><tr><td align=left><a target="_blank" href="http://www.seaplan.org"><img border=none src="img/mop.png" alt="SeaPlan Logo"></a></td><td align=center><a target="_blank" href="http://www.asascience.com" <img border=none src="img/asa.png" alt="ASA Logo"></a></td></tr></table>';
  44. var helpUrl1 = 'moris_users_documentation.htm';
  45. var helpUrl2 = 'moris_users_documentation.pdf';
  46. var moreInfoWidth = 850;
  47. var availableBase = [
  48. 'custom'
  49. ,'googleSatellite'
  50. ,'googleTerrain'
  51. ,'googleRoadmap'
  52. ,'googleHybrid'
  53. ,'openStreetMap'
  54. ,'bingRoads'
  55. ,'bingAerial'
  56. ,'bingHybrid'
  57. ,'CloudMade'
  58. ,'Basemaps_Orthos_DigitalGlobe2011_2012'
  59. ,'MassGIS_Basemap'
  60. ];
  61. var defaultBase = 'MassGIS_Basemap';
  62. var defaultBaseOpacity = 1;
  63. var defaultCoordUnit = 'm'; // can be one of 'dms','dd','m'
  64. var defaultMeasureUnit = 'm'; // can be one of 'm','mi','nm','yd','ft'
  65. var defaultLyrs = [
  66. {wms : 'Basemaps_Structures' ,title : 'Structures'}
  67. ,{wms : 'Basemaps_L3Parcels' ,title : 'Tax Parcels'}
  68. ,{wms : 'Basemaps_MassGISBasemapWithLabels2' ,title : 'Detailed Features'}
  69. ,{wms : 'massgis:GISDATA.L3_TAXPAR_POLY_ASSESS' ,title : 'Tax Parcels for Query'}
  70. ];
  71. var defaultBbox = [-73.72946,41.15860,-69.64804,42.93893];
  72. var maxBbox = [-73.72946,41.15860,-69.64804,42.93893];
  73. var wfsUrl = 'http://giswebservices.massgis.state.ma.us/geoserver/wfs';
  74. var wmsUrl = 'http://giswebservices.massgis.state.ma.us/geoserver/wms';
  75. var wcsUrl = 'http://giswebservices.massgis.state.ma.us/geoserver/wcs';
  76. var kmlUrl = 'http://giswebservices.massgis.state.ma.us/geoserver/wms/kml';
  77. var namespaceUrl = 'http://massgis.state.ma.us/featuretype';
  78. var featurePrefix = 'massgis';
  79. var bannerHTML = '<table style="font-family:Arial"><tr><td><img src="img/oliver_small.png" alt="small OLIVER icon"/></td><td>&nbsp;&nbsp;</td><td>OLIVER: MassGIS\'s Online Mapping Tool</td><td>&nbsp;&nbsp;<font color="red">2/20/2014: Address search: Use red pin temporarily</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a target="_blank" href="https://wiki.state.ma.us/confluence/display/massgis/Updates+for+Web+Mapping+Services#UpdatesforWebMappingServices-OLIVER_Updates">OLIVER Updates</a></td></td></tr>';
  80. var bannerHeight = 30;
  81. var externalGetCaps = {
  82. // 'http://egisws02.nos.noaa.gov/ArcGIS/services/MPA/MPA_Inventory/MapServer/WMSServer' : {
  83. // name : 'NOAA : Marine Protected Areas'
  84. // ,getcaps : 'noaa_marine_protected_areas_getcaps.xml'
  85. // ,proj : {'EPSG:900913' : 'EPSG:3857'}
  86. // },
  87. 'http://mhc-macris.net:8080/geoserver/wms' : {
  88. name : 'MHC Historic Inventory'
  89. ,getcaps : 'mhc_getcaps.xml'
  90. ,proj : {'EPSG:900913' : 'EPSG:3857'}
  91. },
  92. 'http://egisws02.nos.noaa.gov/ArcGIS/services/RNC/NOAA_RNC/MapServer/WMSServer' : {
  93. name : 'NOAA Charts (RNC)'
  94. ,getcaps : 'noaa_charts_wms_getcaps.xml'
  95. ,proj : {'EPSG:900913' : 'EPSG:3857'}
  96. }
  97. };
  98. </script>
  99. <!-- pick one of the following blocks & make sure it's not commented out -->
  100. <!-- maps.massgis.state.ma.us -->
  101. <script>
  102. proxyLoc = '/cgi-bin/proxy.cgi?url=';
  103. //proxyLocBing = 'http://maps.massgis.state.ma.us/cgi-bin/get?';
  104. proxyLocBing = proxyLoc;
  105. mkzipCGI = '/cgi-bin/mkzip';
  106. mkzipLoc = 'http://maps.massgis.state.ma.us';
  107. bingDisabled = false;
  108. <!-- test new Bing key created 5/23/2013 to track usage -->
  109. bingKey = 'AoSoMDQG3JYNMtfp-sviYC413l6OxvGzZHq4KX7zP6qJk8R-yQPTT_pfMelyo7Ur';
  110. xmlCacheLoc = '/temp/OL_MORIS_cache/'; // don't forget to change the src path to getCapsBbox.js down below to /temp/OL_MORIS_cache/getCapsBbox.js
  111. siteTitle = 'OLIVER';
  112. siteUrl = 'http://maps.massgis.state.ma.us/map_ol/oliver.php';
  113. </script>
  114. <!-- include a set of tool configs -->
  115. <script type="text/javascript" src="js/toolConfig_oliver.js?<?php echo time(); ?>"></script>
  116. <script>
  117. document.title = siteTitle;
  118. </script>
  119. <script src="http://maps.google.com/maps/api/js?sensor=false"></script>
  120. <link rel="stylesheet" type="text/css" href="css/morisoliver.css?<?php echo time(); ?>" />
  121. <link rel="stylesheet" type="text/css" href="http://maps.massgis.state.ma.us/ext-3.4.0/resources/css/ext-all.css" />
  122. <link rel="stylesheet" type="text/css" href="css/ext-ux-wiz.css" />
  123. <!-- editing tools -->
  124. <link rel="stylesheet" type="text/css" href="css/statusbar.css" />
  125. <script type="text/javascript" src="http://maps.massgis.state.ma.us/ext-3.4.0/adapter/ext/ext-base.js"></script>
  126. <script type="text/javascript" src="http://maps.massgis.state.ma.us/ext-3.4.0/ext-all.js"></script>
  127. <!-- editing tools -->
  128. <script type="text/javascript" src="js/plugins/editing/StatusBar.js"></script>
  129. <script type="text/javascript" src="js/plugins/Ext.ux.FieldLabeler.js"></script>
  130. <script type="text/javascript" src="js/Geoserver_ScriptTagProxy.js?<?php echo time(); ?>"></script>
  131. <script type="text/javascript" src="js/wizard/CardLayout.js"></script>
  132. <script type="text/javascript" src="js/wizard/Wizard.js"></script>
  133. <script type="text/javascript" src="js/wizard/Header.js"></script>
  134. <script type="text/javascript" src="js/wizard/Card.js"></script>
  135. <script type="text/javascript" src="http://yui.yahooapis.com/3.1.2/build/yui/yui-min.js"></script>
  136. <script type="text/javascript" src="js/miframe/build/miframe-debug.js"></script>
  137. <script type="text/javascript" src="js/XmlTreeLoader.js"></script>
  138. <link rel="stylesheet" type="text/css" href="css/ogcsearch.css?20100805a">
  139. <script src="http://maps.massgis.state.ma.us/proj4js/proj4js-compressed.js"></script>
  140. <script type="text/javascript" src="js/OpenLayers-2.12-rc7-ie10-fix.js"></script>
  141. <script type="text/javascript" src="js/cloudmade.js"></script>
  142. <script type="text/javascript" src="js/util.js?<?php echo time()?>"></script>
  143. <script type="text/javascript" src="js/GeoExt.js"></script>
  144. <!-- editing tools -->
  145. <script type="js/plugins/editing/StatusBar.js"></script>
  146. <script type="text/javascript" src="js/plugins/editing/widgets/WFSTFeatureEditingStatusBar.js"></script>
  147. <script type="text/javascript" src="js/plugins/editing/widgets/WFSTFeatureEditingManager.js"></script>
  148. <script type="text/javascript" src="js/plugins/editing/widgets/grid/FeatureGrid.js"></script>
  149. <script type="text/javascript" src="js/plugins/editing/FeatureEditorGrid.js"></script>
  150. <script type="text/javascript" src="js/plugins/editing/UserFilter.js"></script>
  151. <script type="text/javascript" src="/temp/OL_MORIS_cache/getCapsBbox.js?<?php echo time()?>"></script>
  152. <script type="text/javascript" src="js/map.js?<?php echo time()?>"></script>
  153. </head>
  154. </html>