Post on 13-Jan-2016
description
transcript
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
Using a Mix of Technologies to Collect and Present Geographic
Information on the Web (or desktop)
Aleda Freeman
MassGIS
(Office of Geographic and Environmental Information)
Executive Office of Energy and Environmental Affairs (EOEEA)
http://maps.massgis.state.ma.us/temp/NEARC_webservices_09.ppt
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
• Short history of online mapping at MassGIS
• Examples of requests to web map services + responses
• Gallery of the wide variety of applications (and technologies) using the services
3 Parts
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
• Created in 1988 as the GIS office for the Executive Office of Environmental Affairs (EOEA) and its constituent agencies
• 1999 Legislation (MGL chap 21 sec 4B) established the “Office of Geographic and Environmental Information” in EOEA. Its mission is very broad:
“Collect, consolidate store and provide geographic and environmental information in order to improve stewardship of natural resources and the environment, promote economic development and guide land-use planning, risk assessment, emergency response and pollution control.”
What Is MassGIS?
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
MassGIS Users
PUBLIC SECTOR• State agencies • Regional planning agencies • Cities and towns• Colleges and Universities• Federal agencies
PRIVATE SECTOR• Private non-profit organizations• GIS consulting firms• Engineering and surveying firms• Colleges and Universities• Utilities
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
History of Web Mapping Services at MassGIS
• Late 1990s: Use of ESRI ArcView Internet Map Server (discontinued)
• From late 1990s to today: Use of ESRI ArcIMS
• 1999: Mass.gov E-gov initiative spurs development of OGC WMS/WFS mapping service
• 2002: MassGIS offers OGC standard based WMS/WFS with custom software (MapAccess) (requests translated to ArcIMS XML) (discontinued)
• 2004: Installation of GeoServer (open source, reference implementation of OGC standards)
Oracle with ESRI SDE is the common data storage for all these map servers
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
Current Online Mapping
ESRI ArcIMS
GeoServer
mapservers
datastorage
types of applications
OpenLayers
MapBuilder
ESRIArcMap
iPhone
Flash
uDig
Gaia
Google maps
GoogleEarth
desktop browser
SDE with
Oracle
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
2 Main Types of OGC Requests
WMS – Web Map Service (GetMap)- Image of a map returned (PNG, TIFF, etc)- Can get a legend graphic
WFS – Web Feature Service (GetFeature)- Feature info returned (attributes and/or coordinates)
For WMS or WFS:- Can filter on attributes or geometry- Can get data back in > 3,000 projections
Requests can be URL or XMLMany output formats: JPG, PNG, GML, KML, SHP, PDF,
XLS, CSV
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
WMS URL Example
http://giswebservices.massgis.state.ma.us/geoserver/wms?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=massgis:GISDATA.TOWNS_POLYM,massgis:GISDATA.SCHOOLS_PT&STYLES=Black_Lines,&BBOX=232325.38526025353,898705.3447384972,238934.49648710093,903749.1401484597&SRS=EPSG:26986&WIDTH=570&HEIGHT=435&FORMAT=image/png
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
WMS Result
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
WFS URL Example
http://giswebservices.massgis.state.ma.us/geoserver/wfs?request=GetFeature&version=1.0.0&service=WFS&propertyname=TOWN,POP2000&typename=massgis:GISDATA.TOWNS_POLYM&CQL_FILTER=POP2000>100000
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
WFS Result (partial)
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
Clients to MassGIS OGC WMS/WFS
Clients using OGC WMS/WFS can connect to MassGIS’ GeoServer for maps and data
Clients include:• Simple URLs (in an image tag on a web page for example)• Viewers built w/ OpenLayers (JavaScript library) • Viewers built w/ MapBuilder (JavaScript library)• Viewers built w/ Java or JSP • ESRI ArcMap • Open Source GIS desktop clients (such as uDig, Gaia)• Google Earth• Google Maps• USGS The National Map • Clients I don’t know about
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
Agencies/Orgs with Apps Using MassGIS web map services
• Programmers doing their own work: DEP, DCR, DOE, DFG, MassHistoric, Town of Amherst, Merrimack Valley Planning Commission, USGS
• Orgs getting benefit of MassGIS-created applications
Community Preservation Coalition, State Police, CZM, Massachusetts Broadband Initiative
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
Client – ArcMap
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
Client – ArcCatalog/ArcMap
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
Client – DCR Forestry Viewer (OpenLayers)http://maps.massgis.state.ma.us/dcr/forestry/forestry23.html
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
Client – DCR Forestry Viewer (OpenLayers)
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
Client – State Aid Viewer (Google maps)http://drwren.com/true/stateaid.html
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
WMS URL Example
http://giswebservices.massgis.state.ma.us/geoserver/wms?&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&SLD=http://drwren.com/true/data/0209percent.xml&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:3395&BBOX=-905423.213366068,5215286.832320966,-7827151.696402048,5293275.489246919&WIDTH=256&HEIGHT=256
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
Online SLD Snippt
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
Client – The National Map (ESRI HTML viewer)http://nmviewogc.cr.usgs.gov
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
Client – GOS Gadget (Windows Vista or 7)
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
Client – MBI Survey (Google Maps geocoding)Massachusetts Broadband Institute Survey
http://www.massbroadband.org/mapping/survey.html
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
Client – MBI Survey (Google Maps + WMS)Massachusetts Broadband Institute Survey
http://maps.massgis.state.ma.us/broadband/broadband_survey_results.htm
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
Client – Welldrillers (MapBuilder)
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
Client – CZM MORIS (Java Web Start)http://www.mass.gov/czm/mapping
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
ITD XML Gateway
Some agencies (DEP, EOHHS) not allowed to contact MassGIS web services server directly – requests must go through ITD XML Gateway and be validated by schemas
Available through the gateway:•WMS•WFS•Geocoding requests to ArcIMS (AXL, not OGC)
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
ArcIMS statistics
• 80 mapservices (composed maps)• 5,700 requests/day• 1,000 geocodes/day• 40 viewers use maps or geocoding
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
GeoServer statistics
• 851 layers• 1,266 SLD named styles• >22,000 requests/day• images served from cache 23% of
the time
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
Recent New Events
• Upgraded GeoServer (from 1.6.5 to 1.7.6)- 100+ new rasters- XLS, CSV outputs- curved labels
- faster - many other improvements/bug fixes
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
Planned Improvements
• Currently profiling GeoServer vs. SDE to see where improvements in data access can be made
• Plan upgrade to GeoServer version 2.0
• Continue to document ways of accessing the web mapping services on lyceum site.
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH
MassGIS Webservices Infohttp://lyceum.massgis.state.ma.us
Working examples of requests and responses with MassGIS dataSubscribe via RSS for updates
http://www.mass.gov/mgis/mapping.htmLinks to many online mapping applications
http://groups.google.com/group/massgis_webservicesPublic Google group for users (56) of the services
http://spatialreference.orgLook up EPSG code values for projections
http://maps.massgis.state.ma.us/temp/NEARC_webservices_09.pptThis Powerpoint
NEARC 2009 - Nashua, NH NEARC 2009 - Nashua, NH