STATIC MAPPING SOLUTIONS - These are three brief activities involving Internet mapping using static maps. The first is a mini-example of a map distribution web site, the second uses the HTML version of mapping where polygons are added to map images and URLS linked to those polygons, and finally a composite data and image page created through ArcMap and/or MS Access. None should take more than a half hour and each results in a URL which you are to e-mail me so I can check it.
CREATING A STATIC MAP DISTRIBUTION WEB PAGE
A significant proportion of all Internet users when they think about the Internet and mapping just want a site they can go to, download an existing map and print it out. After all, a lot of map use (if not most) takes place away from a computer. These people have no interest in fancy tools and buttons, they just want a map.
Task - Imagine you are the GIS technician for a regional planning agency and you have created a region-wide map for the state-required regional plan of conservation and development. As part of the public information and participation process you have been told to create a web page that will give the public access to the draft maps for comment. The maps you are going to use are not perfect, e.g. they have have no street names on them which will make it difficult for the public to make comments such as..."northwest of the intersection of Broad and Main you have proposed a classification of __________________. This is entirely too high a level of proposed development for this sensitive area."
Rather than have you do an entire RPO of 15-20 towns go to N:\int_gis_map\labs\static_mapping and copy the three PDF maps in there (New Britain, Plainville, Bristol) into a folder in your studata workspace. You are going to build a simple html file with Front Page with a table containing links to these maps for downloading. A simple example is at http://cfd312014.students.ccsu.edu/website/Regional_plan/map_access_page__regional_plan.htm but you should make your own.
Some FrontPage Hints:
E-mail me the URL when you have completed this part of the activity.
AN HTML MAP WITH GEO-HTML
In html (Hyper Text Markup Language) there is a <MAP> element that allows you to assign a URL to a mapped out section of a graphic image. The <MAP> need not actually be a map; it can be any graphic file, jpeg, bmp, gif, etc.. that a browser will recognize and display.
The <MAP> element has one required attribute, its name. So a <MAP> element is opened with a statement like this:
<MAP NAME="mtn_states">
The various areas on the map are defined with <AREA> statements and each has the following attributes
| Syntax | <AREA> |
|---|---|
| Attribute Specifications |
|
The SHAPE attribute describes the type of shape and rectangle is the default. When using real maps as <MAP> elements it will usually be poly. Points would have to be represented by circles and lines by skinny polygons.
COORDS are the coordinates of the area expressed in screen units. These are not the map coordinates but the graphic screen coordinates when the area was created. They are expressed like this:
COORDS="x1, y1, x2, y2, ..., xN, yN".
Because polygons must close the first and last pair of x/y values must be the same and the points go either clockwise or counter-clockwise around the polygon.
HREF is the linked resource you want people to go to when they click on that <AREA> of the <MAP>. If they are to go nowhere NOHREF must be in the <AREA> element.
Here is a map element with <AREA> elements from a web map at http://www.geography.ccsu.edu/harmonj/int_gis/geo_html/some_gis_resources.htm
<IMG SRC="mtn_states.jpg" USEMAP="#mtn_states" width=686 height=471 BORDER="0">
<MAP NAME="mtn_states">
<AREA ID="Idaho" SHAPE="POLY" HREF="http://www.idwr.state.id.us/gisdata/gis_data.htm" ALT="Idaho GIS Data - Dept of Water Resources" COORDS="229,191, 276,203, 326,212, 335,156, 300,154, 289,124, 289,98, 273,65, 278,41, 264,39, 248,96, 252,114, 247,122, 235,140, 236,150, 227,192, 229,191">
<AREA ID="Nevada" SHAPE="POLY" HREF="http://www.nbmg.unr.edu/geoinfo/geoinfo.htm" ALT="Virtual Clearinghous for Nevada Geographic Information" COORDS="178,180, 219,191, 277,204, 253,318, 248,338, 240,334, 234,360, 160,244, 179,179, 178,180">
<AREA ID="Utah" SHAPE="POLY" HREF="http://agrc.its.state.ut.us/" ALT="State of Utah - Automated Geographic Reference Center" COORDS="278,204, 325,212, 325,239, 358,243, 345,332, 256,312, 277,200, 278,204">
<AREA ID="Arizona" SHAPE="POLY" HREF="http://www.asu.edu/lib/hayden/govdocs/maps/azgisdata.htm" ALT="GIS Data for Arizona" COORDS="257,317, 306,325, 343,333, 324,459, 290,454, 222,415, 226,409, 224,402, 224,393, 230,387, 233,381, 240,376, 236,365, 236,359, 239,347, 239,333, 247,337, 251,326, 255,316, 257,317">
<AREA ID="New Mexico" SHAPE="POLY" HREF="http://rgis.unm.edu/" ALT="New Mexico Resource Geographic Information System Program" COORDS="345,335, 453,342, 443,457, 373,449, 375,453, 345,451, 342,459, 326,457, 344,335, 345,335">
<AREA ID="Colorado" SHAPE="POLY" HREF="http://www.colorado.edu/geography/cgdc/cgdc.html" ALT="Colorado Geospatial Data Clearinghouse" COORDS="359,242, 478,254, 471,342, 345,332, 361,243, 359,242">
<AREA ID="Wyoming" SHAPE="POLY" HREF="http://www.sdvc.uwyo.edu/clearinghouse/" ALT="Wyoming Geographic Information Science Center" COORDS="341,146, 452,159, 443,251, 323,237, 337,146, 341,146">
<AREA ID="Montana" SHAPE="POLY" HREF="http://nris.state.mt.us/gis/default.htm" ALT="Montana Resource Information System" COORDS="278,40, 347,56, 456,68, 449,159, 343,145, 334,153, 316,154, 299,154, 290,124, 290,100, 280,77, 274,63, 279,39, 278,40">
</MAP>
The <IMG> tag preceding it is the image over which the map was drawn. This image was produced by ArcView GIS 3.3 and exported as a jpeg file. ArcGIS allows export to other usable graphic file formats as well. This style of internet mapping uses no data but creates a map on top of static graphic output, in this case, a graphic of the Mountain states region.
PRODUCING THE <MAP> ELEMENT
There are lots of freeware products on the web to create these map tags over an image. We use a product called geo_html. Go to their website (it's in Russia) at http://www.fegi.ru/geohtml/ and download and install unless it is already on your machine.
In ArcMap pick a four state area and using the data at c:\esri\esridata\usa, create a shapefile of your four or five states, give it a projection, export it, bring in just those states to the data frame, symbolize them with a color, put labels on and export it as a GIF file. I have found that using no borders on the polygons work better, particularly if you are likely to shrink the map to fit in a small spot on the web page. The export is at whatever size it is on the screen.
Open geo-html and from the File menu go to New Map. Browse to your GIF file and bring it in. If you want to make it smaller by changing the width and height values do it here - keep the aspect ratio by dividing the original numbers by the same value, e.g. 2.Pick up the irregular polygon tool on the second bar and begin clicking around your first state polygon. You do not have to exactly match the borders, just come close. The polygon you are digitizing over the image does not appear on the web page. Double click to complete a polygon. Once you have done all your states click on the HTML Source tab.
Here is one I prepared for KY, TN, NC and SC.
<!-- This document was created with GeoHTML 2.1 (http://www.fegi.ru/geohtml/) -->
<HTML>
<HEAD>
<TITLE>untitled</TITLE>
</HEAD>
<BODY>
<IMG SRC="C:\temp\five_states.jpg" USEMAP="#Map1" WIDTH=430 HEIGHT=306 BORDER="0">
<IMG SRC="C:\temp\five_states.jpg" USEMAP="#five_states" WIDTH=430 HEIGHT=306 BORDER="0">
<MAP NAME="five_states">
</MAP>
<MAP NAME="Map1">
<AREA SHAPE="POLY" HREF="#" COORDS="243,186, 315,173, 391,156, 412,187, 401,210, 385,221, 371,226, 356,244, 352,257, 338,258, 302,233, 276,239, 269,232, 263,227, 230,234, 218,241, 181,245, 192,223, 211,214, 224,203, 231,203, 244,183, 243,186">
<AREA SHAPE="POLY" HREF="#" COORDS="239,185, 73,200, 77,206, 39,207, 21,260, 180,246, 184,236, 195,223, 207,217, 214,212, 223,204, 231,201, 233,197, 237,191, 238,188, 240,183, 239,185">
<AREA SHAPE="POLY" HREF="#" COORDS="192,190, 256,182, 331,169, 391,156, 386,147, 377,142, 385,135, 393,107, 374,117, 366,111, 355,105, 349,105, 340,104, 341,97, 347,91, 338,84, 332,81, 332,77, 326,76, 325,80, 314,76, 306,97, 292,112, 283,111, 279,130, 272,146, 256,161, 243,161, 234,163, 224,160, 193,189, 192,190">
<AREA SHAPE="POLY" HREF="#" COORDS="153,109, 160,113, 167,121, 179,123, 187,122, 197,122, 198,121, 210,125, 209,127, 209,130, 210,139, 217,146, 217,150, 228,158, 225,160, 211,173, 192,190, 74,200, 76,206, 44,205, 47,195, 46,191, 50,184, 64,189, 62,178, 73,172, 71,168, 85,159, 95,162, 102,155, 110,159, 112,150, 123,151, 127,144, 140,130, 139,125, 147,125, 151,120, 152,111, 153,109">
<AREA SHAPE="POLY" HREF="#" COORDS="210,131, 218,116, 230,108, 230,95, 239,87, 241,83, 246,77, 247,69, 248,62, 247,54, 247,46, 250,55, 261,74, 281,72, 285,84, 292,79, 299,73, 308,66, 320,66, 327,73, 325,81, 313,76, 307,90, 304,99, 298,104, 294,110, 293,114, 290,114, 285,110, 274,131, 272,144, 267,150, 261,155, 257,159, 247,161, 235,162, 232,161, 216,154, 216,147, 208,136, 208,131, 210,131">
</MAP>
</BODY>
</HTML>
Notice there is a place holder "#" in the HREF = attribute. This is where the URL will go.
To find the principal GIS URL for your states go to http://www.nsgic.org/states/index.cfm at the National States Geographic Information Council and paste your states' clearinghouse URLs into an instance of Notepad.
In Geo-html click the L button (Object List) and the Object List will appear in a box

When you highlight a PolyArea its outline will appear on the image. You can change the name of the poly area to the state at this point. Then click the I button (Area Inspector)

Alt - this is what appears when you move over the polygon; it is what computers with software for the blind "read" and tell the user what they are over.
Coords - these are what you have digitized - in screen pixels not real world coordinates
Href - enter your state's clearinghouse URL here. I am really sorry but cutting and pasting does not work in this text box and you will have to type it in from the Notepad file.
Id - this is what you just named it.
Fill this in for each of your states.
When that is done, in Front Page open N:\int_gis_map\labs\geohtml\geospatial_data_clearing_houses.htm and save it to your studata folder for this activity. Replace the YOUR NAME HERE with your name and inside this <td> element
<td width="50%">YOUR
<IMG> AND <MAP> ELEMENTS HERE </td>you paste material from the HTML source in your Geo-html window. All you need is the <IMG> and <MAP> elements; do not copy the rest of the stuff in. Make a folder in your c:\arcims\website folder and copy the geospatial_data_clearing_houses.htm file and the image file into it. E-mail me the web location (including your computer name) when you are done and I will take a look.
STATIC MAP AND DATA HTML PAGE
You really do not need expensive software to produce web pages with a map image and data related to the map image; you can do it with any GIS software that allows you to export tabular data as html tables and will create graphic images of the features in the table. Once you have both these elements you can insert the image into a table element in the html page to link the data with the image, at least visually. As always, there are several ways to approach this but they all have the same steps:
Of course, this is not dynamically linked to the data; it is a snapshot of when the data was exported and the map made. This is not a solution for data that changes frequently unless you automate it. Go to http://cfd312020/website/cromwell_ex/47_23-2.html for an example.
Activity
Go to n:\int_gis_map\labs\MS_FP_ex and copy the geodatabase and mxd files to your lab workspace. Open the mxd file and select a parcel to map. From File>Export choose the PNG format (Portable Network Graphics) and export it with the parcel id, e.g. 47_23_5.png; remember, no spaces in file names. Place it in a folder in your c:\arcims\website folder. You may choose which of the next two export processes you want to use:
Finally, open the htm file in Front Page and at the top, go to Insert>Picture>From File, navigate to the PNG file and size it to fit over the tabular content, Save the file and e-mail me the URL so I can open it and take a look. Try some more to get good at it - it really can be done in a minute or so.