Installation guide
34
This webpage represents OSM map, editable vectors, position dot, switch layers, and scale
bar, all of which are created by OpenLayers in the <script></script>. Study this part
since it can be useful for your final project.
This webpage includes three interfaces of username, userlat, and userlon, as it is
represented below. It is used for getting values from the database.
<%=(String) session.getAttribute("username")%>
<%=(String) session.getAttribute("userlat")%>
<%=(String) session.getAttribute("userlon")%>
You can personally develop functions of Servlet, JavaBeans, and database access for
physically passing three values (username, userlat, userlon) from database to the JSP
webpage, by using the same logical methodology as illustrated in Section 1. Or you can get
further help from the teaching assistant. (This is an optional task.s)
Test drawing editable vectors on your physical mobile.
Section 3 – Optional Task on WFS
Task in this section is optional, since Web Feature Service (WFS) is an advanced Web GIS
application, and hence is more difficulty; while it can be a good reference to your final project.
Here is the web tutorial:
http://www.gistutor.com/openlayers/22-advanced-openlayers-tutorials/47-openlayers-wfs-t-usi
ng-a-geoserver-hosted-postgis-layer.html (Last Accessed 2012/9/26).
WFS enables you draw, edit, and save the modified geometrics in the database.
You may use other data set, but ensure the projection is used correctly.
Also test WFS on the physical mobile web browser, if you implement it successfully.
Look into the statement of OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=", if errors or
exceptions still occur at last.
25. Report
Put some typical screenshots in your report for step of the lab, and give some explanations with
codes. Submit your report not later than Oct 8 in Blida.