Sunday, April 19, 2015

Installing Python GIS Libraries on Ubuntu 14.04

I'm working my way through Python Geospatial Development, which as good fortune would have it, is the book we are using in my Introduction to GIS Algorithms and Programming course at George Mason University.  At the beginning of the course we were given a VirtualBox image of Ubuntu 12.04 with all the software and data files we need for the course preloaded.  Since I'm already running Ubuntu 14.04 as my regular desktop OS, I preferred to just install the packages (all of which are in the standard debian repositories) onto my desktop machines.

Here are the libraries we are using:
  • GDAL - The Geospatial Data Abstraction Library (see Python GDAL/OGR Cookbook for Python specific "recipes") for reading and writing geospatial data (GDAL for raster, OGR for vector).
  • pyproj - Performs cartographic transformations and geodetic computations.
  • Shapely - Manipulation and analysis of geometric objects in the Cartesian plane.
  • Mapnik - Toolkit for building mapping applications.
To install them for Python 2 on Ubuntu 14.04, run the following in a unix shell:
  • $ sudo apt-get install python-gdal
  • $ sudo apt-get install python-pyproj
  • $ sudo apt-get install python-shapely
  • $ sudo apt-get install python-mapnik2
Even on Ubuntu 15.04 Mapnik is only available for Python 2.  The other three libraries (gdal, pyproj, and shapely) are all available for Python 3.  This means that I will unfortunately have to use Python 2 for my mapping project.

I've now read the first eight chapters of Python Geospatial Development, which contain all the information I'll need for my project:
  • Chapter 1 - Geospatial Development Using Python
  • Chapter 2 - GIS
  • Chapter 3 - Python Libraries for Geospatial Development
  • Chapter 4 - Sources of Geospatial Data
  • Chapter 5 - Working with Geospatial Data in Python
  • Chapter 6 - GIS in the Database
  • Chapter 7 - Working with Spatial Data
  • Chapter 8 - Using Python and Mapnik to Produce Maps
It is often quite difficult to find good books about rapidly developing technologies like this, but this book does a good job.  The material is relevant, the presentation clear, and the examples both engaging and illuminating.

With background reading done and infrastructure setup, it is time to dig into the project.

23 comments:

  1. Thanks for sharing such a great information for Python. I learned with Dive into Python, and a french version of Thinking like a computer scientist.Thank you for sharing you blog..
    Best python Training Institute in Chennai

    ReplyDelete
  2. GIS Training Program by GEOSYS ENTERPRISE SOLUTIONS PVT. LTD.

    GEOSYS ENTERPRISE SOLUTIONS PVT. LTD.
    GIS Training Institute

    Dear Trainee,

    We,GEOSYS ENTERPRISE SOLUTION PVT.LTD. are cordially inviting you for the
    training program in ArcGIS Desktop,Arc Objects,ArcGIS Server, ArcGIS Online, ArcGIS Web API for JavaScript and many other GIS courses. Our department has conducted so many training programs successfully in the above fields.
    So please utilise our training programs for their future growth.


    Courses:

    GIS-Data Development Training(ArcGIS Desktop) : 30days
    GIS – Data Development Course
    GIS-Application Development Training(Arc Objects) : 30days
    GIS – Application Development Course
    ArcGIS Server: 30days
    ArcGIS Server
    ArcGIS Online: 30days
    ArcGIS Online
    ArcGIS Web API for JavaScript: 30days

    Thanking you,

    Regards

    GEOSYS ENTERPRISE SOLUTIONs PVT. LTD.

    Contact: +919493880670, +914065522333 Email: info@geosys.co.in

    Website: www.geosys.co.in
    GIS Training

    ReplyDelete
  3. GIS Training Program by GEOSYS ENTERPRISE SOLUTIONS PVT. LTD.

    GEOSYS ENTERPRISE SOLUTIONS PVT. LTD.
    GIS Training Institute

    Dear Trainee,

    We,GEOSYS ENTERPRISE SOLUTION PVT.LTD. are cordially inviting you for the
    training program in ArcGIS Desktop,Arc Objects,ArcGIS Server, ArcGIS Online, ArcGIS Web API for JavaScript and many other GIS courses. Our department has conducted so many training programs successfully in the above fields.
    So please utilise our training programs for their future growth.


    Courses:

    GIS-Data Development Training(ArcGIS Desktop) : 30days
    GIS – Data Development Course
    GIS-Application Development Training(Arc Objects) : 30days
    GIS – Application Development Course
    ArcGIS Server: 30days
    ArcGIS Server
    ArcGIS Online: 30days
    ArcGIS Online
    ArcGIS Web API for JavaScript: 30days

    Thanking you,

    Regards

    GEOSYS ENTERPRISE SOLUTIONs PVT. LTD.

    Contact: +919493880670, +914065522333 Email: info@geosys.co.in

    Website: www.geosys.co.in
    GIS Training

    ReplyDelete
  4. the blog is about the blog is about Python programmer #Python it is useful for students and Python Developers for more updates on python follow the link

    Python Online Training

    For more info on other technologies go with below links

    tableau online training hyderabad

    ServiceNow Online Training

    mulesoft Online Training

    ReplyDelete
  5. • Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updating servicenow Online Training

    ReplyDelete
  6. Really Thanks For Posting Such a Useful Content. Really Thanks For Sharing Such an Informative Post.
    Mulesoft Certification Training

    ReplyDelete
  7. Thanks for sharing this, sure there are a number of best online Udemy courses regarding Python that can give us an idea about what Python is and how it works.

    ReplyDelete


  8. Thank you for sharing such a great information.Its really nice and informative.hope more posts from you. I also want to share some information recently i have gone through and i had find the one of the best mulesoft videos

    ReplyDelete
  9. Get the best AWS Training in Chennai from Infycle Technologies, the best software training institute, and Placement center in Chennai. We also come up with technical courses like Oracle, Java, Data Science, Big data, Python, Manual and Automation Testing, DevOps, Medical Coding etc., After completion of course, students will be able to obtain jobs from top MNC’s. For more updates call 7504633633.

    ReplyDelete
  10. If you are interested in any IT courses just look for AWS Training in Chennai from Infycle Technologies, No.1 software training in Chennai. Also a premier place to learn other technical courses like Power BI, Cyber Security, Graphic Design and Animation, Block Security, Java, Oracle, Python, Big data, Azure, Python, Manual and Automation Testing, DevOps, Medical Coding etc., with outstanding training with experienced trainers and friendly environment with 100+ Live Practical Sessions and Real-Time scenario after the completion of the course the trainee, will able to crack the interview in top MNC’s with an amazing package for more enquiry approach us on 7504633633, 7502633633.

    ReplyDelete
  11. I learned a lot from this information. Thanks you. I want to share about best micronutrients for plants

    ReplyDelete
  12. Amazing, glad realm. I would at the rear of to write down when this as well - taking time and cement hard play a situation to make a comfortable article... anyway I put things off something over the top and in no way, shape or form appear to profit started. much thanks to you despite the fact that. thanks! Driver Toolkit License Key

    ReplyDelete
  13. much obliged to you for taking the length to examine this, I have a firm opinion roughly it and commend getting to know additional going vis- On the off chance that feasible, as you benefit speed, could you considerations refreshing your weblog long past helper assessment? it's miles the total obliging for me. thanks! Download Microsoft Office 2010 Full Crack + Keygen

    ReplyDelete
  14. Took me length to door all the explanation, but I actually partook in the article. It ended up being Very respecting me not entirely settled to all the analysts here! Its consistently accessible through now you can't unmarried-handedly be educated, yet with engaged! thanks! Happy Birthday Images With Quotes

    ReplyDelete
  15. Do you want to know about Gabi DeMartino Net Worth, early life, career, age, biography, and relationship status?

    ReplyDelete
  16. Great post, thanks for sharing valuable information, keep posting. Spoken English Training In Pune

    ReplyDelete