Presentation is loading. Please wait.

Presentation is loading. Please wait.

Creating and Sharing Geospatial Data January 28, 2010 presentation to the Bedford Institute of Oceanography Geographic Information Systems Special Interest.

Similar presentations


Presentation on theme: "Creating and Sharing Geospatial Data January 28, 2010 presentation to the Bedford Institute of Oceanography Geographic Information Systems Special Interest."— Presentation transcript:

1

2 Creating and Sharing Geospatial Data January 28, 2010 presentation to the Bedford Institute of Oceanography Geographic Information Systems Special Interest Group by Bob Branton, Dalhousie University Describing technical details behind Ocean Tracking Network (OTN) geospatial data (e.g. receiver lines and animal tracks). http://oceantrackingnetwork.org

3 Complex styling with legends End user Access Control Time Series Animation Popup Annotations with logos In addition to showing you the basics of getting your data to appear on desktop mapping systems such as Google Earth, I will also show you how to utilize a number of important value added features, including … About this presentation

4 Software PostgreSQL – an open source object-relational database system... PostGIS – allows PostgreSQL to be used as a backend spatial database... GESOSERVER – an open source software server that allows users to share and edit geospatial data... GoogleEarth – free software that lets you fly anywhere on earth including the ocean floor...

5 Tables, Points and Lines *** using pgadmin3 *** CREATE OR REPLACE VIEW geoserver.my_points AS SELECT..., my_datetime, st_setsrid( st_makepoint( longitude, latitude), 4326) –- SRID for WGS84 AS gis_point FROM my_data; CREATE OR REPLACE VIEW geoserver.my_lines AS SELECT tag_name, st_setsrid( st_makeline( gis_point), 4326) AS my_line FROM (SELECT tag_name, st_makepoint( longitude, latitude) AS gis_point FROM my_data ORDER BY tag_name, datetime )my_points GROUP BY tag_name; http://postgis.refractions.net/documentation/

6 GeoServer http://kil-otn-1.ucis.dal.ca:8080/geoserver http://kil-otn-1.ucis.dal.ca:8080/geoserver Suggested workflow... Login Config – Data DataStores FeatureTypes Style Apply Welcome – Demo Map Preview Sample Requests Save Logout http://docs.geoserver.org/

7 Data Stores & FeatureTypes Select Menu Items: Config | Data | DataStores New | fill in the blanks... Submit | Apply | Save Select Menu Items: Config | Data | FeatureType Click New or Select from list and then Edit or Delete Generate | Submit | Apply http://docs.geoserver.org/1.7.x/en/user/getting-started/postgis-quickstart/index.html

8 Styling and Preview Open layers.... Browser... select menu items | “Welcome” | “Demo” | “Map Preview” click desired Layer name Browser... select menu items | “Config” | “Data | “FeatureType” select desired Layer name | click ‘Edit’ click ‘Create new SLD’ fill in the blanks | click ‘Apply Style’ | click ‘Finished’

9 Complex Styling and Preview # # create XML code to assigns color by tag name # SELECT ' ’||tag_name|| ' '||tag_name||' tag_name ’||tag_name||' circle ’||tag_color||' 1 1 5 ' AS style FROM tag_colors; PDF rendering....

10 WMS and Google Earth http://earth.google.com/userguide/v4/ug_imageoverlays.html Google Earth... select menu items > “Add“ |“Image Overlay” click “Refresh” Tab | click “WMS Parameters” pastet into “URL” box | select “Paste” | click “OK” click “desired layer” | click “add” | click “OK” Browser... select menu items | “Welcome” | “Demo” | “Demo Request” left click Request drop down list select WMS_getcapabilities.url right click in URL text box | Copy http://kil-otn-1.ucis.dal.ca:8080/geoserver/wms?request=getCapabilities

11 Animation and Annotation ** requires interactive login access to your server ** Animation $ cat /geoserver/data_dir/featureTypes/my_feature/time.ftl {my_datetime.value} Annotation $ cat /geoserver/data_dir/featureTypes/my_feature/title.ftl tag ${my_name_column.value} http://geoserver.org/display/GEOSDOC/02-Time+Templates

12 Google Earth / Network Layers Google Earth... - Select menu item “Add” | “Network Layer” - right click in “Location” text box | select Paste - type ‘&kmscore=60&legend=TRUE’ | left click Save - type username and password | click “OK” Browser select menu items | “Welcome” | “Demo” | “Map Preview” right click “KML” for desired layer | select “Copy Link Location” http://kil-otn-1.ucis.dal.ca/geoserver/wms/kml?layers=otn:location_data_daily_points&legend=TRUE&kmscore=60

13 Access Control ** requires interactive login access to your server ** Users $ cat /geoserver/data_dir/security/users.properties # username=password,role1,role2,... user1=password1,ROLE_ADMINISTRATOR,LOGGED_IN_USERS,PROJECT1 user2=password2,LOGGED_IN_USERS,PROJECT2 user2=password2,LOGGED_IN_USERS,PROJECT3 Layers $ cat /geoserver/data_dir/security/layers.properties # rule structure is namespace.layer.operation=role1,role2,... mode=challenge *.*.r=* *.*.w=NO_ONE Domain.my_feature.r=LOGGED_IN_USERS http://docs.geoserver.org/1.7.x/en/user/security/index.html

14 Ongoing Work http://geoserver.org/dis play/GEOSDOC/Tropical +Storm+Tracking+with+ PostGIS-GeoServer- GoogleEarth http://geoserver.org/dis play/GEOSDOC/Tropical +Storm+Tracking+with+ PostGIS-GeoServer- GoogleEarth views and styling rules to show speed and/or behaviour mode – migration/foraging/? – steaming/fishing/? bob.branton@dal.ca


Download ppt "Creating and Sharing Geospatial Data January 28, 2010 presentation to the Bedford Institute of Oceanography Geographic Information Systems Special Interest."

Similar presentations


Ads by Google