OED Documentation
Map Management
Version V0.6.0
Documentation overview
Admin documentation
Information
Site Management
Data Acquisition
Site Installation
User documentation
Documentation versions for this page
These features are only available to select people who oversee the OED site (called admins) so this information is not usually of interest to a general user.
Overview
See the map graphic page for general information on OED and maps. Note that unlike many systems, using maps in OED does not require any additional software nor the use of GIS. Instead, you load a graphical image you want to use as a map. This can be anything from a real map, a stylized graphic with buildings and features of interest to an arbitrary graphic. Once loaded, you calibrate this map by informing OED about a few GPS coordinates for items on the map. OED will automatically allow users to place meters on a graph as long as you have input the GPS data for that meter. OED allows sites to have as many maps as they wish and maps can overlap. For example, you could have maps with two different sites and a map that zooms in to show details of one of the sites.
This greatly simplified system is based on a simple assumption that the map is flat. In actuality, the world is a sphere so that it is curved. However, over modest distances, it is effectively flat. This is why local maps don't appear warped but ones of the entire global make some areas look much larger than they really are. Since most maps involving a site are over very modest distances this works very well. If you want a large geographical area map then see circle placement below on making this work. Note that you can have different maps that are very far apart without any issue. It is only a single map covering a large area that causes issues.
Usage
If you click on the "Maps" button in the top, right of the main OED screen you will go to the maps page shown below. This shows the page when no maps are on the site. Click the blue "Create a Map" button to begin the process of uploading a map.
You should now be on the page shown below. Click on the "Browse ..." button (highlighted with a blue box) to open a standard web browser pop up to select a file. Choose the graphical image of your map. Note the image can be of types JPEG or PNG (the file extension does not matter but the contents must be one of these two image types). OED will allow you to choose other types of files and tell you the upload is complete but you will find the file image does not appear on the next step. There are many programs/apps that will allow you to convert to one of these two types of graphical images. Once you have uploaded the map image, use the box immediately below (labeled "Define a name for the map:") to name your map. Note this is the name that a user will see (it can be edited later). When you are ready, click the "Save and continue" button to complete this step.
You should then see the confirmation popup shown below. Click "OK" to continue the process.
You should now be on the map calibration page shown below. This page allows you to enter the GPS coordinates for places on the map so OED can map locations on the map to locations on the globe (world map). You should place your curser that will appear as a "+" symbol at the point on the map that you wish to enter the GPS coordinate for. As you move your mouse, you will see the x and y coordinates on the map grid which span from 300 in the x-direction to 500 in the y-direction. These can be less depending on the aspect ratio of your map since they might be clipped in one direction to make the map fit the grid coordinate system. In the figure below, the cursor was placed at grid coordinate (277, 461) and then the mouse was clicked. (Unfortunately the image cannot pick up the "+" where the cursor was located.) This point was chosen since we assume that in a real situation we knew the GPS coordinate for the top, right corner of the "Swimming Pool" building in the image.
As shown in the figure above, when that point was clicked, a message appeared below the map (inside the blue box used for highlighting) that says "input GPS coordinate that corresponds to the point: x: 277, y: 461 in this format -> latitude,longitude". This confirms that the coordinate clicked was (277, 461). As the message states, you need to enter the GPS coordinate for this point on the map as a latitude, longitude pair separated by a comma. This is a common format for GPS coordinates but do not include parentheses when you enter the GPS value such as they are written above. You enter the GPS value in the box below this message. For this example, the GPS coordinate entered was 27.704475876832863, 85.31428805756381. The box where this was entered is inside the blue box used for highlighting as shown in the next figure.
Once complete, you click the "Submit" button below the box for GPS (inside the blue box used for highlighting). This leads to the figure below. The text at the bottom of the web browser window, "result: Need more points" (highlighted with a blue box) indicates the result. It is stating that there are too few points to complete the calibration. OED needs a minimum of three points to calculate the error and possibly complete the calibration. Also note that the message will change the GPS value to "undefined" so it becomes "input GPS coordinate that corresponds to the point: undefined in this format -> latitude,longitude" after you submit a point. This is to indicate that a new point has yet to be chosen.
You now need to repeat the steps above to enter more calibration points. You can click anywhere on the map where you know the GPS coordinates. It is okay to click more than once to replace the point clicked with a new one as long as it is before you "Submit" the GPS value. See below for suggestions on points to use and how to get the GPS coordinates for points on the map. Once you have entered at least three calibration points, OED will give you an estimate of the overall calibration result (inside the blue box used for highlighting in the figure below).
In this example, the result is "result: x: 0.003% y: 0.007%" (inside the blue box used for highlighting in the figure above). If you are satisfied with the result, you click the "Save changes to database" (inside the blue box used for highlighting). See below for a discussion of the Calibration Result. If at any time you want to begin the calibration process again, you can click the "Restart" button. If the calibration is a little worse than you want, you can try to add more points to improve the error but this is not guaranteed to work. Once you save the calibration, you are taken to the Admin Map Viewing page that is shown below for a single map. If you want users to be able to see the map then make sure "Display Enabled" is shown. It is best to verify that items are showing up in the correct places before you reveal the map to users. Note you can recalibrate a map from this page.
Once you set the GPS of meters, you can see their values on the map. (See the map graphing page for more information.) If you find that the circles are not showing up at the desired points, then see the section on circle placement issues below.
You can repeat this process for as many maps as you want.
Choosing calibration points and finding the GPS value
OED uses the distance between calibration points to determine the quality of the points (called the "result" above). Spreading the points around the map increases the distance between the points. This is more likely to lead to correct placement of points around the entire map. If possible this should be done but not if it means you cannot get accurate GPS values for each calibration point entered.
You can determine the GPS value of the calibration points in any way you wish. A way that is often accurate and easy is to use an online mapping site that contains an image that allows you to locate the same points that are contained in the image you will use inside OED. You can then click on that point on the map to get the GPS value. While OED does not endorse any particular online map, a popular one is Google Maps. With this you can left click on any point on a map to reveal information about that point. The first one is the GPS coordinates. If you right click on the GPS coordinate it will copy it to your clipboard. You can then paste this value into the OED box to input GPS coordinates during the calibration steps described above. Another technique is to physically go to the point on the map and use a cell phone application that shows your current GPS location. Whatever technique you use, it is important to get accurate values so your calibration is of high quality.
Calibration result
OED gives a result that gives an idea of how far off the calibration points are from each other. This can give you an idea of how accurately OED will place circles on the map. For example, three calibration points were entered on the map above where each one was changed by +/- 5 in the fourth digit. Thus, 27.2 became either 26.15 (27.2 - 0.05) or 27.25 (27.2 + 0.05). Another example would be 2.7 would become either 2.605 (2.7 - 0.005) or 2.705 (2.7 + 0.005). This is a 5 part in 10,000 error or 0.05%. This lead to a result of "result: x: 0.003% y: 0.007%" which is a smaller percent error than the deviation of any x or y value (0.05%). This is the example used in the figure below. If you map circles that should be directly on "Play Place" and "Theater" you get the following.
As shown, the circles are a little below the building but still clear about their placement. If we change so that the each value is +/- 0.1 then the result is much worse. This would mean that the GPS value is uncertain in the first decimal place so the error magnitude is the same for each point (not the percent). This means that the value 2.7 is either 2.8 or 2.6. The result is "result: x: 299% y: 0.002%". The result of mapping is shown in the next figure where "Play Place" is now off the map.
What should be noted is that modest percent errors (here 0.299%) in any coordinate is likely to lead to significant placement issues. When this happens, you need to recalibrate the map.
There are many possible reasons that the calibration might be off and we discuss several now. First, it is easy to type in the wrong value for a point. If this happens then correctly reentering the calibration values again will fix the issue. Second, a value for a calibration point is wrong. While a similar result to the first issue, it means rechecking each point to see which one(s) might be off. Third, the accuracy of the points is too low. This requires using another technique to get the values. This can happen, for example, if the map you used to get the GPS coordinates has features placed at a different location than on the map you uploaded to OED. It could also happen because manually read GPS values (such as going to a place and using the value shown of your cell phone) are off. This is due to the inherent accuracy of the device in getting the GPS coordinate or standing in the correct location. While many issues can happen, the OED project found that getting the correct value is usually possible and led to good placement on the map. Getting a good calibration is the easiest way to place items on the map. See the next section for ideas on fixing poor placement of the circles on the map.
Circle placement issues
If you have done the best you can to calibrate the map but you still have circle(s) in the wrong place then you can manually fix them in the meter GPS value. OED only uses the GPS value for placing items on maps so fudging this value does not have other consequences or lead to incorrect results. The calibration for the map above was changed to deliberately enter errors by using four calibration points that were off ("result x: 0.413% y: 0.019%"). The next figure shows that "Place Play" is now a little low but way too far to the right and "Theater" is a little low and to the right.
We begin by trying to fix "Theater" that is not as far off. Its actual GPS value is "26.67, 25.0". By using the Admin Map Viewing page, the GPS value was changed. The fact that the circle is too low indicates the latitude needs to be larger and the fact that it is to the right indicates the longitude needs to be smaller. A handful of tries found a pretty good GPS value was (29.25, 12.0). Note that once you update a meter GPS, you can go the the map graphing page and it will show the updated location of any circles. Figuring out the needed change in this GPS value gave an idea of how much changing each value moved the circle. For "Play Place", the actual GPS value was (41.67, 8.33). A few tries found that (42.2, -145) worked well. As expected the latitude only needed a small change but the longitude needed a significant change. The final result is show in the next figure.
One thing to note is that this process is only done once when a new map is loaded. After that, any user will see the correct result.
There are circumstance that can make it impossible to modify the meter GPS to get it in the correct place on the map. One is if the needed correction means the GPS value goes outside allowed values then OED will not allow the entry of this GPS value. This should only happen if the calibration is off significantly and should be rectified if the map calibration is redone with greater accuracy. A second is if two maps overlap in area so changing the GPS of a meter causes one map to be fine but another now has it in the wrong place. Proper calibration is the solution in this case.
Details
Current limitations
OED version 0.6 introduced maps. To get them out to sites, we rolled them out even though they have some known limitations. We are actively working to implement the desired features and expect them to be available in upcoming releases. The known limitations are:
- You cannot place a group on a map. The planned changes will give admins the ability to give a group GPS coordinates and users to place on a map.
- The map graphic must be oriented so true north (not magnetic north) is perfectly vertical so there is no angle between the map image and true north. We plan to rectify this soon and allow a map with any rotation angle to true north.