Shaowen Wang Shaowen Wang CyberInfrastructure and Geospatial Information CyberInfrastructure and Geospatial Information Laboratory (CIGI) Laboratory (CIGI) Department of Geography Department of Geography and and National Center for Supercomputing Applications National Center for Supercomputing Applications (NCSA) (NCSA) University of Illinois at Urbana-Champaign University of Illinois at Urbana-Champaign January - February, 2011 January - February, 2011 Principles of GIS Principles of GIS Fundamental database concepts Fundamental database concepts
29
Embed
Shaowen Wang CyberInfrastructure and Geospatial Information Laboratory (CIGI) Department of Geography and
Principles of GIS. Fundamental database concepts. Shaowen Wang CyberInfrastructure and Geospatial Information Laboratory (CIGI) Department of Geography and National Center for Supercomputing Applications (NCSA) University of Illinois at Urbana-Champaign January - February, 2011. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Shaowen WangShaowen WangCyberInfrastructure and Geospatial Information CyberInfrastructure and Geospatial Information
Laboratory (CIGI)Laboratory (CIGI)Department of GeographyDepartment of Geography
andandNational Center for Supercomputing Applications (NCSA)National Center for Supercomputing Applications (NCSA)
University of Illinois at Urbana-ChampaignUniversity of Illinois at Urbana-Champaign
January - February, 2011January - February, 2011
Principles of GISPrinciples of GIS
Fundamental database conceptsFundamental database concepts
User interface and query languageUser interface and query language Query compiler and optimizerQuery compiler and optimizer Constraint enforcerConstraint enforcer Runtime database processorRuntime database processor Stored data managerStored data manager System catalogSystem catalog
– MetadataMetadata
55
MetadataMetadata
Data about dataData about data XML (eXtensible Markup Language)XML (eXtensible Markup Language) GMLGML
varchar(20), value float);varchar(20), value float); Delete tableDelete table
– # drop table test;# drop table test;
SQL CommandsSQL Commands
Insert a rowInsert a row– # insert into test values(1, 'attr0', 100);# insert into test values(1, 'attr0', 100);
Update table contents Update table contents – # # update test set attr='attr1' where update test set attr='attr1' where
key=1;key=1; Delete rowsDelete rows
– # delete from test where key=1;# delete from test where key=1;
SQL CommandsSQL Commands
List contents of tableList contents of table– # select * from test; # select * from test; – # select * from test where attr='attr1'; # select * from test where attr='attr1';
RDBMS problems when handling RDBMS problems when handling spatial dataspatial data– Data structureData structure– PerformancePerformance– SearchSearch
Importing data from Importing data from CSVCSV Data formatData format
– CSV fileCSV file– First is assumed to be column namesFirst is assumed to be column names– Data values are separated by , and Data values are separated by , and
non numeric values are quoted.non numeric values are quoted.
Importing data from Importing data from CSVCSV Create insert file from csv fileCreate insert file from csv file