Methods - Western Washington University

perchmysteriousΔιαχείριση Δεδομένων

30 Νοε 2012 (πριν από 4 χρόνια και 11 μήνες)

257 εμφανίσεις

Methods

Pre
-
Processing Information


This project focuses on the campus and university owned property of Western Washington University.
Fortunately, this project was an add
-
on to an already existing project. As such, much of the data creation was
already completed and compiled into the existing Western Web Map.
The primary data creation for this project
was in the form of digitizing depot
locations. Depots are single or multiple barrels located outdoors around
Western Washington University. Barrels inside of buildings are simply referred to as barrels. In order to digitize
this data I need
ed basemap data from ESRI, and the

“B
uildings


featu
re dataset

located in
Webmap_Features.gdb.
Since this was the geodatabase being used for the current web map, there was no need to re
-
project the data.
However, this data needed to be assimilated into its own geodatabase specific to this project. Thus, the

BarrelLocations.gdb was created. Within this geodatabase, the
feature dataset’s
coordinate system was set to
match that of the Webmap_Features.gdb: Web Mercator Auxiliary Sphere.

Additionally, config files need to be
made for the web map, and popup config

files need to be made for the popups.
The templates and related
information for these files
were

given to me by Josh, who created the Web Map. All the

config, popup, and
related

data was located in a folder named “prod”. Once these general methods are com
pleted, any number of
modifications can be made. This is the beauty of the web map, as it is modular, and can be modified to fit varying
needs and audiences.

Task 1: Load Building feature dataset from Webmap_Features.gdb to BarrelLocations.gdb

Steps:

1)

Creat
e BarrelLocations.gdb

Locate this in Project directory

2)

Copy

Buildings feature dataset from Webmap_Features.gdb to BarrelLocations.gdb


This will
automatically maintain the coordinate system.





Task 2: Create MXD for data creation. Set environment.

St
eps:

1)

Open a new, blank MXD in ArcMap.

2)

Go to File>Map Document Properties. Check the Store relative pathnames box, and set the default
geodatabase to the newly created BarrelLocations.gdb.

3)

Using the Add Data button, add the Buildings feature dataset.

4)

Usin
g the drop down menu next to the Add Data button, choose Add Basemap. Choose to add the
basemap labeled “Imagery”.

5)

Turn on the Buildings_All layer within the Buildings feature dataset.

6)

Save the MXD as WebDepots.mxd





Data Creation Criteria


For the
actual data creation, there were a few criteria. First, the locations of the depots had to be relatively
accurate. The location did not have to be accurate to the inch, but it did need to be accurate within a few feet. If
the depots were digitized any less

accurately, there was a risk of confusing users trying to locate a particular
depot. Second, there needed to be a certain level of attribute data attribu
ted to each depot. This included

its name,
what could be recycled there, its abbreviation, and a pictu
re of the depot.
Last, symbology must be addressed. I
chose to use the standard recycle triangle, with white arrows and a blue background.

Task: Create Depot features

Steps:

1)

Open WebDepots MXD. Click Customize>Toolbars>Editor.

2)

Start an Editing session
using the drop down editor menu. Select the Buildings layer to edit.

3)

Find the approximate locations of depots using the buildings feature as a reference. Mark the depot
locations as a point.

4)

After creating the Depots feature, Stop Editing, and Save Edits.

5)

Open up the Attribute Table for the buildings layer. Sort one of the name fields by ascending (or
descending).

6)

Select all of the newly created depot attributes. They should have no values in any of the fields, and they
should be clumped together.

7)

With the
attributes selected, right click on the Buildings layer and select Data>Export Data.

8)


In the Export Data dialog box, choose: Selected Features, This layer’s source data, and
BarrelLocations.gdb as the output source. Choose and appropriate name, such as “De
pots”.

9)

Add the data to the map when prompted. Search Google Images for an appropriate thumbnail image of
the recycling logo. Save as a .bmp.

10)

Click on the point symbol under the Depots layer. In the Symbol Selector dialog box, choose: Edit
symbol>Type: Pic
ture Marker Symbol>Picture…

11)

Browse to your .bmp thumbnail and select it. Set background color to none, and the transparent color to
RGB: 211, 230, 234.

12)

Change the Size to 15, and hit OK.

13)

Save your MXD.










Task: Edit Attribute information

Steps:

1)

From your WebDepots.mxd, start an editing session on the Depots layer.

2)

Open the attribute table for the Depots layer. There should be a number of blank fields (name, class,
department, abbrev, etc…)

3)

In the “name” field, select the first attribute observe w
hich attribute is selected on the map. Alternatively,
right click on the black arrow to the left of the attribute and select “flash” or “zoom to” to view which
attribute is in question.

4)

Name the selected attribute using terms that describe nearby building
s, and whether the attribute is a
depot, compost, or food service location.

5)

Repeat steps 3 and 4 for the “abbrev” field, except this time, abbreviate the name to two or three
characters.

6)

Repeat steps 3 and 4 for the “services” field, except this time; desc
ribe what can be recycled (or
composted) there.

7)

Copy the entire contents of the “name” field, into the “name_1” field.

8)

If you have the images of the depots stored locally on your hard drive, insert the address in the
appropriate attribute under the “image
_loc” field. The top level directory (eg. Myweb/prod/)

needs to be
omitted from this address.

9)

Close the table and Stop Editing. Save Edits, and Save MXD.




Task:
Connect to Servers and
Create Web Map Service

Steps:

1)

Open ArcCatalog (alternatively, use the

Catalog tab in ArcMap).

2)

Choose Database Connections>Add Spatial Database Connection

3)

Enter the following information:



Server: Students



Service: sde:postgresql:140.160.114.193



Database: gisusers



Username: egeo451



Password: salclass

4)

Click Test Connection>Ok

5)

After completing this, back in ArcCatalog, choose: GIS Servers>Add ArcGIS Server

6)

Choose Manage GIS Services, then enter the following:



Server URL:
http://140.160.114.132/arcgis/services



Host Name:
140.160.114.132

7)

Click Finish

8)

Back in the WebDepots.mxd, click Customize>Toolbars>Map Service Publishing

9)

From the toolbar that emerges, click
each button from left to right:



Analyze Map



Resolve any errors that occur. For scale ranges, right click on the D
epots layer
and go to Properties. Under the General tab, click Don’t show layer when zoomed Out beyond:
1:9,028.



Preview Map


This is how the map will look like when published



Save Map Service Definition



Save the file as WebDepots.msd



Publish to ArcGIS
Server


The ArcGIS Server and Service Name should already be selected.
Choose to Create a new folder if this is the first time publishing the map. Name the folder
appropriately. Click Finish



Map Service Publishing Options
-

Anti
-
Aliasing: None, Text Anti
-
Aliasing: Force.

10)

Save the MXD and
Exit.

Task: Create
main
config files for web map

Steps:

1)

Open the “prod” folder located under “myweb” in the U: drive.

2)

Locate the file: “config.xml”. Right click on it and select Edit.

3)

Under < operationllayers>, create ano
ther layer tag by inserting this code.




The
label

is the name of the layer




Type

is the type of layer.
Dynamic
means that the layer is a non
-
cached ArcGIS map service



Visible
states whether the layer is visible when the map is first open



Alpha

adjusts the transparency of the layer. The value can range from 0.0=transparent, to
1.0=opaque.



url

is the URL address of the map service.



Sublayer id

is the number of the sublayer within the map service

4)

Save edits, and close the file.

Task: Create
popups for Depots and Buildings

Steps:

1)

Open the “popups” folder located at: U:myweb
\
prod
\
popups

2)

Create a new .xml file. Insert this code:








title

displays the title for the pop window. By using {

}, the “name_1” field from the attributes in
the Depots
layer is used, creating a unique title for each depot.



description

appears below the title, above the body of the popup window.



Field name

describes which fields from the Depots layer will be used. The
alias

is an alternate
name for the
name

field. The
vis
ible

field default value is false.



Showattachments

has a default value of false



Medias

is used whenever charts or images are wanted in the popup



Chartfields
displays the field names in the chart. Leaving this blank results in no chart being
formed.



Type
d
esignates the type of media being displayed. Can be chart or image.



Caption
is the caption that displays below the media.



Imagesource
is the address of the image being displayed.

3)

Save this file as PopUp_Depots.xml

4)

Create another new .xml file. Insert this

code:







5)

Save this file as PopUp_RecycleBuildings.xml