SlideShare a Scribd company logo
1 of 19
MAPSERVER
G. P. Sigdel
J. Parajuli
Introduction
• Open Source platform for publishing spatial data and interactive
mapping applications to the web
• Written in C
• Originally developed in the mid-1990’s at the University of Minnesota
ForNet project in collaboration with NASA
• released under an MIT-style license
• not a full-featured GIS system, nor does it aspire to be.
12/13/2019 2
Features
• Advanced cartographic output
• Support for popular scripting and development environments
• Support of numerous Open Geospatial Consortium (OGC) standards
• A multitude of raster and vector data formats
• Map projection support
• runs on all major platforms (Windows, Linux, Mac OS X, Solaris)
12/13/2019 3
architecture
12/13/2019 4
Anatomy
• Map file- tells the program where and how your
data and output images are
• Geographic data- default is ESRI Shape format
and if compiled with OGR, GDAL etc. supports
other formats like PostGIS, GML, MapInfo
• Html pages
• interface between user and mapserver.
• Mapserver places static maps in HTML page
• forms can be added to make interactive,
• MapServer CGI
• receives requests and returns images, data, etc.
• Execute rights required, for security reason
• Web/HTTP Server
• serves up the HTML pages when hit by the
user’s browser.
12/13/2019 5
Anatomy
12/13/2019 6
CGI
• a CGI program that sits inactive on Web server.
• When a request is sent to MapServer, it uses information passed in the
request URL and the Mapfile to create an image of the requested map.
• The request may also return images for legends, scale bars, reference
maps, and values passed as CGI variables.
12/13/2019 7
CGI
• Has two html pages
• Initilization file
• uses a form with hidden variables to send an initial query to the web server and
MapServer.
• Template file
• controls how the maps and legends output by MapServer will appear in the
browser.
12/13/2019 8
Map file
• Heart of MapServer.
• defines the relationships between objects
• points MapServer to where data are located
• defines how things are to be drawn.
• consists of a MAP object, which has to start with the word MAP.
• Key component is the LAYER file
• is the combination of data plus styling.
• Data, in the form of attributes plus geometry, are given styling
using CLASS and STYLE directives.
12/13/2019 9
Map file: Example
12/13/2019 10
Data Optimization
• Index Your Data
• Tile Your Data
• Pre-classify your Data
• Pre-process your images
• Generalize For Overview
12/13/2019 11
Query
• Attribute query
• Spatial query
• Conditions:
• Querymap
• Mapfile layer and class should have template defined
• Qlayer
• Qstring
• Qitem
12/13/2019 12
Mapserver Vs Geoserver: Similarities
• Both work with Windows & Linux, both are well developed
• both are open source, completely free and extremely develop-able with
some great tools included out of the box.
• On paper, Geoserver and Mapserver are pretty identical, both publish
geospatial data from almost any format
• The components and way the core works is essentially the same,
12/13/2019 13
Mapserver Vs Geoserver: Differences
Mapserver
• Based on C and PHP
• Focused for map
• Faster response
• Better cartographic presentation
• Better for reprojection
Geoserver
• Java- based
• Also has a lot of support for data
sharing
• A bit slow response(due to size)
• Cartographically not fine as
mapserver
• Better without reprojection, with
cache
12/13/2019 14
Comparison Chart
Geoserver Mapserver
WMS good Better
WFS Better, supports WFS-T No WFS-T
Technology J2EE CGI
Administration Web tool Mapfile generation can be aided by QGIS, but not
comparable to Geoserver’s web admin tool
Extensibility Good for Java developers PHP Mapscript,
querying CQL and OGC filters Embedded SQL statement
Cartography Used standardized SLDs powerful; styles are part of mapfile
Services One WMS/WFS/WCS service for all
users
A mapfile means a service
12/13/2019 15
Mapserver Vs
ArcGIS Server
12/13/2019 16
Mapserver vs ArcGIS Server
Mapserver
• run on all major operating
systems (Windows, Linux, Mac
OSX
• “Saving” of software licenses.
• Efficient performance for small
and medium scale purpose
• WFS files of smaller size
ArcGIS Server
• only works under Windows and
Linux
• Proprietary, so needs purchase
• Suitable for large scale projects
• WFS files of large size
12/13/2019 17
Mapserver Vs ArcGIS Server
12/13/2019 18
12/13/2019 19

More Related Content

What's hot

HYPERSPECTRAL RS IN MINERAL MAPPING
HYPERSPECTRAL RS IN MINERAL MAPPINGHYPERSPECTRAL RS IN MINERAL MAPPING
HYPERSPECTRAL RS IN MINERAL MAPPING
Abhiram Kanigolla
 
Remote Sensing:. Image Filtering
Remote Sensing:. Image FilteringRemote Sensing:. Image Filtering
Remote Sensing:. Image Filtering
Kamlesh Kumar
 
Free open source gis
Free open source gisFree open source gis
Free open source gis
Ashok Peddi
 

What's hot (20)

Scanners, image resolution, orbit in remote sensing, pk mani
Scanners, image resolution, orbit in remote sensing, pk maniScanners, image resolution, orbit in remote sensing, pk mani
Scanners, image resolution, orbit in remote sensing, pk mani
 
Satellite image processing
Satellite image processingSatellite image processing
Satellite image processing
 
Radar remote sensing, P K MANI
Radar remote sensing, P K MANIRadar remote sensing, P K MANI
Radar remote sensing, P K MANI
 
Enterprise GIS
Enterprise GIS Enterprise GIS
Enterprise GIS
 
Remote Sensing: Resolution Merge
Remote Sensing: Resolution MergeRemote Sensing: Resolution Merge
Remote Sensing: Resolution Merge
 
Satellite Image
Satellite Image Satellite Image
Satellite Image
 
Radar Image Processing
Radar Image ProcessingRadar Image Processing
Radar Image Processing
 
Web Mapping 101: What Is It and Making It Work For You
Web Mapping 101: What Is It and Making It Work For YouWeb Mapping 101: What Is It and Making It Work For You
Web Mapping 101: What Is It and Making It Work For You
 
Developing Efficient Web-based GIS Applications
Developing Efficient Web-based GIS ApplicationsDeveloping Efficient Web-based GIS Applications
Developing Efficient Web-based GIS Applications
 
Remote Sensing ppt
Remote Sensing pptRemote Sensing ppt
Remote Sensing ppt
 
HYPERSPECTRAL RS IN MINERAL MAPPING
HYPERSPECTRAL RS IN MINERAL MAPPINGHYPERSPECTRAL RS IN MINERAL MAPPING
HYPERSPECTRAL RS IN MINERAL MAPPING
 
Reflection of water bodies
Reflection of water bodiesReflection of water bodies
Reflection of water bodies
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
Remote Sensing:. Image Filtering
Remote Sensing:. Image FilteringRemote Sensing:. Image Filtering
Remote Sensing:. Image Filtering
 
Radar
RadarRadar
Radar
 
Geographic Information System for Egyptian Railway System(GIS)
Geographic Information System for Egyptian Railway System(GIS)Geographic Information System for Egyptian Railway System(GIS)
Geographic Information System for Egyptian Railway System(GIS)
 
Free open source gis
Free open source gisFree open source gis
Free open source gis
 
Integrating PostGIS in Web Applications
Integrating PostGIS in Web ApplicationsIntegrating PostGIS in Web Applications
Integrating PostGIS in Web Applications
 
Sensors for remote sensing
Sensors for remote sensingSensors for remote sensing
Sensors for remote sensing
 
Image mosaicing
Image mosaicingImage mosaicing
Image mosaicing
 

Similar to Final map server

Going Mobile with HTML5
Going Mobile with HTML5Going Mobile with HTML5
Going Mobile with HTML5
John Reiser
 
Getting your Data Out There: An Introduction to Distributed GIS
Getting your Data Out There:An Introduction to Distributed GISGetting your Data Out There:An Introduction to Distributed GIS
Getting your Data Out There: An Introduction to Distributed GIS
John Reiser
 
Dsm Presentation
Dsm PresentationDsm Presentation
Dsm Presentation
richoe
 
Web enabling your survey business ppt version
Web enabling your survey business ppt versionWeb enabling your survey business ppt version
Web enabling your survey business ppt version
rudy_stricklan
 

Similar to Final map server (20)

Concepts and Methods of Embedding Statistical Data into Maps
Concepts and Methods of Embedding Statistical Data into MapsConcepts and Methods of Embedding Statistical Data into Maps
Concepts and Methods of Embedding Statistical Data into Maps
 
Going Mobile with HTML5
Going Mobile with HTML5Going Mobile with HTML5
Going Mobile with HTML5
 
Getting your Data Out There: An Introduction to Distributed GIS
Getting your Data Out There:An Introduction to Distributed GISGetting your Data Out There:An Introduction to Distributed GIS
Getting your Data Out There: An Introduction to Distributed GIS
 
Geospatial Data Abstraction Library (GDAL) Enhancement for ESDIS (GEE)
Geospatial Data Abstraction Library (GDAL) Enhancement for ESDIS (GEE)Geospatial Data Abstraction Library (GDAL) Enhancement for ESDIS (GEE)
Geospatial Data Abstraction Library (GDAL) Enhancement for ESDIS (GEE)
 
Leveraging GIS with AutoCAD
Leveraging GIS with AutoCADLeveraging GIS with AutoCAD
Leveraging GIS with AutoCAD
 
Be Location Intelligent with MapInfo Pro v2019
Be Location Intelligent with MapInfo Pro v2019Be Location Intelligent with MapInfo Pro v2019
Be Location Intelligent with MapInfo Pro v2019
 
LSIVIEWER 2.0-A CLIENT-ORIENTED ONLINE VISUALIZATION TOOL FOR GEOSPATIAL VECT...
LSIVIEWER 2.0-A CLIENT-ORIENTED ONLINE VISUALIZATION TOOL FOR GEOSPATIAL VECT...LSIVIEWER 2.0-A CLIENT-ORIENTED ONLINE VISUALIZATION TOOL FOR GEOSPATIAL VECT...
LSIVIEWER 2.0-A CLIENT-ORIENTED ONLINE VISUALIZATION TOOL FOR GEOSPATIAL VECT...
 
Ozri 2013 Brisbane, Australia - Geodatabase Efficiencies
Ozri 2013 Brisbane, Australia - Geodatabase EfficienciesOzri 2013 Brisbane, Australia - Geodatabase Efficiencies
Ozri 2013 Brisbane, Australia - Geodatabase Efficiencies
 
OpenStreetMap in 3D - current developments
OpenStreetMap in 3D - current developmentsOpenStreetMap in 3D - current developments
OpenStreetMap in 3D - current developments
 
2013 Enterprise Track, Building GIS, Decision Support, and Location Intellige...
2013 Enterprise Track, Building GIS, Decision Support, and Location Intellige...2013 Enterprise Track, Building GIS, Decision Support, and Location Intellige...
2013 Enterprise Track, Building GIS, Decision Support, and Location Intellige...
 
Dsm Presentation
Dsm PresentationDsm Presentation
Dsm Presentation
 
GEOGRAPHICAL INFORMATION SYSTEM (GIS)
GEOGRAPHICAL INFORMATION SYSTEM (GIS)GEOGRAPHICAL INFORMATION SYSTEM (GIS)
GEOGRAPHICAL INFORMATION SYSTEM (GIS)
 
QGIS Module 1
QGIS Module 1QGIS Module 1
QGIS Module 1
 
HoLIS GIS Update
HoLIS GIS UpdateHoLIS GIS Update
HoLIS GIS Update
 
Gtkwebgis third ch_one_reduced
Gtkwebgis third ch_one_reducedGtkwebgis third ch_one_reduced
Gtkwebgis third ch_one_reduced
 
Mapping
MappingMapping
Mapping
 
QGIS - Free alternative to ArcMap
QGIS - Free alternative to ArcMapQGIS - Free alternative to ArcMap
QGIS - Free alternative to ArcMap
 
Hawaii Pacific GIS Conference 2012: Real-Time Data Acquisitions - Bringing In...
Hawaii Pacific GIS Conference 2012: Real-Time Data Acquisitions - Bringing In...Hawaii Pacific GIS Conference 2012: Real-Time Data Acquisitions - Bringing In...
Hawaii Pacific GIS Conference 2012: Real-Time Data Acquisitions - Bringing In...
 
Plugins in QGIS and its uses
Plugins in QGIS and its usesPlugins in QGIS and its uses
Plugins in QGIS and its uses
 
Web enabling your survey business ppt version
Web enabling your survey business ppt versionWeb enabling your survey business ppt version
Web enabling your survey business ppt version
 

More from Janak Parajuli

More from Janak Parajuli (10)

Extracting Surface Water Bodies From Sentinel-2 Imagery Using Convolutional N...
Extracting Surface Water Bodies From Sentinel-2 Imagery Using Convolutional N...Extracting Surface Water Bodies From Sentinel-2 Imagery Using Convolutional N...
Extracting Surface Water Bodies From Sentinel-2 Imagery Using Convolutional N...
 
Centralized Warehouse to synergize sporadic data sources for efficient emerge...
Centralized Warehouse to synergize sporadic data sources for efficient emerge...Centralized Warehouse to synergize sporadic data sources for efficient emerge...
Centralized Warehouse to synergize sporadic data sources for efficient emerge...
 
Understanding road safety
Understanding road safetyUnderstanding road safety
Understanding road safety
 
Web portal (GIS)
Web portal (GIS)Web portal (GIS)
Web portal (GIS)
 
Presentation on unsupervised classification app
Presentation on unsupervised classification appPresentation on unsupervised classification app
Presentation on unsupervised classification app
 
Imbalance in geographical distribution
Imbalance in geographical distributionImbalance in geographical distribution
Imbalance in geographical distribution
 
Geospatial technologies-for-humanitarian-cause-saving-sustaining-lives
Geospatial technologies-for-humanitarian-cause-saving-sustaining-livesGeospatial technologies-for-humanitarian-cause-saving-sustaining-lives
Geospatial technologies-for-humanitarian-cause-saving-sustaining-lives
 
Centralized Warehouse to synergize sporadic data sources for efficient emerge...
Centralized Warehouse to synergize sporadic data sources for efficient emerge...Centralized Warehouse to synergize sporadic data sources for efficient emerge...
Centralized Warehouse to synergize sporadic data sources for efficient emerge...
 
Open layers
Open layersOpen layers
Open layers
 
Spatial temporal urban change extraction and modeling of Kathmandu Valley
Spatial temporal urban change extraction and modeling of Kathmandu ValleySpatial temporal urban change extraction and modeling of Kathmandu Valley
Spatial temporal urban change extraction and modeling of Kathmandu Valley
 

Recently uploaded

1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 

Recently uploaded (20)

1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic Marks
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 

Final map server

  • 2. Introduction • Open Source platform for publishing spatial data and interactive mapping applications to the web • Written in C • Originally developed in the mid-1990’s at the University of Minnesota ForNet project in collaboration with NASA • released under an MIT-style license • not a full-featured GIS system, nor does it aspire to be. 12/13/2019 2
  • 3. Features • Advanced cartographic output • Support for popular scripting and development environments • Support of numerous Open Geospatial Consortium (OGC) standards • A multitude of raster and vector data formats • Map projection support • runs on all major platforms (Windows, Linux, Mac OS X, Solaris) 12/13/2019 3
  • 5. Anatomy • Map file- tells the program where and how your data and output images are • Geographic data- default is ESRI Shape format and if compiled with OGR, GDAL etc. supports other formats like PostGIS, GML, MapInfo • Html pages • interface between user and mapserver. • Mapserver places static maps in HTML page • forms can be added to make interactive, • MapServer CGI • receives requests and returns images, data, etc. • Execute rights required, for security reason • Web/HTTP Server • serves up the HTML pages when hit by the user’s browser. 12/13/2019 5
  • 7. CGI • a CGI program that sits inactive on Web server. • When a request is sent to MapServer, it uses information passed in the request URL and the Mapfile to create an image of the requested map. • The request may also return images for legends, scale bars, reference maps, and values passed as CGI variables. 12/13/2019 7
  • 8. CGI • Has two html pages • Initilization file • uses a form with hidden variables to send an initial query to the web server and MapServer. • Template file • controls how the maps and legends output by MapServer will appear in the browser. 12/13/2019 8
  • 9. Map file • Heart of MapServer. • defines the relationships between objects • points MapServer to where data are located • defines how things are to be drawn. • consists of a MAP object, which has to start with the word MAP. • Key component is the LAYER file • is the combination of data plus styling. • Data, in the form of attributes plus geometry, are given styling using CLASS and STYLE directives. 12/13/2019 9
  • 11. Data Optimization • Index Your Data • Tile Your Data • Pre-classify your Data • Pre-process your images • Generalize For Overview 12/13/2019 11
  • 12. Query • Attribute query • Spatial query • Conditions: • Querymap • Mapfile layer and class should have template defined • Qlayer • Qstring • Qitem 12/13/2019 12
  • 13. Mapserver Vs Geoserver: Similarities • Both work with Windows & Linux, both are well developed • both are open source, completely free and extremely develop-able with some great tools included out of the box. • On paper, Geoserver and Mapserver are pretty identical, both publish geospatial data from almost any format • The components and way the core works is essentially the same, 12/13/2019 13
  • 14. Mapserver Vs Geoserver: Differences Mapserver • Based on C and PHP • Focused for map • Faster response • Better cartographic presentation • Better for reprojection Geoserver • Java- based • Also has a lot of support for data sharing • A bit slow response(due to size) • Cartographically not fine as mapserver • Better without reprojection, with cache 12/13/2019 14
  • 15. Comparison Chart Geoserver Mapserver WMS good Better WFS Better, supports WFS-T No WFS-T Technology J2EE CGI Administration Web tool Mapfile generation can be aided by QGIS, but not comparable to Geoserver’s web admin tool Extensibility Good for Java developers PHP Mapscript, querying CQL and OGC filters Embedded SQL statement Cartography Used standardized SLDs powerful; styles are part of mapfile Services One WMS/WFS/WCS service for all users A mapfile means a service 12/13/2019 15
  • 17. Mapserver vs ArcGIS Server Mapserver • run on all major operating systems (Windows, Linux, Mac OSX • “Saving” of software licenses. • Efficient performance for small and medium scale purpose • WFS files of smaller size ArcGIS Server • only works under Windows and Linux • Proprietary, so needs purchase • Suitable for large scale projects • WFS files of large size 12/13/2019 17
  • 18. Mapserver Vs ArcGIS Server 12/13/2019 18

Editor's Notes

  1. Advanced cartographic output Scale dependent feature drawing and application execution Feature labeling including label collision mediation Fully customizable, template driven output TrueType fonts Map element automation (scalebar, reference map, and legend) Thematic mapping using logical- or regular expression-based classes Support for popular scripting and development environments PHP, Python, Perl, Ruby, Java, and .NET Support of numerous Open Geospatial Consortium (OGC) standards WMS (client/server), non-transactional WFS (client/server), WMC, WCS, Filter Encoding, SLD, GML, SOS, OM A multitude of raster and vector data formats TIFF/GeoTIFF, NetCDF, MrSID, ECW, and many others via GDAL ESRI shapfiles, PostGIS, SpatiaLite, Mapbox Vector Tile (MVT), Oracle Spatial, MySQL and many others via OGR Map projection support On-the-fly map projection with 1000s of projections through the PROJ library
  2. By referencing MapServer CGI variables in the template HTML, you allow MapServer to populate them with values related to the current state of your application (e.g. map image name, reference image name, map extent, etc.) as it creates the HTML page for the browser to read. The template also determines how the user can interact with the MapServer application (browse, zoom, pan, query).
  3. a structured text configuration file for your MapServer application. It defines the area of your map, tells the MapServer program where your data is and where to output images. It also defines your map layers, including their data source, projections, and symbology. It must have a .map extension or MapServer will not recognize it.
  4. Data Optimization Data organization is at least as important as hardware configuration in optimizing a MapServer application for performance. MapServer is quite efficient at what it does, but by reducing the amount of processing that it needs to do at the time of a user request, you can greatly increase performance. Here are a few rules: Index Your data - By creating spatial indexes for your Shape datasets using shptree. Spatial indexes should also be created for spatially aware databases such as PostGIS and Oracle Spatial. Tile Your Data - Ideally, your data will be ‘sliced up’ into pieces about the size in which it will be displayed. There is unnecessary overhead when searching through a large Shape dataset or image of which you are only going to display a small area. By breaking the data up into tiles and creating a tile index, MapServer only needs to open up and search the data files of interest. Shape datasets can be broken into smaller tiles and then a tileindex Shape dataset can be created using the tile4ms utility. A tileindex Shape dataset for raster files can also be created. Pre-Classify Your Data - MapServer allows for the use of quite complex EXPRESSIONs to classify data. However, using logical and regular expressions is more resource intensive than string comparisons. To increase efficiency, you can divide your data into classes ahead of time, create a field to use as the CLASSITEM and populate it with a simple value that identifies the class, such as 1,2,3, or 4 for a four class data set. You can then do a simple string comparison for the class EXPRESSION. Pre-Process Your Images - Do resource intensive processing up front. See the Raster Data reference for more info. Generalize for Overview - create a more simple, generalized data layer to display at small scales, and then use scale-dependent layers utilizing LAYER MINSCALE and LAYER MAXSCALE to show more detailed data layers as the user zooms in. This same concept applies to images.
  5. Adding Query Capability There are two primary ways to query spatial data. Both methods return data through the use of templates and CGI variable replacement. A QUERYMAP can be used to map the results of the query. To be queryable, each mapfile LAYER must have a TEMPLATE defined, or each CLASS within the LAYER must have a TEMPLATE defined. More information about the CGI variables used to define queries can be found in the MapServer CGI Reference. Attribute queries The user selects features based on data associated with that feature. ‘Show me all of the lakes where depth is greater than 100 feet’, with ‘depth’ being a field in the Shape dataset or the spatial database. Attribute queries are accomplished by passing query definition information to MapServer in the URL (or form post). Mode=itemquery returns a single result, and mode=itemnquery returns multiple result sets. The request must also include a QLAYER, which identifies the layer to be queried, and a QSTRING which contains the query string. Optionally, QITEM, can be used in conjunction with QSTRING to define the field to be queried. Attribute queries only apply within the EXTENT set in the map file. Spatial queries The user selects features based on a click on the map or a user-defined selection box. Again the request is passed through a URL or form post. By setting mode=QUERY, a user click will return the one closest feature. In mode=NQUERY, all features found by a map click or user-defined selection box are returned. Additional query options can be found in the CGI documentation.
  6. Java 2 Platform Enterprise Edition. J2EE is a platform-independent, Java-centric environment from Sun for developing, building and deploying Web-based enterprise applications online. The J2EE platform consists of a set of services, APIs, and protocols that provide the functionality for developing multitiered, Web-based applications