internet mapping william shuart center for environmental studies virginia commonwealth university

30
Internet Mapping Internet Mapping William Shuart William Shuart Center for Environmental Center for Environmental Studies Studies Virginia Commonwealth Virginia Commonwealth University University

Upload: martin-barker

Post on 02-Jan-2016

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

Internet Mapping Internet Mapping

William ShuartWilliam Shuart

Center for Environmental StudiesCenter for Environmental Studies

Virginia Commonwealth UniversityVirginia Commonwealth University

Page 2: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

Internet MappingInternet Mapping

• Make maps for the massesMake maps for the masses

• Geoprocessing on the InternetGeoprocessing on the Internet

• Intranet enterprise GISIntranet enterprise GIS

Page 3: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

Internet MappingInternet Mapping

• Maps for the massesMaps for the masses– Non GIS usersNon GIS users– Environmental, historical, scientific, Environmental, historical, scientific,

community datacommunity data– Recreational mappingRecreational mapping– Level playing fieldLevel playing field– Publisher discretionPublisher discretion– Increased speed = increased informationIncreased speed = increased information– Get results through maps *****Get results through maps *****

Page 4: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

Internet Enabled GeoprocessingInternet Enabled Geoprocessing

• GIS UsersGIS Users

• Spatial data for analysisSpatial data for analysis

• Publish and download spatial dataPublish and download spatial data

• True client/server connectivity (data and True client/server connectivity (data and services)services)

Page 5: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

Internet mappingInternet mapping

• Static MapsStatic Maps– Publish images of pre-generated mapsPublish images of pre-generated maps

• JPEG, GIF, PNG, etc.JPEG, GIF, PNG, etc.

• Dynamic MapsDynamic Maps– Custom maps generated and Custom maps generated and Spatial AnalysisSpatial Analysis

performed on demand performed on demand

Page 6: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

Dynamic MapsDynamic Maps

• High performance Map serverHigh performance Map server– Map rendererMap renderer– Spatial AnalysisSpatial Analysis

• Client browserClient browser– HTML, Java, ActiveXHTML, Java, ActiveX

• Object based integrationObject based integration– Web server and the internet map serverWeb server and the internet map server

• Coupled to Spatial Database EngineCoupled to Spatial Database Engine– High performance, multi clientHigh performance, multi client

• Incorporates process managerIncorporates process manager– Control throughput and agents Control throughput and agents

Page 7: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

Intranet Enterprise GISIntranet Enterprise GIS

• Connect to enterprise informationConnect to enterprise information– ArcSDE, Oracle, MS SQL, DB2, etc.ArcSDE, Oracle, MS SQL, DB2, etc.– Results of spatial analysisResults of spatial analysis– Distributed, organizational clients using Distributed, organizational clients using

enterprise spatial databases linked to GIS enterprise spatial databases linked to GIS server processorsserver processors

Page 8: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

FlavorsFlavors

• ArcIMSArcIMS– http://www.http://www.esriesri.com.com

• AspMapAspMap– http://www.http://www.vdstechvdstech.com/.com/aspmapaspmap

..htmhtm

• Demis Map ServerDemis Map Server– http://www.http://www.demisdemis..nlnl/DEMIS_UK//DEMIS_UK/

• GeodeGeode– http://geode.http://geode.usgsusgs..govgov//

• GeoServe.orgGeoServe.org– http://http://stssts..gscgsc..nrcannrcan..gcgc.ca/.ca/

• IMapperIMapper– http://www.http://www.imapperimapper.com/.com/

• InterroMapInterroMap– http://www.http://www.interromapinterromap.com/.com/imim_portal_portal

• MapServerMapServer– http://http://mapservermapserver..gisgis..umnumn..eduedu//

• Map TVMap TV– http://www.http://www.spatialmediaspatialmedia.com/.com/

• Web-MapperWeb-Mapper– http://www.web-http://www.web-mappermapper.com/main..com/main.

cfmcfm

• WebViewWebView– http://www.zebris.com/english/http://www.zebris.com/english/

main_produkte.htmmain_produkte.htm

Page 9: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

MapserverMapserver

Web ServerWeb Server

CGI programCGI programMapserv orMapserv orMapserv.exeMapserv.exe

BrowserBrowser

.html &.html &

.map files.map files

John Porter, 2003

Page 10: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

MapServerMapServer

• MapServer is an OpenSource development environment MapServer is an OpenSource development environment for building spatially enabled Internet applications. for building spatially enabled Internet applications.

• The MapServer was originally developed by (UMN) The MapServer was originally developed by (UMN) ForNet project in cooperation with NASA and the ForNet project in cooperation with NASA and the Minnesota DNRMinnesota DNR

• Current development is funded by the TerraSIP project, Current development is funded by the TerraSIP project, a NASA sponsored project between the UMN and a NASA sponsored project between the UMN and consortium of land management interests. consortium of land management interests.

• MapServer will run where most commercial systems MapServer will run where most commercial systems won't or can't, on Linux/Apache platforms. won't or can't, on Linux/Apache platforms.

• MapServer is known to compile on most UNIXes and will MapServer is known to compile on most UNIXes and will run under Windows NT/98/95/00. run under Windows NT/98/95/00.

Page 11: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

• MapServer can be implemented as a CGI MapServer can be implemented as a CGI application.application.

• The MapServer CGI application provides a The MapServer CGI application provides a significant number of "out-of-the-box" significant number of "out-of-the-box" features.features.

– vector formats supported: ESRI shapefiles, simple embedded features, ESRI ArcSDEvector formats supported: ESRI shapefiles, simple embedded features, ESRI ArcSDE– raster formats supported: TIFF/GeoTIFF, GIF, PNG, ERDAS, JPEG and EPPL7 raster formats supported: TIFF/GeoTIFF, GIF, PNG, ERDAS, JPEG and EPPL7 – quadtree spatial indexing for shapefiles quadtree spatial indexing for shapefiles – fully customizable, template driven output fully customizable, template driven output – feature selection by item/value, point, area or another feature feature selection by item/value, point, area or another feature – TrueType font support TrueType font support – support for tiled raster and vector data (display only) support for tiled raster and vector data (display only) – automatic legend and scalebar buildingautomatic legend and scalebar building– scale dependent feature drawing and application executionscale dependent feature drawing and application execution– thematic map building using logical or regular expression based classesthematic map building using logical or regular expression based classes– feature labeling including label collision mediationfeature labeling including label collision mediation– on-the-fly configuration via URLson-the-fly configuration via URLs– on-the-fly projectionon-the-fly projection

MapServer Implementation Options

Page 12: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

MapServer Implementation OptionsMapServer Implementation Options• MapServer system supports MapScript which allows popular MapServer system supports MapScript which allows popular

scripting languages such as Perl, Python, Tk/Tcl, Guile and even scripting languages such as Perl, Python, Tk/Tcl, Guile and even Java to access the MapServer C API.Java to access the MapServer C API.

• This is analogous to Active Server Pages (.asp) and ColdFusion This is analogous to Active Server Pages (.asp) and ColdFusion (.cfm) in the ClosedSource world.(.cfm) in the ClosedSource world.

• MapScript provides a rich environment for developing applications MapScript provides a rich environment for developing applications that integrate disparate data.that integrate disparate data.

• If the data have a spatial component, and you can get to it via your If the data have a spatial component, and you can get to it via your favorite scripting environment, you can map it.favorite scripting environment, you can map it.

• Additionally MapScript allows you to integrate your business data in Additionally MapScript allows you to integrate your business data in an RDBMS (e.g., Oracle, MySQL, Sybase) into your MapServer an RDBMS (e.g., Oracle, MySQL, Sybase) into your MapServer application.application.

Page 13: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

Gory DetailsGory Details

• The hardest part is the compilation process.The hardest part is the compilation process.• Because it’s open source it pulls from many Because it’s open source it pulls from many

different projects with many different developers.different projects with many different developers.• If you need support for something (e.g., If you need support for something (e.g.,

TrueType fonts) it has to be compiled in (e.g., TrueType fonts) it has to be compiled in (e.g., FreeType).FreeType).

• This can be a pain.This can be a pain.• However, installation of most IMServers is a However, installation of most IMServers is a

pain.pain.

Page 14: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

LAYERNAME counties #Layer nameTYPE POLYGONDATA county #shapefile nameSTATUS ONCLASSITEM tile_name #for queries use thisLABELITEM "name“ #label using this itemSYMBOLSCALE 1500000 #Start scaling at this resolutionLABELMAXSCALE 600000 #Start labeling at this scaleHEADER county_header.html #Header template for queriesCLASS #Start of a map class NAME "Counties“ #Name for Legend EXPRESSION /./ #could be pop90 > 10000 e.g. OUTLINECOLOR 128 128 128 COLOR 245 240 219 TEMPLATE county.html #used to build query output LABEL #Builds the label

SIZE 8 MINSIZE 2 MAXSIZE 8 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 204 BACKGROUNDSHADOWSIZE 4 4 BACKGROUNDSHADOWCOLOR 0 0 0 TYPE TRUETYPE FONT tahoma ANTIALIAS BUFFER 1 ENDEND

END

.map File Example - simple

Page 15: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

MapServer ExamplesMapServer Examples

• http://www.dnr.state.mn.us/maps/compass.htmlhttp://www.dnr.state.mn.us/maps/compass.html

• http://mapserver.gis.umn.edu/gallery.htmlhttp://mapserver.gis.umn.edu/gallery.html

• http://www.vcrlter.virginia.edu/mapserver/http://www.vcrlter.virginia.edu/mapserver/

• http://www.vcrlter.virginia.edu/~jhp7e/evsc468/2003http://www.vcrlter.virginia.edu/~jhp7e/evsc468/2003

John Porter’s MapServerJohn Porter’s MapServer

Page 16: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

ArcIMSArcIMS

• Microsoft Windows NT 4.0, 2000, XPMicrosoft Windows NT 4.0, 2000, XP• Sun Solaris, AIX, HP-UX, LinuxSun Solaris, AIX, HP-UX, Linux• Choice of operating system will determine:Choice of operating system will determine:

– Web ServerWeb Server– Java Servlet engineJava Servlet engine– Application ServersApplication Servers– Java Runtime Environment (JRE)Java Runtime Environment (JRE)

• Two different Viewers availableTwo different Viewers available– Java requires a one-time download 20mb fileJava requires a one-time download 20mb file– HTML- very customizableHTML- very customizable

Page 17: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

ArcIMS ArcMap ServerArcIMS ArcMap Server

ArcIMS Route ServerArcIMS Route Server

ArcIMS 3.1ArcIMS 3.1

ArcIMS 4ArcIMS 4

20012001

20022002

ArcIMS 9ArcIMS 9

ArcIMS Tracking ServerArcIMS Tracking Server

ArcIMSArcIMSEvolutioEvolutio

nn

ESRI 2003

Page 18: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

ESRI 2003

ArcIMS: Nuts and BoltsArcIMS: Nuts and Bolts

Page 19: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

ESRI 2003

ArcIMS: confusion matrixArcIMS: confusion matrix

Page 20: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

Helpful TipsHelpful Tips

• Use test servlets that come with softwareUse test servlets that come with software– Example: ServletExec, test withExample: ServletExec, test with

• http://localhost/servlet/TestServlethttp://localhost/servlet/TestServlet• http://localhost/servlet/DateServlethttp://localhost/servlet/DateServlet

• Make sure virtual directories are in placeMake sure virtual directories are in place• Adequate system resources for ArcIMS Spatial ServersAdequate system resources for ArcIMS Spatial Servers• Network security issues: Firewalls, DNS issuesNetwork security issues: Firewalls, DNS issues• Use the ArcIMS Diagnostics Page:Use the ArcIMS Diagnostics Page:

– C:\Program Files\ArcGIS\ArcIMS\Common\Diagnostics\C:\Program Files\ArcGIS\ArcIMS\Common\Diagnostics\ArcIMS_Diagnostics.htmlArcIMS_Diagnostics.html

• Majority of installation problems start and end here!!!Majority of installation problems start and end here!!!

Page 21: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

PerformancePerformance

• ArcSDE vs. Shapefiles ArcSDE vs. Shapefiles – ShapefilesShapefiles

• Faster setupFaster setup• Faster single hit performanceFaster single hit performance• More CPU usage on MapServerMore CPU usage on MapServer

– ArcSDEArcSDE• Better maintainabilityBetter maintainability• Better scalabilityBetter scalability• Offset CPU to DB serverOffset CPU to DB server

Number of Users

Retr

ieval Tim

e

ArcSDE

Shape

ESRI 2003

Page 22: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

PerformancePerformance

• How long does a request take?How long does a request take?

• Perceived vs. actual performancePerceived vs. actual performance

• Focus on getting the fastest single user Focus on getting the fastest single user performance byperformance by– Tuning your dataTuning your data– Tuning your AXLsTuning your AXLs– Choosing your client applicationsChoosing your client applications

Page 23: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

Tune Your DataTune Your Data

• DataData– Generalize data by reducing features and/or Generalize data by reducing features and/or

verticesvertices

• ShapefilesShapefiles– Make sure your spatial index files (.sbn Make sure your spatial index files (.sbn

and .sbx) are in sync with your dataand .sbx) are in sync with your data

• ArcSDEArcSDE– RDBMS tuningRDBMS tuning– Grid sizesGrid sizes

Page 24: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

Source: http://www.geoplace.com/gw/1999/1199/images/limptb1.pdf

ESRI 2002

Page 25: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

ESRI 2002

Page 26: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

Most PopularMost Popular

InternetInternet IntranetIntranet

Web Server

AppServerSpatial Server

Data

• Web Server Outside FirewallWeb Server Outside Firewall– Port 5300 OpenPort 5300 Open– File sharing from Intranet to Web server for File sharing from Intranet to Web server for

image outputimage output

ESRI 2002

Page 27: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

Not RecommendedNot Recommended

• Connection between AppServer and Connection between AppServer and spatial server persistentspatial server persistent

5353

Spatial Servers

Http

WebServer + AppServer

ESRI 2002

Page 28: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

Three Machine + DB Server ScenarioThree Machine + DB Server Scenario

• CapacityCapacity– 150,000 maps/day (16 max. 150,000 maps/day (16 max.

req/s)req/s)– 99% availability (3.6 days/yr)99% availability (3.6 days/yr)

• ConfigurationConfiguration– 1 machine for Web server 1 machine for Web server

and AppServerand AppServer– 2 machines for spatial server2 machines for spatial server– 1 ArcSDE server1 ArcSDE server

InternetInternet

Web ServerAppServer

SpatialServer

ArcSDEServer

ESRI 2002

Page 29: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

VCU Hardware ConfigurationVCU Hardware Configuration

• Sun Enterprise 450Sun Enterprise 450– 4 – 450mhz Ultra 4 – 450mhz Ultra

Sparc IIISparc III– 8 gb random access 8 gb random access

memorymemory– 144gb SCSI HD144gb SCSI HD

• Dell 2650 PowerEdgeDell 2650 PowerEdge– 2 – 3.06mhz Xeon2 – 3.06mhz Xeon– 8 gb random access 8 gb random access

memorymemory– 3 – 73gb SCSI HD3 – 73gb SCSI HD

Page 30: Internet Mapping William Shuart Center for Environmental Studies Virginia Commonwealth University

ResourcesResources

• http://www.freegis.org/http://www.freegis.org/