1 Tutorial for Course of Web and Mobile GIS Autumn 2012 Rui Zhu School of Architecture and the Built Environment Royal Institute of Tec
10 c. Path: Add a path in the map. 6.2. Google Maps JavaScript API V3. There are three Google official web pages that you can referenc
11 AG2417 Web and Mobile GIS Autumn 2012 Rui Zhu and Gyözö Gidófalvi Lab 3&4: Open Source Solution: OpenLayers + GeoServer + PostGIS Due
12 and moving). Throughout the exercise you will make modifications to your VM, i.e., you will configure settings and services, and in
13 Figure 2. Name and Namespace URI of a New Workspace 10.3. Create a New Store Click Stores (in the Data set), then click Add new Stores. You will
14 11. GeoServer with OpenLayers “OpenLayers is a pure JavaScript library for displaying map data in most modern web browsers, with no server-side
15 to the map: // Initialize WMS layer from our local GeoServer buildings = new OpenLayers.Layer.WMS( "Medford Buildings
16 Figure 3. Structure of PostgreSQL 9.0 Tips: You may use Quantum GIS or shp2sql for importing shapefile into the database in the fu
17 AG2417 Web and Mobile GIS Autumn 2012 Rui Zhu and Gyözö Gidófalvi Lab 5: ArcGIS Server Due Sep 25 14. Guides and Help Virtual Machine for
18 16. Add More Functionality to Your Map Search ArcGIS server help for Geocoding and ArcGIS desktop help for Geocoding tutorial to lear
19 17. Geoprocessing service This lab section works with the data in folder Sweden. 17.1. Create a Toolbox and a Map Document Start ArcCatalog
2 AG2417 Web and Mobile GIS Autumn 2012 Rui Zhu and Gyözö Gidófalvi Lab 1: Design a Dynamic Map Due Sep 7 1. Task The aim of this lab is to
20 Save and close model Save your map document as yournameSweden.mxd 4.3. Test the Model Double-click on your tool in the ArcToolbox wind
21 AG2417 Web and Mobile GIS Autumn 2012 Rui Zhu and Gyözö Gidófalvi Lab 6: ESRI Mobile Solutions Due Oct 2 20. Task In this lab you wil
22 Do NOT download it from Amazon unless you have a payment address in USA, which is required in the last step for downloading (even though
23 If you come across the warning that Port 8080 is already in use, type services.msc in Run and click OK. Right click Apache Tomcat 7.0 to
24 Type cmd in Run and hit Enter. Once the box opens type ipconfig /all and hit Enter. Write down your current IP Address that you see. We are goi
25 AG2417 Web and Mobile GIS Autumn 2012 Rui Zhu and Gyözö Gidófalvi Lab 7: Locate Your Current Position with Android Built-in GPS Due Oct 4
26 Folder of res stores all the resources which your application needs, like layout files, images, sounds and so on. Put the mouse on Test.
27 the content of the page to a .txt file for later usage. Link-1: http://code.google.com/android/maps-api-signup.html 1.3. Edit res/layout/activi
28 mapView.setSatellite(false); //get map controller mapController = mapView.getController(); //set the initial zoom level mapController.setZoom(10);
29 Define three variables in the public class of MainActivity in the MainActivity.java. private MapController mapController; private MapView mapVi
3 </body> </html> Now create a root folder of images under WebContent, copy kth.png and kth_rgb.jpg into images, and refres
30 Section 3 – Locate Your Position with Built-in GPS Use built-in Android GPS by copying the following code in the class of public void onCreate
31 mapView.getProjection().toPixels(point, screenPoint); Bitmap bmp BitmapFactory.decodeResource(getResources(),R.drawable.dot);
32 AG2417 Web and Mobile GIS Autumn 2012 Rui Zhu and Gyözö Gidófalvi Lab 8: Combination of a Dynamic Website and an Android app Due Oct 8 24.
33 com.demo.mobile -> New -> Class, fill Location (JavaBeans) in the Name: field, click Finish. Modify Location.java as it is show
34 This webpage represents OSM map, editable vectors, position dot, switch layers, and scale bar, all of which are created by OpenLayers
35 Appendix-1 // MyLocationListner class MyLocationListener implements LocationListener { public void onLocationChanged(Location loc) {
36 { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { e.printStackT
37 password = "123456"; /* Be intelligent, you will understand that the following two statements * are used for gettin
38 { Location location = new Location(); location.getLocation(request, response); }//end of if location } /** * @see Http
39 DataOutputStream dos = new DataOutputStream(response.getOutputStream()); dos.writeUTF("Succeed"); try { connect =
4 As a last step, to edit the appearance of text, write the following code into the style.css file and change the only <div> element to <di
40 public static void releaseConnection( Connection c) { if(c != null) { try { c.close(); } catch (SQL
41 <link rel="stylesheet" type="text/css" href="style.css" /> <script src="http://www.openlayers.org/api
42 var zoom = 12; // Add layers map.addLayers([mapnik,vector_layer2,vector_layer]); // Add a vec
43 <div id="content2"> <div id="basicMap"></div> </div> <!-- END content --> <!-- BEGI
44 Division of Geodesy and Geoinformatics Department of Urban Planning and Environment Royal Institute of Technology – KTH Course of AG241
45 You can also install installer_r20.0.1-windows in the Virtual Machine of C:\software. Keep the initial routing of C:\Program Files
46 2.3. Now you will see Android SDK Manager and AVD Manager, as it is shown in the two red boxes below. To be safe for the later labs (some confli
47 2.4. In the AVD Manager, click New… button, set Name: Android, Target: Android 2.1 – API Level 7, Built-in: WQVGA432, and lastly click Create AV
48 3. Apache Tomcat Installation You can download Apache Tomcat from http://tomcat.apache.org/. Or you can install apache-tomcat-7.0.26
5 //Add the world street map layer to the map. View the ArcGIS Online site for services http://arcgisonline/home/search.html?t=content&
50 4. PostgreSQL Installation You can download PostGIS from http://postgis.refractions.net/download/. Or you can install postgresql-8.4.11-1-wind
51
52 5. PostGIS Installation When you click Finish button of PostgreSQL, installation for PostGIS jumps out. Select the particular server of Postgre
53
55 6. GeoServer Installation You can download GeoServer from http://geoserver.org/display/GEOS/Download. Or you can install geoserver-2.1.3a from
57
58 7. OpenLayers “Installation” In fact you do not have to install OpenLayers. Download Latest stable release vision [.zip] from
6 through standard map navigation controls. Another simple way to make a static map more interactive is by linking information to
7 Do similar thing to at least 4 other interesting buildings. These buildings will be linked to the website of a school occupying
9 AG2417 Web and Mobile GIS Autumn 2012 Rui Zhu and Gyözö Gidófalvi Lab 2: Create Web Maps with Google Mapping Tools Due Sep 11 4. Task The
Comentarios a estos manuales