40
Len Preston Chief, Labor Market Information New Jersey Department of Labor & Workforce Development

QGIS presentation for GIS Training FINAL

  • Upload
    others

  • View
    15

  • Download
    0

Embed Size (px)

Citation preview

Page 1: QGIS presentation for GIS Training FINAL

Len Preston

Chief, Labor Market Information

New Jersey Department of Labor & Workforce Development

Page 2: QGIS presentation for GIS Training FINAL

Cooperative project of the State of New Jersey and the U.S. Bureau of the Census serving data users in the public, private, and academic sectors since 1980.

Each state has an SDC acting as secondary distributors of Census data providing value added products and expertise for their respective state

The NJSDC maintains a data dissemination network of over 110 state, county, regional, and local agencies.

– Includes: All 21 county planning boards Metropolitan Planning Organizations – DVRPC, NJTPA, SJTPO Representatives from 19 State Departments/Agencies Federal Depository Libraries including the New Jersey State Library,

Rutgers and Princeton University Libraries

Page 3: QGIS presentation for GIS Training FINAL

http://lwd.dol.state.nj.us/labor/lpa/LMI_index.html

Page 4: QGIS presentation for GIS Training FINAL
Page 5: QGIS presentation for GIS Training FINAL

• Population and Demographic Trends– Census Data– Population and Household Estimates– Building Permits– Income and Poverty Data– Women and Minority Owned Businesses

• NJ Department of Labor Economic Data– Labor Force Estimates– Unemployment Rates– Employment Data– Industry and Occupational

Employment Projections– Population and Labor Force Projections– Occupational Wage Rates

Data Available Through NJLWD and NJSDC

Page 6: QGIS presentation for GIS Training FINAL

QGISPros:Powerful Desktop GIS SoftwareOpen Source SoftwareArcGIS type Layout UsedFree

Cons:Open Source VulnerabilitiesNot as Widely Used as ArcGISNot Compatible with ArcGIS

‐ .qgs extension

Page 7: QGIS presentation for GIS Training FINAL

Local Employment Dynamics – New Hires By Industry( New Hires – Counts Average of Quarters 2013 Q1 – 2013 Q4)

Source: U.S. Census Bureau Local Employment Dynamics Quarterly Workforce Indicators (QWI) 2013 Quarters 1 

through 4

Prepared By: New Jersey Department of Labor and Workforce Development

Office of Research and Information, Division of Economic and Demographic Research New Jersey State Data Center June, 2015

Page 8: QGIS presentation for GIS Training FINAL

QWI Explorer   http://qwiexplorer.ces.census.gov/

http://qwiexplorer.ces.census.gov/exp‐r/f4352.html?st=NJ&v=map&fc=true&t=ac0&extra=x%3D0%26g%3D0

Link below will bring youinto the tool with all of the example parameterspre‐loaded

Page 9: QGIS presentation for GIS Training FINAL

Downloaded Comma Delimited File

This is what thedownloaded .csv datafile looks like in Excel.

Page 10: QGIS presentation for GIS Training FINAL

New Map/ProjectOpen Map/ProjectSave and Save as

Browser Window:‐Refresh‐Add Selected Layer‐Filter Files‐Collapse All

Layer Window:‐Add Group‐Manage LayerVisibility

‐Filter Legend byMap Content

‐Expand All‐Collapse All‐RemoveLayer/Group

QGIS Opening Screen

Page 11: QGIS presentation for GIS Training FINAL

Zoom In/ Zoom OutRefresh

Add:Vector LayerRaster LayerPostGIS LayersSpatiaLite LayerMSSQL Spatial LayerOracle Spatial LayerOracle GeoRaster LayerWMS/WMTS LayerWCS LayerWFS LayerDelimited Text Layer

QGIS Opening Screen

Page 12: QGIS presentation for GIS Training FINAL

Add County Shapefile

Add County Shapefile by either double clicking onshapefile in browserwindow or highlight fileand click “Add SelectedLayers” button

Page 13: QGIS presentation for GIS Training FINAL

Add Data File

Now add the Local Employment Dynamics data file (.csv) by double clicking on the “AddDelimited Text Layer” button.  Browse for your .csv file and under Geometry Definition, clickthe “No Geometry” radioButton.  Click on “OK”.

Page 14: QGIS presentation for GIS Training FINAL

Right click on each of theShapefile and Data file to click on “Open AttributeTable” and find a common field to join the two tables

Preparing to Join Files

Remember the variable names in each file as theymay not be the same.

Next, click on “Properties” to get to the Join “Tab”

Page 15: QGIS presentation for GIS Training FINAL

On the Layer Propertiesscreen select the “Join” tab and click on thegreen plus button on thebottom left of the window.

Since “Properties” wasselected while OGIS_countycoast was highlighted, you will be indicating which file you want to join to it and by which field the join willoccur.

In this example, New Hires2013 is the Join Layer andthe field we want to use to join to the shapefile is “COUNTY”.

Joining the Shape and Data Files

Page 16: QGIS presentation for GIS Training FINAL

OGIS_countycoast is yourselected target layer.You want to join “New Hires 2013” on the target field “COUNTY”.Select COUNTY from the drop down box.

Check the “Choose fields”box and select those fieldsyou wish to join. In thisexample we joined all fields except the flag fields.

Field Name Prefix is not necessary to check but helps keeping track of data source.

Select the “OK” buttonto complete the join.

Joining the Shape and Data Files

Page 17: QGIS presentation for GIS Training FINAL

Join is now Complete.

Joining the Shape and Data Files

Page 18: QGIS presentation for GIS Training FINAL

The General Tab is whereyou will find basic information about thehighlighted shapefile such as the Coordinate ReferenceSystem (CRS) used for your map.

Changing the Layer Properties

Page 19: QGIS presentation for GIS Training FINAL

The Style Tab is where you will make choices on how your Thematic Map will display the data you are working with.

For our example, we will create a Graduated Thematic Map.

Changing the Layer Properties

Page 20: QGIS presentation for GIS Training FINAL

Select the data you wishto analyze.  In our exampleit is Accommodation and Food Services.

Select this industry from the “Column” drop down box. 

Changing the Layer Properties

Page 21: QGIS presentation for GIS Training FINAL

In the “Classes” dropdown, select 7 for thenumber of data groups.

Select Equal Interval as the “Mode” and set the“Precision” to 0 and leavethe “Trim” box unchecked.

Select Browns 2 in the “Color Ramp” dropdown(Custom Color) and check the “Invert” box so the color ramps from light to dark brown.

When highlighting the “Legend Format” box,an informational appearsto explains the Legendformat.

Hit “Apply” and “OK”

Don’t Forget Thousands Separators

Changing the Layer Properties

Page 22: QGIS presentation for GIS Training FINAL

Your Map is now colorcoded by the 7 classes that you previouslydefined.

Visibility of the 7 classesare selectable and anyclass can be removed byunchecking the box besideany of the 7 classes.

You can also turn on or offthe entire OGIS_countycoast layer byclicking on the box besidethe layer name.  This is handy when superimposingdifferent geographies overeach other.

Changing the Layer Properties

Page 23: QGIS presentation for GIS Training FINAL

Labeling the MapNow we want to label our map.  From “Layer Properties”, select the “Labels” tab or the “Labels”button on the top menu.

Check the “Layer Label With”box.  We will create theexpression in the box with the expression creator (button to the right)

Select your Font, Style, Size,and Color of your label.You are also able to selectTransparency level, Type Case and Spacing of the label as well.

Now click on the Expression Creator buttonin the upper right cornerof the “Labels” tab. 

Page 24: QGIS presentation for GIS Training FINAL

Use the Expression Creatorto build an expressionthat formats your label.

In the Fields and ValuesFunction, select the field“County”  then hit the “Concatenate Button”(||).Next type in the visual basic code for “next line”(‘\n’).  Expand the String Functions and select theformat_number() function.The first item in the parenthesis is the “Accomodation and FoodServices” field followed bya comma and then the number of decimal placesand the end parenthesis.

If your expression is validyou will see the result in the Output Preview.

Page 25: QGIS presentation for GIS Training FINAL

In the “Formatting” Tabselect the alignment.  Inour example the alignmentis set to “Center”

Page 26: QGIS presentation for GIS Training FINAL

In the “Buffer” Tab, check“Draw Text Buffer” box andselect the Size, Color, and Transparency Level of your buffer to give your label a 3D quality and visibility overgeographic boundaries.

Page 27: QGIS presentation for GIS Training FINAL

Skip the “Background” tab and move to the “Shadow” Tab.  This is another tool to give yourlabels better visibility.

Check the “Draw DropShadow”  box and selectthat it be drawn under thetext of the label.  Next,select the offset angle, blur radius, transparency,and color of the shadow.

The settings for the “Placement” and “Rendering” tabs are leftin their default settings.

You can now click on “Apply” and “OK” to seethe changes to your map.

Page 28: QGIS presentation for GIS Training FINAL

Your Map is now labeled.

QGIS has a separate process for finishing the map for printing.

Page 29: QGIS presentation for GIS Training FINAL

Print ComposerTo start the Print Composer,click on the “New PrintComposer” button and givethe composer a name.

Page 30: QGIS presentation for GIS Training FINAL

Print Composer – Add Map

Click on the “Add new Map”button and move the crosshairs to the upper leftcorner click and hold as you drag down to the lowerright corner to set the visible area for the map.

Release the mouse button and the map will appear in the window.

Page 31: QGIS presentation for GIS Training FINAL

Print Composer – Add Map

As you can see the maplooks small and is at theshift bottom of the frame.

Set “Scale” to 1050000 to bring map to size of the specified area.

Click on the “Move item content” and drag the mapto where you want it on the work area.

Page 32: QGIS presentation for GIS Training FINAL

Print Composer – Add MapHere is how your mapshould look.  All additionalsettings on the “Item Properties Tab” are in their default position.

All settings on the “AtlasGeneration” Tab are alsoin their default postions.

Page 33: QGIS presentation for GIS Training FINAL

Print Composer – Add MapOn the “Composition” tab,the default resolution is 300 dpi.  In our example we increased the resolution to 600 dpi.

Click on the “Change”button for “Page Background” to make the page transparent.(Under “Item Properties”the background box mustbe unchecked)

Page 34: QGIS presentation for GIS Training FINAL

Print Composer – Add A TitleClick on the “Add New Label” button and with the crosshairs drag fromupper left corner to lowerright to form a title box at top of page.

Under “Item Properties”Change the title to“Accommodation and FoodServices”, Change the FontSize to 22/Bold, and selectthe “Center” radio buttonfor horizontal alignment and “Middle” for Vertical Alignment.

All other settings on the “Composition”, “ItemProperties”, and “Atlas Generation” tabs are in default position.

Page 35: QGIS presentation for GIS Training FINAL

Print Composer – Add A TitleClick the Save buttonto save your map withits title.

Your map should nowlook like this.

Page 36: QGIS presentation for GIS Training FINAL

Print Composer – Add A LegendClick on the “Add Legend”button, place the crosshairsin the upper left corner of the space where you want the legend, left clickand hold as you drag the box down and to the bottom right corner andrelease the mouse button.

Your Map Legend should look like our example.  No changes need to be madeTo the Composition and Atlas Generation tabs. 

Page 37: QGIS presentation for GIS Training FINAL

Print Composer – Add A LegendIn the “Item Properties” tab in the “Main Properties”box, change the title to New HiresbAverageofb2013 Q1‐Q4, set titlealignment to “Center” and set“Wrap text on” tothe letter b.  This changes the title of the Legend.

Next, under Legend Items,Uncheck the box that reads“Auto Update” right click on “New Hires 2013” and check the box labeled “hidden”. Right click on OGIS_countycoastand check the box labeled“hidden”.

Page 38: QGIS presentation for GIS Training FINAL

Print Composer – Add A LegendScroll down the “Item Properties and uncheck the background box so the legend has a transparent background. 

Click on the “Fonts” arrowand then click on the “Title Font” button and select “Bold” to make theLegend Title stand out.

Page 39: QGIS presentation for GIS Training FINAL

Your finished map is now ready for print or export as an image file, vector based output/SVG file, or a .pdf file.

Be sure to save your workbefore closing the PrintComposer and QGISdesktop.

Finished Map

Page 40: QGIS presentation for GIS Training FINAL

Contact Information

Leonard PrestonNew Jersey Department of Labor and Workforce Development609‐984‐[email protected]/labor

“Labor Market Information” on Left Navigation BarLook for the NJSDC Logo