Guofeng Cao CyberInfrastructure and Geospatial Information Laboratory Department of Geography National Center for Supercomputing Applications (NCSA) University.

Slides:



Advertisements
Similar presentations
IS 466 ADVANCED TOPICS IN INFORMATION SYSTEMS LECTURER : NOUF ALMUJALLY 20 – 11 – 2011 College Of Computer Science and Information, Information Systems.
Advertisements

ArcGIS Geodatabase Miles Logsdon Spatial Information Technologies, UW Garry Trudeau - Doonesbury.
Database Connectivity Rose-Hulman Institute of Technology Curt Clifton.
Multiple Tiers in Action
OpenSource GIS 2004 Ottawa, Canada Introduction to PostGIS PostGIS Basics for the New User Paul Ramsey & Chris Hodgson Refractions.
TECNOLOGIAS DE ARMAZENAMENTO DE INFORMAÇÃO ESPACIAL.
Open Source Databases and GIS
Esri International User Conference | San Diego, CA Demo Theater | Using Spatial Data in ArcGIS with Query Layers Brent Pierce Thursday, July 14 th.
WORKSHOP PLANS ULANBEK TURDUKULOV ITC. 18/1019/1020/1021/1022/10 Introduction WMS MS4W PostgreSQL training Maintaining PostgreSQL/P ostGIS DB Using PostGIS.
Database for Location- Aware Applications Mohammad Rezaei School of Computing University of Eastern Finland
Guofeng Cao CyberInfrastructure and Geospatial Information Laboratory Department of Geography National Center for Supercomputing Applications (NCSA) University.
Esri UC 2014 | Technical Workshop | Accessing Spatial Databases in ArcGIS using Query Layers Annie Sasidar.
“Codd’s Rules for Spatial ORDBMS”
Spatial Database Souhad Daraghma.
Tutorial 1: Getting Started with Adobe Dreamweaver CS4.
Spatial Query Language Group No.15 Dhruv Dhokalia Yash Khandelwal Course Relation- Chapter 11- Object and Object-Relational Databases.
Database for Location- Aware Applications Mohammad Rezaei School of Computing University of Eastern Finland
Information Systems Today (©2006 Prentice Hall) MySQL 1CS3754 Class Note #8, Is an open-source relational database management system 2.Is fast and.
Shaowen Wang CyberInfrastructure and Geospatial Information Laboratory (CIGI) Department of Geography and National Center for Supercomputing Applications.
POSTER TEMPLATES BY: Meta data - data that provides information about data.Meta data - data that provides information about.
Spatiotemporal Tile Indexing Scheme Oscar Pérez Cruz Polytechnic University of Puerto Rico Mentor: Dr. Ranga Raju Vatsavai Computational Sciences and Engineering.
CyberGIS in Action CyberGIS in Action Shaowen Wang CyberInfrastructure and Geospatial Information Laboratory (CIGI) Department of Geography and Geographic.
The State of PostGIS Paul Ramsey Paul Ramsey
6. Simple Features Specification Background information UML overview Simple features geometry.
ES Metadata Management Enabling Grids for E-sciencE ES metadata OGSA-DAI NA4 GA Meeting, D. Weissenbach, IPSL, France.
Guofeng Cao CyberInfrastructure and Geospatial Information Laboratory Department of Geography National Center for Supercomputing Applications (NCSA) University.
Intro to GIS and ESRI Trainers: Randy Jones, GIS Technician, Douglas County Jon Fiskness, GISP GIS Coordinator, City of Superior.
MySQL Databases & PHP Integration Using PHP to write data to, and retrieve data from, a MySQL database.
Database Fred Durao What is a database? A database is any organized collection of data. Some examples of databases you may encounter in.
PostGIS and Spatial Queries Steve Signell, Instructor Robert Poirier, TA School of Science Rensselaer Polytechnic Institute.
SQL access and working with ST_Geometry Functions
Guofeng Cao CyberInfrastructure and Geospatial Information Laboratory Department of Geography National Center for Supercomputing Applications (NCSA) University.
Transitioning Low Earth Orbit Satellite Archive Data from Informix (Geodetic DataBlade) to PostgreSQL (PostGIS) Churngwei Chu [
SchoolSite Online: An introduction. Session overview SchoolSite Online background What does it do? How is it different? How do I become a user? SchoolSite.
SQL CMSC 461 Michael Wilson. Finally, some code  This is where the theory and practice actually come together  Basically taking the relational algebra.
Optimal insert methods of geographical information to Spatio- temporal DB Final Presentation Industrial Project June 17,2012 Students: Michael Tsalenko.
Geographical Information Systems. Software which can be used in GIS ArcGIS Desktop Map Window Quantum GIS uDig.
PostGIS and Spatial Queries Steve Signell, Instructor Robert Poirier, TA School of Science Rensselaer Polytechnic Institute.
Guofeng Cao CyberInfrastructure and Geospatial Information Laboratory Department of Geography National Center for Supercomputing Applications (NCSA) University.
Spatial Database Tips & Tricks Paul Ramsey
Guofeng Cao CyberInfrastructure and Geospatial Information Laboratory Department of Geography National Center for Supercomputing Applications (NCSA) University.
Nhóm thực hiện: nhóm 1 Nguyễn Ngọc Trường Trần Minh Khang Bùi Quốc Huy Nguyễn Ngọc Linh Nguyễn Thành Phương Trần.
EGEE-II INFSO-RI Enabling Grids for E-sciencE Hands on session: the AMGA Metadata Catalogue.
John Pickford IBM H11 Wednesday, October 4, :30. – 14:30. Platform: Informix Practical Applications of IDS Extensibility (Part 2 of 2)
Intro to GIS | Summer 2012 Attribute Tables – Part 1.
System for data creation, management and analysis JANITOR GIS Laboratory, CENIA.
Managing Enterprise GIS Geodatabases
Guofeng Cao CyberInfrastructure and Geospatial Information Laboratory Department of Geography National Center for Supercomputing Applications (NCSA) University.
Guofeng Cao CyberInfrastructure and Geospatial Information Laboratory Department of Geography National Center for Supercomputing Applications (NCSA) University.
Guofeng Cao CyberInfrastructure and Geospatial Information Laboratory Department of Geography National Center for Supercomputing Applications (NCSA) University.
What is PostgreSQL? Object-relational database management system (ORDBMS) Based on POSTGRES at Berkeley Computer Science Department. Sponsored by the Defense.
Open Source Geo Tools Tyler Mitchell. Open Source Geo Tools Tyler Mitchell Geographer Open Source Geospatial Advocate GIS Manager at Timberline, B.C.
GEOGRAPHY DATATYPES in SQL Server by jared nielsen linkedin.com/nielsendata.
Uploading Data Matthew Hanson  GeoNode made up of several components  Web Framework – Django  OGC Server – GeoServer  Database – PostGIS.
Databases and SQL CSCI 201L Jeffrey Miller, Ph.D. HTTP :// WWW - SCF. USC. EDU /~ CSCI 201 USC CSCI 201L.
Guofeng Cao CyberInfrastructure and Geospatial Information Laboratory Department of Geography National Center for Supercomputing Applications (NCSA) University.
Lecture 3: Spatial Data Management Dr. Taysir Hassan Abdel Hamid Associate Professor, Information Systems Dept., Faculty of Computers and Information.
GIS Data Shape files, Rasters, Coordinate Systems, ArcGIS.
Desktop Database and Climate Analysis Steven Burian and Erfan Goharian Hydroinformatics Fall 2013.
Key Terms Attribute join Target table Join table Spatial join.
Principles of GIS Fundamental database concepts – II Shaowen Wang
Principles of Software Development
Principles of GIS Fundamental spatial concepts – Part II Shaowen Wang
Using SQL Server through Command Prompt
Principles of GIS Fundamental database concepts Shaowen Wang
Using QGIS, GRASS and PostGIS to answer some difficult questions
Principles of GIS Geocomputation – Part II Shaowen Wang
Access Tutorial 1 Creating a Database
Spatial Databases SpatiaLite & PostGIS.
Presentation transcript:

Guofeng Cao CyberInfrastructure and Geospatial Information Laboratory Department of Geography National Center for Supercomputing Applications (NCSA) University of Illinois at Urbana-Champaign Geog 480: Principles of GIS

Spaital Database (PostGIS) Handson

PostGIS PostGIS “spatially enables” the PostgreSQL open source relational database. The database can then be used to store and query spatial data (points, lines and polygons). PostGIS o High performance, robust spatial database built on PostgreSQLPostgreSQL o Provides spatial representations of geometry types (points, lines, polygons)geometry types o Support for common and advanced spatial operations such as geometry creation and conversion, reprojection, buffer, convex hull, generalization, union, and morecommon and advanced spatial operations o Geodetic support for measurements across the globe/dateline Geodetic support o Widely supported as a spatial database back-end to client and server software

Several Pre-installed Tables

Connecting to Geog480 server

Connecting to Database psql -U username -d database_name o username = geog480 o database_name = tutorial o Enter passwd when prompted (same as username) Postgres Commands o \l List all accessible databases o \dt List all the tables in current DB o \? Help o \q Quite

Create a sample spatial table CREATE TABLE geometries_your_netid (name varchar, geom geometry); Insert a point: INSERT INTO geometries_your_netid VALUES ('Point', 'POINT(0 0)'); Insert a line: INSERT INTO geometries_your_netid VALUES (‘LineString', 'LINESTRING(0 0, 1 1, 2 1, 2 2)'); Insert a polygon: INSERT INTO geometries_your_netid VALUES ('Polygon', 'POLYGON((0 0, 1 0, 1 1, 0 1, 0 0))'); Populate geometry_columns table: Select Populate_Geometry_Columns();

Other geometry types you could try Insert a polygon with hole: INSERT INTO geometries_your_netid VALUES('PolygonWithHole', 'POLYGON((0 0, 10 0, 10 10, 0 10, 0 0),(1 1, 1 2, 2 2, 2 1, 1 1))'); Insert a geometry collection: : INSERT INTO geometries_your_netid VALUES('Collection', 'GEOMETRYCOLLECTION(POINT(2 0),POLYGON((0 0, 1 0, 1 1, 0 1, 0 0)))');

Query the spatial data table SELECT name, ST_AsText(geom) FROM geometries_your_netid; Query length of linestring: SELECT ST_Length(geom) FROM geometries WHERE name = 'Linestring'; Query area of polygons: SELECT name, ST_Area(geom) FROM geometries WHERE name LIKE 'Polygon%';

Import Shape Files into Databases Step 1: shp2pgsql -c -i -s 4326 /srv/cigi/example/states/states.shp public.postgis_states_your_netid > $HOME/states.sql Step 2: psql -U geog480 -d tutorial -f $HOME/states.sql Query: select state_name, state_fips, ST_AsText(the_geom) from postgis_states_your_netid where state_name ilike 'illinois';

End of this topic