Tuesday, November 17, 2015

WEB GIS Lab 7

Introduction
Volunteered geographic information (VGI) allows the general public to collect as well as upload geographic locations and its related attribute information into a web GIS application. This task entails crowdsourcing, where instead of hiring people to collect GIS data, you develop a web GIS application and seek information collected by the general public. The main goal of this lab is to learn how to create a web GIS VGI app that can be used by the general public.
Methods

The first part of lab seven involved authoring a map document that supports feature services and web editing. To begin this section of the lab the creation of domains and subtypes are required, which are rules that govern the values within fields of a feature class or non-spatial attribute table. The domain names given are type, condition, and health. The domain names are then given a description, in this case fire hydrants, sidewalk, and green space. Each domain name now is given a property, which is long integer under the field type and the domain type is coded values. The coded value is permitted with numbers as values and then each number is allowed a description of what the number represents. For example the fire hydrant is granted two coded values 0 and 1, 0 represents red and 1 represents yellow.

Now that the database properties are established the creation of features and attributes can now be collected. A basemap needs to be first added, so we can locate the proper location of features. Once the basemap is loaded to the document new feature classes can be created for each domain. A point feature is created for fire hydrants, line feature for sidewalks, and polygon feature for green space. Each feature class is then given a projected coordinate system and since we are publishing to the web, we use the WGS 1984 Web Mercator. After accepting the remaining defaults windows the feature classes are finally created, however each class is assigned field names. The field names are type, condition, and health, the domains that were first created before. A data type is associated with each field name and the type, condition, and health are accredited with long integer. The last field name applied to each feature is comment and is given text for a data type. This allows for the developer and end-user to make comments on each feature created.
Domain names, properties, & coded values
New Feature Class Fields
Next, the features are selected an appropriate symbol that best represents its characteristics. Following the symbol designs we can finally create our features on ArcMap. This is done by starting an edit session in the editor toolbar and selecting the create feature tab. Once the feature is created the attributes must be added along with an attachment of a photo or video. Right clicking on the feature class and then choosing manage-create attachments will allow for the feature attachment. After all the features are created on the basemap we can now save and stop editing. The features are ready for publish as soon as the basemap is removed. To publish this service the same following procedures done in lab two are repeated. Refer to the second paragraph in lab two that explains how to publish to the server.

To complete the lab a HTML, CSS, and JavaScript is developed to ultimately display the final service. The functions assembled in the JS are esriConfig, map, snapping manager, editor, feature layer, geometry service, draw, keys, parser, array Utills, and i18n. Each function is then enabled throughout the script to ensure the end-user has a user-friendly experience. The final web application can be observed and edited at this URL – https://gis14.uwec.edu/f15Geog455/praschl/lab7/LP_index.html


Desktop version of VGI web app

VGI pop-up window
Smart phone version of VGI web app

Tuesday, November 3, 2015

WEB GIS Lab 6

Introduction
The main goal of this lab is to learn how to make a Web GIS applications that are responsive in mobile clients. The first task is to develop a search app that end-users can use to search for addresses of places, congressional districts, information about senators, and higher educational institutions. To conclude, a query app is developed that will ultimately return graphical and text census information for counties in Wisconsin.

Methods



The first assigned task was to complete a web application that can search for congressional districts, senator locations, and finding location of addresses in the United States. To begin a HTML document is prepped with appropriate tags so the web application can run freely using a desktop and smart phone. Now that the HTML doc is guiding into the right direction and JavaScript is develop. Within the script multiple tools are required to ensure the final web application can function properly. The functions assembled are map, search, feature layer, info template, and dom ready. The map is given a gray basemap and has a zoom focus on the the U.S. Now that we have a reference we can bring in the search bar. The search bar is assigned a single button to complete the search and an info window. Inside the search bar a drop down menu is also created to show the three different categories you can search. Next, the search features are linked inside the script and are accredited with relevant fields that will show up once the features information window when it is selected. Once the feature layers are referenced the web app is ready for launch and use.

The next section requires a modification to the search application and a different reference service. The new reference service used is universities features. To complete the modifications the feature layer is first created in ArcMap, where the symbols are altered, and then published to the rest server. When referencing the university layer there are changes in the search drop down menu and the info template. Inside the info template the university name is only selected for display.

The second part of lab six is to create a query application. The query app starts with the same procedure are part one, but requires changes inside the JavaScript. The tools required inside the script and map, feature layer, query, content pane, border container, analog gauge, and analog Arc indicator. The map used is an ocean's basemap and is centered at Wisconsin. Wisconsin's counties map is acquired from ArcGISOnline sample service to be used for the final app. The service provides information on the county's population in 2007, which will be used to compare Wisconsin's county's to Wisconsin's most populous county. Next a query is develop that will allow for this comparison. After establishing the correct query an analog gauge is created to model the percentage of the county's population to the most populous county. This step involved many functions in order to get the proper display. The app gauge contained all the style settings for creating the gauge, like the height and width, the percentage display, the content box, and finishing with the updated gauge function, which would allow the population field to be used for contrasting. The final gauge can be seen in Wisconsin's county comparison in the bottom right.

Congressional District
University Locator

Wisconsin's County Comparison