Erik - WebProgrammingintro_web basics2

advertisement
By: Erik Zheentaev
erik_jeentyaev@yahoo.com
Geodesy and Geoinformatics Department, KSUCTA
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
1
Web GIS
Outline
•
•
•
•
•
•
•
•
Aims and objectives
Introduction
Theory
Resources/references
Case studies
Conclusion
Practical session, assignment
Q/A
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
2
Web GIS
Aims and Objectives
The course introduces basic Web GIS concepts, functions and
architecture; design and publication of maps through the internet;
applications in environments.
After completing the module, students should be able to:
-
identify the framework of Web mapping
-
design and publish web maps
demonstrate a clear understanding of the Web mapping
standards
-
explain the types of Web mapping applications
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
3
Web GIS
Introduction
The Web GIS is one of the Geoinformation Technology
fields.
The basic tasks of Web GIS are:
•
Visualization - spatial representation of
the existing information
• Simplification of work with the spatial information in
a web;
• Managements and publication of spatial data,
search and other services based on a site of objects
(LBS - location based services)
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
4
Web GIS
What Is The Internet?
• A vast network connecting computers
throughout the world...
–
…so that those
computers and
their contents
are easily
accessible to
each other
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
5
Web GIS
About
Internet
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
6
Web GIS
Client/Server Architecture
• At least two computers involved
– SERVER: computer that houses centralized
programs and data
– CLIENT: user’s computer connected to a
server
• Communicate over a network
– LAN, WAN, the Internet
– Communication built on TCP/IP
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
7
Web GIS
Graphic
Design
Experience/Skills
Digital Mapping
Computer
Programming
Cartographic
Theory
Web Design &
GIS Analysis Internet Mapping
Database
Development
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
8
Web GIS
WebGIS Advantages
• Single centralized dataset
• Low cost of hardware/software
• Ease of use
– web browser based, minimal training
required
• Wide access to GIS data & functionality
– linkages with other depts & organizations
– potential for release of portions to public
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
9
Web GIS
What WebGIS Software
is Available?
•
•
•
•
•
•
•
ESRI: ArcIMS
AutoDesk: MapGuide
Intergraph: GeoMedia WebMap
UMN: MapServer
MapInfo: MapXtreme
Caris: Spatial Fusion
Bentley: ModelServer Publisher
…and many others…
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
10
Web GIS
What is MapServer?
MapServer overview
MapServer is a popular Open Source project whose purpose is
to display dynamic spatial maps over the Internet. Some of its
major features include:
• ability to run on various operating systems (Windows,
Linux, etc.)
• support for popular scripting languages and development
environments (PHP, Python, Perl, Ruby, Java, .NET)
• on-the-fly projections
• high quality rendering
• fully customizable application output
• many ready-to-use Open Source application environments
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
11
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
11
Web GIS
MapServer Input Data Formats
Raster




TIFF/GeoTIFF
jpeg, giff
…and 70+ others via GDAL
•
GDAL = Geospatial Data Abstraction Library
Vector




ESRI shape files, ESRI ArcSDE
PostGIS, Oracle Spatial, MySQL
and 20+ others via OGR
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
12
Web GIS
WebGIS Spatial Database
PostgreSQL



Robust RDBMS
Access via SQL or GUI (e.g. PGAccess)
PostGIS

“Spatial-enabler” for PostgreSQL

Supports Geometry Column data type
and functions

MapServer can retrieve input data from
PostGIS
MSc in Geoinformatics – Managing Energy, Resources, Environment

Teacher Training Dushanbe, 25.9. – 1.10.2011
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
13
Web GIS
Conventional Distributed GIS
GIS Data
GIS Data
Alfiya Zhaparkulova
Akylbek Chymyrov
GIS Data
Nagima Alimbekova
GIS Data
GIS Data
GIS Data
Kamilia Mukhanova
GIS Data
Tatygul Urmambetova
Kydyr Nazarkulov
Adilet Bekturov
GIS Data
GIS Data
Erik Zheentaev
Nurbek Chymbyldaev
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
14
Web GIS
Web-based GIS
Alfiya Zhaparkulova
Nagima Alimbekova
Akylbek Chymyrov
Kydyr Nazarkulov
GIS Data
Kamilia Mukhanova
Adilet Bekturov
Tatygul Urmambetova
MSc in Geoinformatics – Managing Energy, Resources, Environment
Nurbek Chymbyldaev
Teacher Training Dushanbe, 25.9. – 1.10.2011
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
15
MapServer Architecture
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
16
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
Web GIS
16
Web GIS
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
17
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
17
Web GIS
Resources/references

http://gishosting.net



http://treelineweb.ca



MapServer, PostgreSQL, PHP, PEAR, Perl, Python
Plans (ca$/mo): One (25), Two (40) – Canada only
http://htmlx.com



MapServer, PostGIS, PHP/MapScript, CartoWeb
Plans (us$/mo): Starter (20), Pro. (30), Academic (10)
MapServer, PostgreSQL, PHP
Plan: us$ 20+ / month
http://www.MapSherpa.com (DM Solutions)


MapServer, ASP, PHP, ColdFusion, Perl
Services: Mapping API access, Custom Solutions
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
18
Web GIS
Case studies
• Access to GIS data and functionality
• Can add value to web sites
• Examples:
– Service Location
– Service Delivery
– Data Access
– Data Commerce
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
19
Web GIS
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
20
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
20
Web GIS
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
21
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
21
Web GIS
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
22
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
22
Web GIS
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
23
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
23
Conclusion
Creating of centralized WebGIS database will
lead to success in every field of work related
to spatial analysis. After completing of the
module WebGIS you can build your own map
in Internet with different attribute data. It
means that you will be architecture but not
client (user) of this product.
The Laboratory exercise and assignment you can find in
the folder \\gisnet\Pi_webGIS\
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
24
\\gisnet\Pi_webGIS\
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
25
Web GIS
MSc in Geoinformatics – Managing Energy, Resources, Environment
Teacher Training Dushanbe, 25.9. – 1.10.2011
510978-TEMPUS-1-2010-1 Thisprojecthas beenfunded withsupportfromthe EuropeanCommission.Thisdocumentreflectstheviews
onlyof the author,andtheCommissioncannotbe heldresponsibleforany use whichmaybe madeof the informationcontainedtherein.
26
Download