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

Tuesday, October 27, 2015

WEB GIS Lab 5

Introduction
The main goal of this lab is to learn how to use ArcGIS JavaScript API to embed GIS services into any website. The major objectives include embedding GIS services to display an interactive web map, with also customizing a web GIS application created by someone else and then applying it to a different study area by adding my own feature service to the application and also include additional map elements. To conclude the lab I build a routing app that uses network services from an external GIS server.
Methods

The first part for lab five involved creating a basic Web GIS mapping app.  In order to accomplish this task a basic HTML and JavaScript document need to be set up. The JavaScript will contain the ArcGIS functions where it is eventually referenced in the HTML document. A style sheet is also referenced in the HTML document for styling features on the web map; in this case we connect to the Dojo Dijit themes and apply the claro theme. Within the JavaScript document we now start to acquire ESRI’s map and give the map a function so the service can be assigned the appropriate properties. The map properties attached are the center coordinates of the map, zoom level, and street basemap. Once the script is complete and referenced the application is now ready to be launched.

ESRI Street Map
Part two of the lab focuses on building a Web GIS app with operational layer functionality for end-user. Part one and two follow the same process, however more requirements are embedded into the JavaScript. The functions brought into the JavaScript will ultimately display an interactive map of the City of San Francisco with feature services. The app displays tree species and their attributes. The last section for part two incorporated much of the same as part one, but a feature service for schools in Eau Claire County and publishing to the UWEC Geography & Anthropology ArcGIS Server REST is accomplished. The web application also added one of the ESRI’s predefined basemap, a scale bar, and configured pop up windows for the features.

Eau Claire Schools
Developing a simple routing application was the final task to lab five. This application is designed to find routes between two or more points located on the map. The final app places stops at the desired locations and will then find the quickest route between the two or more stops. To develop the application you need to acquire the correct routing functions within the Dojo library so you can then set the precise properties for the application to work efficiently.

Routing Application


Conclusion
This lab builds a lot on programing skills in HTML, CSS, and JavaScript. Having the ability to create a web application that can have end-user interaction is an important, valuable skill and helps with sharing useful services to people.

Thursday, October 15, 2015

WEB GIS Lab 4

Introduction
This lab exercise is designed to introduce the required languages needed in developing Web GIS applications with the ArcGIS API for JavaScript. Specifically, syntax and basic methods of Hypertext Markup language (HTML), cascading style sheets (CSS), and JavaScript, which are commonly used in the development of webpages. The main goal of this lab is the development of a website using the three languages simultaneously.



Methods            
Part one of the lab focused on developing a web page using HTML tags. The program Notepad++ is where the lab first begins starting with naming and saving the HTML document. The name of the document is expressed on the first and second line. It is important to note that the computer needs to know what kind of language you are using because it can now translate, present the language on the web. Saving the document under html file helps the computer identify the codes correctness. Once naming and saving is complete, giving the web page a title and three level header is next. The title is placed in the head division and the headers are placed in the beginning of the body division. A division is used to help break each part into a section making it easier to read and understand. Each header has its own size, <h1> being the largest and <h6> being the smallest. In the next division came an unordered list of six hobbies, but before creating the list a comment line was formed to help the audience follow my steps. The comment line is always in green so it is easy to make out of the script. To create an unordered list you begin with <ul> (unordered list) then tagging each hobby inside the list tag, <li></li>. To complete the unordered list you end with a </ul> tag. The final task to part one included inserting a source reference link in the footer. The href attribute is used to reference a source on html. After the href attribute you include an equal sign then in quotes you enter the link. The link is then hyperlinked to any text that comes after the link. We now have a simple web page with no style.
            
Part two of the lab will fix the simplicity of the web page. To create styles on the web page we use CSS. To use CSS a new notepad page is required and saving the document as a CSS file is also required. The body is first section to be styled and within the section the background color as well as the font family is customized. The other sections, which consist of the wrapper, header, main, sidebar, and footer are customized as well. The other properties that are used in the CSS file are margin, padding, color, width, and float. Once establishing the properties to their specific section it is time to link the CSS file to the html file. To link the two files together you must use the link tag with using the rel and href attributes. The rel attribute is used to define the relationship that it has to the document, in this case stylesheet and the href uses the files link to connect to two together. Now we have a web page with some color and style.

After linking the two files together we can now import pictures that can be displayed on the web page. Two photos are inserted on the html file, one being UW-Eau Claire’s logo and the other being the web application I created on Web AppBuilder. The img tag is used to embed photos that is followed by the attribute src=”” and the link of the photo is entered in-between the two quotes.

The last language, JavaScript is also created into a new file and is saved as a JavaScript file. The goal for this script was to display text, and configure the input, summit box created in the html file. Before each line of code a comment line is inserted so it is easy to follow the steps because JavaScript can sometimes be hard to follow. Each line of code starts with a keyword, var (variable) then a name is assigned, which should describe the variable. The JavaScript is then linked to the html file by incorporating id words in the html file to the JavaScript file.

My first web page development
Once completing all three languages I was asked to design my own web page of a company just starting and provides Web GIS solutions to customers. The web site followed much of the same as the test page, but required a change in style, two web GIS applications from ERSI JavaScript website, a ordered list of services, and inserting more photos. The web page I designed is to help people who are first learning and understanding web GIS. 


My designed web page
Conclusion
This lab has been extremely valuable when it comes creating a web page. After completing this lab I feel more confident about my ability to read and write code in html, CSS, and JavaScript. I plan to use these skills in the future for web applications I design and I hope to learn more about each language.

Thursday, October 1, 2015

WEB GIS Lab 3


Introduction
This lab exercise is designed to introduce the building of Web GIS applications on the Web AppBuilder for ArcGIS. The main goal is to create, author, add own services, configure and integrate customize widgets for the app, and lastly deploy the finished Web GIS application for use by end-users. The final goal of this exercise is to consider the coding that goes into the creation of the Web GIS applications.
Methods
The first part of the lab exercise is to build a web GIS app through Web AppBuilder. The scenario presented is to create a web GIS application that displays historic earthquakes and hurricanes to the public that provides the ability to perform pop-up windows, bookmarks, charts, queries, and batch editing. ArcGIS online is where the creation of the web app begins and starts with establishing a title, summary, and tags that are associated with the map. After creating a name for the app, the app is ready to be launched and customized. Four tabs designed to configure the web app are present in the upper-left corner, which are themes, map, widgets, and attribute. Once selecting a basic layout and style for the app, acquiring as well as customizing widgets is next. Widgets are tools designed to make the end-users experience easier and the widgets that are included alongside the app are basemap gallery, measurement, bookmark, query, chart, draw, and lastly batch editor. The main widgets focused on are bookmarks, chart, query, batch editor. The bookmark widget is designed to take a snap shot of the current location of the map and then provides a link to that location through the bookmark tool. In this web app the locations bookmarked are western and eastern United States. After configuring bookmarks, charting the earthquake layer became another simple task. The magnitude and depth are linked to the location of each earthquake and are created in two separate bar graphs. Clicking and dragging a box around a location of earthquakes would then graph the location then compare either the magnitude or depth to other nearby earthquakes. Following the chart widget, the query widget is now applied for use. The expression used included the magnitude that is at least 4 in the location of Alaska. After reviewing the expression for any mistakes the expression is error free, saved, and ready to be applied and used. The last widget to be applied is the batch editor widget. This tool is configured to quickly update common attribute values for all selected features in this case earthquakes. Now that the important, useful widgets have been established it is time to save the app files to a specific folder and then launch the application, putting it to the test.

Natural Disaster Application
Conclusion               
This lab has been a great experience when designing a web application for end-users. I found that there is an awful lot of customization and useful widgets designed to make the end-users experience educational as well as entertaining. Hopefully the publication of this app intrigues others to share and design other useful web applications.

Thursday, September 24, 2015

WEB GIS Lab 2

   Introduction
Lab two is designed to introduce the authoring of geospatial data in order to successfully create and host geospatial web services on ArcGIS Online for organizations and through ArcGIS sever, such as the department of Geography and Anthropology at UWEC. The lab also introduces various techniques through which geospatial web services can be published which include but are not limited to a shapefile, an Excel CVS file, ArcMap, and through ArcGIS server. Lastly introduced is authoring and creation of feature access service which allows end-user editing. The skills gained throughout the lab include authoring and creating geospatial web services.
Methods

         Part one of lab two focused on publishing feature host services through ArcGIS Online. The first task involved taking four shapefiles, which included Wisconsin cities, interstates, highways, as well as counties and placing the files into a zip file that can be used for adding then publishing on ArcGIS Online. Once the data was published building a cartographically pleasing web map of Wisconsin transportation was done with simple editing and customization. The next section of the lab engaged in publishing a feature host service using an Excel CSV file. Wisconsin fire occurrences in 2004 was the data used and published, containing the date and location of each fire. The data was first converted to a CSV file and then added to ArcGIS Online. Since the location data was put into degrees on the spreadsheet I ordered the point X location to longitude and point Y to latitude as a result the data was accurately marked across Wisconsin. When analyzing the data I found most of the fire incidents occurred in the middle of the state. To finish the section I edited the pop-ups so they would only include the date of the incident. The last task for part one was to then publish a feature host service using ArcMap. The features used for this section was rivers, streams, and lakes. After dragging each feature onto the document I was then ready to share, publish this service to ArcGIS Online. Once I gained connection to the Geography and Anthropology Organization I began filling in the title, tags, summary, as well as capabilities for end-users that included create, query, and update with leaving the delete access unavailable. Before sharing the final service I used analysis to make sure of no errors and as a result none were found so now my final product was ready to be put to use.

Wisconsin Transportation
Wisconsin Fire Occurrences
Wisconsin Water Ways
         Part two and three of the lab concentrated on publishing a tiled map service using ArcGIS Server owned by the department of Geography and Anthropology at UWEC. Connecting to the geography database through ArcMap was the first task, which required my user name and password. Once establishing my database connection I was asked to bring in and import a raster dataset as well as two feature classes. The raster dataset included an overview of the Chippewa Valley land use. After editing the raster I could now share my service to the ArcGIS Server. The publishing remained the same as part one except I needed to use a different URL to issue my service. Once I completed my title, tags, summary, caching, and capabilities the service was to be added to ArcGIS Online. With the two features classes that incorporated earthquakes and hurricanes I imported and published the document just like the raster however a new time feature was applied, calculated, which allowed the map to project wind speeds and earthquake magnitudes overtime. This unique feature could also be used in ArcGIS Online once published and can be updated by end-users. To end the lab I enabled pop ups for both hurricanes as well as earthquakes and also adjusted the time setting by switching the amount of data to display at one time to a six month interval.


Conclusion     
In conclusion I gained valuable skills from a developers perspective in creating web services for end users. I can take any data from various files and import along with publish services to a web GIS to help inform as well as educate end users.

Tuesday, September 15, 2015

WEB GIS Lab 1

Introduction

The first lab exercise is designed to introduce myself to some of the basic functionalities of web maps on ArcGIS online from an end user’s perspective and also introduces me into a developer’s perspective. An additional goal of this lab is to develop and create a story map. This lab made use of ArcGIS Online for Organizations which the department of Geography and Anthropology at UWEC is associated with.
Methods

My first task in part one of the lab is to explore and customize a web map that has been previously been made. The web map I analyzed and edited was a map of lava flowing zones on Hawaiian Island Mauna Loa. I first started searching the server for Hawaii Island Volcanism and selected the first result, which was created by Chris Harder. Before I opened the web map in a viewer I first observed the details that presented the year the information was created, the amount of layers used, and also the tags linked with the map. After looking over the details I then moved to opening the lava flow map where I first get to see the unique feature called pop-up window. The pop-up window opens information and a picture regarding a specific feature that it relates too.  To end part one of the lab I performed basic customization on the map. Since I did not design the map I first had to save the map to my own workspace so I could personalize the map to meet my expectations. I started with editing the highway layer and checked over the various modifications I could perform. Some of the editing included change in color, transparency, pattern, width, etc.

Part two I finally got the opportunity to create a new web map. First I began with searching the Hawaiian Islands and zoomed in enough so the user could see the extent of the biggest island Mauna Loa. Once establishing my area of study I change the basemap to oceans. Next came the formation of adding new layers. I simply added layers through a search menu and added the following layers, lava flow hazard zones with hillshade, volcanoes, towns, highways, as well as boundaries of the lava flow. After completely this section I moved onto a few finishing touches which were renaming layers, hiding some layers on the legend, and enabling pop-up windows.


Hawaii Island Lava Flow Hazard Zone
My final task involved creating a story map that builds off of some of the skills I acquired in part one and two. A story map combines web maps with web GIS applications as well as templates that include text description, multimedia, and interactive functions. The goal is to inform, educate, entertain, and inspire people about various world issues. In order to complete this part I first start with creating a new web map and establishing a basemap just like in part two. While selecting terrain and labels for a basemap I was asked to zoom in to the extent of Austin, Texas. The reason I used terrain and label for my story map was because it makes the map more simplistic and also easier for a viewer to observe the terrain, landscape. The reason I zoomed to the extent showing Austin is that the photos generated for this project came from Austin, Texas. So once I finalized my map it was time to share and create a web app for my geography class. The template I selected of course was story map and once I selected my template it was time to add photos to my map and complete the story. Each photo that was added to the map required information and location. Under the information tab I included the title, caption and location I recorded the latitude along with longitude. After posting each photo to it’s appropriate location my story map is complete and ready to be put to use.
Conclusion The completion of lab one helped me gain skills that will be valuable in the future. The value of web mapping is becoming more and more important because it gives the user the chance to share and inform thought provoking ideas to anyone across the world.
Story Map