Getting to Know Web GIS. Pinde Fu

Чтение книги онлайн.

Читать онлайн книгу Getting to Know Web GIS - Pinde Fu страница 17

Автор:
Жанр:
Серия:
Издательство:
Getting to Know Web GIS - Pinde Fu Getting to Know

Скачать книгу

Microsoft Excel, navigate to C:\EsriPress\GTKWebGIS\Chapter2\Top_50_US_Cities.csv, and study the data fields. Note: There are no latitude and longitude fields in the CSV file. The file contains the following fields:Rank: A city’s 2016 rank by population.City: City name.State: Name of the state in which the city resides.Census2010: City population as of April 1, 2010.Estimate2010, Estimate2011, Estimate2012, Estimate2013, Estimate2014, Estimate2015, Estimate2016: Estimated population as of July 1 in 2010, 2011, 2012, 2013, 2014, 2015, and 2016.OccHouseUnit: Occupied house units in 2010.OwnerOcc: Owner-occupied house units in 2010.PopOwnOcc: Population in owner-occupied house units in 2010.SizeOwnOcc: Average house size of owner-occupied house units in 2010.RenterOcc: Renter-occupied house units in 2010.PopRentOcc: Population in renter-occupied house units in 2010.SizeRentOcc: Average house size of renter-occupied house units in 2010.Wikipedia_URL: URL to the city’s Wikipedia page.Picture_URL: URL to the image of the city’s seal or flag.

      2 Open a web browser, navigate to ArcGIS Online (http://www.arcgis.com) or your Portal for ArcGIS, and sign in.

      3 Click Content.

      4 Click Add Item , and then click From my computer.

      5 In the Item from my computer window, perform the following tasks:For File, browse to C:\EsriPress\GTKWebGIS\Chapter2\Top_50_US_Cities.csv, and click it. If you have published a file of the same name to your content before, rename your Top_50_US_Cities.csv file to a unique name, and then select it.For Title, use the default, or specify a new one.For Tags, specify keywords, such as US cities, Population change, GTKWebGIS, and your organization name, as illustrated. Separate the keywords with commas.Make sure the check box next to Publish this file as a hosted layer remains selected.Leave the Address option selected.For Country, select US.Review the field types and location fields, and make corrections if needed.Click Add Item.

      This CSV does not have latitude/longitude fields. ArcGIS Online and Portal for ArcGIS will geocode your data. Geocoding converts addresses and other identifiers (such as place-names and postal codes) into coordinates. If your data contains addresses for a single country, select its name from the Country list. If the addresses refer to multiple countries or to a country that is not on the Country list, select World. If ArcGIS Online didn’t pick up the correct location fields, you can click the wrong fields to make corrections.

       Note: Geocoding a CSV or a table is considered batch geocoding, which will cost you ArcGIS Online credits if you use ArcGIS Online’s geocoding service. You can configure your ArcGIS Online and Portal for ArcGIS to use your own geocoding service.

      1 When prompted to review addresses, click Yes.The feature layer will be added to the map viewer for you to review the geocoding results. You can click each of the matched addresses in the matched table at the bottom of the map and review its placement on the map. You can also click each of the unmatched addresses in the unmatched table, fix it by choosing a suggested address, or Edit the address information and choose a suggested address, or directly add a point to the map.In the tutorial data, all cities are matched to their correct locations.

      2 Click Done Reviewing.You have created a hosted feature layer using geocoding.

      3 Click the Save button to save your web map.

      4 In the Save Map window, enter the appropriate title and tags, and then click Save Map.

      You have created a hosted feature layer using geocoding. You can go to the layer details page to share the layer with everyone or other audience you select. In this tutorial, you will share the layer together with your web map later.

      In this section, you will explore smart mapping and configure your layer to display the population change rates in the 50 cities in your layer.

      1 With the map viewer open, in the Contents pane, point to Top 50 US Cities Population, and then click the Change Style button .

      2 In the Choose an attribute to show text box, choose Estimate2016 as the field to show in the Change Style pane.Note that smart mapping automatically selects Counts and Amounts (Size) as the default style for this numeric field. This style uses an orderable sequence of different sizes to represent your numerical data or ranked categories. You can symbolize points, lines, and areas using this approach. The proportional symbols make the map intuitive. On this map, can you easily tell the top three most populated cities in the US?Next, you will style the layer based on the ratio of two fields. You can do so using Arcade or selecting two fields. Here, you will select two fields.

      3 Click Options in the Counts and Amounts (Size) style to further configure the layer style.

      4 Set Divided By to Census2010.The map now displays the ratio of population 2016 to 2010, which is a good indicator of population growth over the years. Bigger circles indicate bigger increases, and smaller circles indicate smaller increases and even decreases. A value of 1.0 means there was no population change; numbers greater than 1.0 indicate population growth; and numbers less than 1.0 indicate population decline. This ratio is a good approach to reveal how things change over time without having to create multiple maps. This approach works for any numerical data from two time periods.You may also change the Min and Max symbol sizes and adjust the two handles on the histogram slider to exaggerate the cities with the most and the least population growth. Smart mapping easily emphasizes certain ranges of the data and uncovers subtle details.Smart mapping also uses continuous sizes and colors automatically, but it does not remove any of the traditional methods to break features into a set of classes and show them with a limited number of sizes and colors. Next, you will manually break the cities into classes and assign symbols for these classes.

      5 Scroll down in the Change Style pane and select the box next to Classify Data. Select manual breaks with 4 classes and Round classes to 0.01 (in other words, round the class break values to 2 decimal points).

      6 Starting from the bottom, set the class break values to 1, 1.1, and 1.15. You can set the values by clicking the existing break values and typing in the new values as illustrated or by dragging the handles on the histogram slider in Change Style.Note the Symbols and Legend icons in the figure. Clicking the Symbols icon allows you to set a symbol for all the classes. Clicking the Legend icon allows you to set an individual symbol and label for each class.All the classes are using the same symbol with gradual sizes. Next, you will set each class to use a different symbol.

      7 Click Legend.This step allows you to edit the symbol for each individual class.

      8 Click the biggest circle, in other words, the one next to > 1.15 to 1.2.A window appears showing the available point symbols.

      9 After clicking the list to choose Arrows, click the solid red up arrow, set its size to 36, and click OK.The map viewer provides a collection of symbols for business, damage, disasters, infrastructure, recreation, people places, points of interest, health, transportation, and other categories, as shown in the list of options. You can browse through these categories and get a sense of the variety of available symbols. To browse, you can click the symbol list to access the options.

      10 Similarly, make the following changes:For the > 1.1 to 1.15 class, change the symbol to a brown upper arrow in the Arrows group, set its size to 24, and click OK.For the > 1.0 to 1.1 class, change the symbol to a purple upper arrow in the Arrows group, set its size to 16, and click OK.

      In addition to the collections of symbols, the map viewer

Скачать книгу