meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pluginto:wfs [2022/10/10 21:57] joetulenkopluginto:wfs [2024/03/12 13:40] (current) joetulenko
Line 7: Line 7:
 Connecting in QGIS: Connecting in QGIS:
  
-In the QGIS "browser" panel (can be shown on the page by navigating to view -> panel -> and selecting "browser") one of the options for layers to add to any map is the "WFS / OGC API - features" option. Right click that option and select "New Connection..."+You can add a data source in QGIS in several ways. One, in the QGIS "browser" panel (can be shown on the page by navigating to view -> panel -> and selecting "browser") one of the options for layers to add to any map is the "WFS / OGC API - features" option. Right click that option and select "New Connection..." Alternatively, you can get to the Data Source Manager either from the toolbar icon or from the top menus (Layer -> Data source manager), then click on the 'WFS/OGC Api - Features' tab and select 'New.' In either case you will be presented with a connection window that should look like this:  
  
-The new connection window should look like this:+{{ :pluginto:wfs_step3.2-correct.png |}}
  
-{{ :pluginto:new_connection_page.jpg?nolink&400 |}}+Name the connection whatever you like.
  
-Name the connection whatever you like, I named mine iced. +In the URL line, enter:
- +
-In the URL line, add in the following URL:+
  
 https://geoserver.ice-d.org/geoserver/wfs?version=2.0.0 https://geoserver.ice-d.org/geoserver/wfs?version=2.0.0
  
-This link establishes a connection between your desktop GIS application and all of the ICE-D data stored as a Web Feature Service (WFS) hosted online by Geoserver. Before selecting OK, be sure to check the box stating "Invert axis orientation". Otherwise QGIS will think latitude values are longitude values and vice versa and all of your sample locations will be rotated 90 degrees. After checking the box select OK.+This link establishes a connection between your desktop GIS application and all of the ICE-D data stored as a Web Feature Service (WFS) hosted online by Geoserver. Before selecting OK, be sure to check the box stating "Ignore axis orientation". Otherwise QGIS will think latitude values are longitude values and vice versa and all of your sample locations will be rotated 90 degrees.  
 + 
 +**Note**: "ignore axis orientation" and "invert axis orientation" checkboxes may work equivalently. Yes, this behaviour is weird. If you really want to know about this, look [[https://docs.geoserver.org/stable/en/user/services/wfs/axis_order.html|here]], but it basically has to do with whether your layer lists coordinate pairs as Lat,Lon or Lon,Lat. 
 + 
 +The connection page should now look like this:  
 + 
 +{{ :pluginto:wfs_step3.2-correct.png |}} 
 + 
 +Now click 'OK.'
  
-This entire process can also be done from the top drop down menusSelect Layer -> Data source manager and the following page should open:+Now that you have added the connection, you can add layers from the Data Source ManagerEither select Layer -> Data source manager or open the Data Source Manager from the toolbar, and the 'WFS' tab of the data source manager should look like this:
  
 {{ :pluginto:data_source_manager.jpg?nolink |}} {{ :pluginto:data_source_manager.jpg?nolink |}}
  
-In the screenshot I am showing what the page should look like if the connection is successful (note that the box titled Only request features overlapping the view extent is UNCHECKED). Here, you would select the "New" option and the New Connection window will appear as it did through the previous route.+In the screenshot I am showing what the page should look like if the connection is successful. **Note:** for best results, the box titled Only request features overlapping the view extent should be UNCHECKED. 
  
-Once you properly set up the new connection and select OK, there should be a new drop down menu below the "WFS / OGC API Features" option with whatever name you gave to the ICE-D WFS connection you just made. under the connection, there should be a list of layers. Also, when you select the "Connect" option in the data source manager window, you should see the same list of layers. As discussed in more detail below, each application has its own set of two layers; one for surface samples that belong to the application and one for core samples that belong to the application.+Once you properly set up the new connection and select OK, whatever name you gave to the ICE-D WFS connection you just made should appear in the dropdown menu. Under this new connection, there should be a list of layers. Also, when you select the "Connect" option in the data source manager window, you should see the same list of layers. All of these layers can now be added to your project. As discussed in more detail below, each application has its own set of two layers; one for surface samples that belong to the application and one for core samples that belong to the application.
  
 == Explanation of relationship between ICE-D applications and WFS layers ==  == Explanation of relationship between ICE-D applications and WFS layers == 
Line 35: Line 41:
 1) All the surface samples associated with an application. 1) All the surface samples associated with an application.
  
-2) All the core samples associated with an application.+2) All the "cores" ("cores" are subsurface data, either actual rock, sediment, or ice cores, or depth profiles collected from pits or natural outcrops) associated with an application. **Note**: some of the applications may have core layers that are empty, e.g., no cores or depth profiles have been associated with the application.
  
 For example, loading up every sample that belongs to the Greenland Database will look something like this: For example, loading up every sample that belongs to the Greenland Database will look something like this:
Line 47: Line 53:
 In the image above, I selected some random surface samples related to the Greenland Ice Sheet in northwest Greenland as an example (the red highlighted dots on the map). Each entry (sample) has a set amount of attribute data that comes from ICE-D. The image shows the complete list, and users are encouraged to explore on their own, but attribute data includes lat lon and sample elevation values, among other attributes useful for querying. Currently, each sample has reported calculated ages based on the default production rate ([[https://doi.org/10.1016/j.quageo.2015.01.009|Borchers et al., 2016]]) and the scaling scheme from [[https://doi.org/10.1029/2000JB900181|Stone (2000)]] (St) and from [[https://doi.org/10.1016/j.epsl.2013.10.052|Lifton et al. (2014)]] (LSDn). Attribute data also includes links to sample and site pages and a list of DOI's to publications associated with each sample. In the image above, I selected some random surface samples related to the Greenland Ice Sheet in northwest Greenland as an example (the red highlighted dots on the map). Each entry (sample) has a set amount of attribute data that comes from ICE-D. The image shows the complete list, and users are encouraged to explore on their own, but attribute data includes lat lon and sample elevation values, among other attributes useful for querying. Currently, each sample has reported calculated ages based on the default production rate ([[https://doi.org/10.1016/j.quageo.2015.01.009|Borchers et al., 2016]]) and the scaling scheme from [[https://doi.org/10.1029/2000JB900181|Stone (2000)]] (St) and from [[https://doi.org/10.1016/j.epsl.2013.10.052|Lifton et al. (2014)]] (LSDn). Attribute data also includes links to sample and site pages and a list of DOI's to publications associated with each sample.
  
-A major advantage of viewing samples in your own personal desktop application is that you have access to all of the  samples in the database and their metadata, and you can select samples based on geographic locations with ease. However, GIS applications also have querying tools that allow users to select samples based on their attributes in essentially the same exact way a user might query an sql database to extract the exact data they want. Please find an example of using QGIS to query data from ICE-D in the [[applications:diy|ICE-D tutorials, visualization and analysis applications page]]+A major advantage of viewing samples in your own personal desktop application is that you have access to all of the  samples in the database and their metadata, and you can select samples based on geographic locations with ease. However, GIS applications also have querying tools that allow users to select samples based on their attributes in essentially the same exact way a user might query an sql database to extract the exact data they want. Coming soon: examples of using QGIS to query data from ICE-D in the [[applications:diy|ICE-D tutorials, visualization and analysis applications page]]