ages presentation on web, python, django and geoserver

Download AGES Presentation on Web, Python, Django and GeoServer

If you can't read please download the document

Upload: ngeno-victor

Post on 14-Aug-2015

236 views

Category:

Engineering


8 download

TRANSCRIPT

  1. 1. Python & Web Beginners Tuitorial Association Of Geomatic Engineering Students - JKUAT By Victor
  2. 2. @NGENO-2015 SECTION 1: PYTHON SECTION 1: PYTHON
  3. 3. @NGENO-2015 Software Installations Python 2.7.* Print Hello Create new file vs working from shell Print Hello from cmd Setting Python to system path
  4. 4. @NGENO-2015 Importance of Python Why learn python? Simple syntax and language. Allows one to actually dwell more on the functionality of the code rather than the syntax rules of the code. Python is high level language goes through interpreter then compiler to get solution. Automatic of tasks Change of projection pyproj Select Data Downloading content Download landsat satellite images
  5. 5. @NGENO-2015 Importance of Python Software development GUI Qt, Tinker Py2exe Py2web Database tools mysql
  6. 6. @NGENO-2015 Python Libraries: For GIS GDAL/OGR read and write geospatial data. Understand all(most) geospatial formats Shapely - manipulation and analysis of two- dimensional geospatial geometries. Point, line, polygons. Mapnik - visualizing Pyproj - projections
  7. 7. @NGENO-2015 SECTION 2: WEB DEV
  8. 8. @NGENO-2015 TOOLS Server (host) W.L.XAMP, OpenGEOSuite, GeoServer, Bitnami, FTP software- FileZilla Web dev framework Code igniter Django Adobe Dreamweaver Balsamiq Mockups
  9. 9. @NGENO-2015 PROGRAMMING LANGUAGES .html - Hyper Text Markup Language .js Javascript .php server side scripting language .css Cascading Style Sheets .py Python (Django) Ruby on Rails
  10. 10. @NGENO-2015 LOCAL HOSTING Run Wamp Server Ensure icon turns green Settings for database in phpmyadmin app directory config.inc.php Access via localhost address Create new mysql database Host directory Host codeigniter as a user website
  11. 11. @NGENO-2015 Moving Online Buying a domain Namecheap.com Buying hosting space Capabilities: Storage, bandwidth, Applications(shell, linux, django, geoserver) Support Cost Access public files via ftp Demonstrate
  12. 12. @NGENO-2015 Learning Websites W3schools Codecademy Codewars Documentation from official websites
  13. 13. @NGENO-2015 GEOSERVER Links https://www.youtube.com/watch?v=FiH4K1NLOZA
  14. 14. @NGENO-2015 GEOSERVER During installation mark port number, login details Access through http://localhost:port_number/geoserver/web Create new workspace New Store Several choices pick depending on the use Chose Directory- for our case Copy data into the geoserver data directory as shown in the server status. Click on publish and provide the projection(srs) Declare bounding boxes by computing from data and the compute from native bounds Click layer preview and then openlayers for it to launch on browser
  15. 15. @NGENO-2015 GOING ONLINE WITH GEOSERVER https://www.acugis.com/geoserver-hosting.htm https://www.w ebfaction.com
  16. 16. @NGENO-2015 DJANGO Install django python -m pip install django Example Open cmd prompt Cd to project directory django-admin.py startproject mysite ls to see all files and cd to subdirectories Go to project main directory and run: manage.py runserver Did yours work??
  17. 17. @NGENO-2015 Check Out Google App Engine Geodjango OpenGeoSuite Github Djangogirls
  18. 18. @NGENO-2015 Tutorials Attached Rapid.GUI.Programming.with.Python.and.Qt.O ct.2007 Python-geospatial-development-second-edition python_web_development_with_django Data Structures and Algorithms in Python byte_of_python_v192 Mastering GeoServer PDF GeoServer Beginner's Guide Geoserver Tutorial-How to Publish Shape Files to GeoServer (video)
  19. 19. @NGENO-2015 Thank You NGENO Victor Kipkoech JKUAT Undergraduate [email protected] +254721717141 www.ngeno.space (kitchen mode)