This is a fork of and builds upon the work of Eddie Webb's search and Matthew Daly's search explorations.
It's built for the Hugo static site generator, but could be adopted to function with any json index.
To see it in action, go to craigmod.com and press CMD-/
and start typing.
/* | |
To compile: | |
first, get a version of geos and put it in `geos` relative path. then... | |
cd geos | |
emconfigure ./configure | |
emmake make | |
cd .. | |
emcc \ | |
-s EXPORTED_FUNCTIONS='["_get_voronoi"]' \ |
This little trick derives from the fact that the from_postgis
class method is not really specific to postgis at all;
it will work with sqlalchmey or dbapi2 connections.
However, there are some peculiarities with spatialite
that prevent this from being as simple as one might hope. There are two options:
-
The
pysqlite2
driver works great for vanilla sqlite3 databases but spatialite requires loading an extension. In order to load extensions, you need to install a patched version and do some manual loading of the shared library. (seethe_pysqlite2_way.py
) -
A better alternative is to use
pyspatialite
but installation is also a bit funky. I had to install from the current git master instead of the pypi version. The extension is loaded automatically. (seethe_pyspatialite_way.py
)
#!/bin/bash | |
f2py -c -m deeming periodogram.f90 -lgomp | |
f2py -c -m deemingomp periodogram.f90 --f90flags="-fopenmp " -lgomp |