Installing GDAL/OGR for Python on Windows is now even easier!
For some reason it is insanely difficult to use Spatialite from Python on Windows. In theory the following should create and connect to an in-memory database, then load the Spatialite extension (after mod_spatialite and friends have been put somewhere and added to your system Path):
import sqlite3 with sqlite3.connect(':memory:') as conn: conn.enable_load_extension(True) conn.execute("SELECT load_extension('mod_spatialite')")
However, this fails stating:
OperationalError: The specified module could not be found.
A simple CherryPy RESTful JSON server
ArcGIS installs its own version of Python that is not officially registered with the system but can in reality be used just like a normal install. I personally prefer just to use this as my primary Python, but it is not always possible. The instructions below can help you let a different Python install access and use Arcpy Continue reading
The purpose of this series is not to give you a one line example that you can copy and paste to your code, but step through the process and make the underlying principles clear. Continue reading
To access the Python interpreter and run Python scripts you need to know the location of python.exe for your installation. To make running scripts easier you may wish to add this location to your system Path, either temporarily or permanently. This post describes how to do each of these as well as some general considerations. Continue reading
This was actually surprisingly easy to do. The hardest part is logging in to your SMTP server (well, finding all the specific details you need to know to do so); fortunately it’s pretty straightforward for Gmail. Continue reading