pax_global_header 0000666 0000000 0000000 00000000064 13500016766 0014516 g ustar 00root root 0000000 0000000 52 comment=334dcd50c2abca6330ec589060d4690f6e742954
geoalchemy2-0.6.3/ 0000775 0000000 0000000 00000000000 13500016766 0013723 5 ustar 00root root 0000000 0000000 geoalchemy2-0.6.3/.coveragerc 0000664 0000000 0000000 00000000031 13500016766 0016036 0 ustar 00root root 0000000 0000000 [run]
source=geoalchemy2
geoalchemy2-0.6.3/.flake8 0000664 0000000 0000000 00000000035 13500016766 0015074 0 ustar 00root root 0000000 0000000 [flake8]
max-line-length=100
geoalchemy2-0.6.3/.gitignore 0000664 0000000 0000000 00000001025 13500016766 0015711 0 ustar 00root root 0000000 0000000 # Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# C extensions
*.so
# Distribution / packaging
.Python
env/
bin/
build/
develop-eggs/
dist/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
.tox/
.coverage
.cache
nosetests.xml
coverage.xml
# Translations
*.mo
# Mr Developer
.mr.developer.cfg
.project
.pydevproject
# Rope
.ropeproject
# Django stuff:
*.log
*.pot
# Sphinx documentation
doc/_build/
geoalchemy2-0.6.3/.travis.yml 0000664 0000000 0000000 00000004413 13500016766 0016036 0 ustar 00root root 0000000 0000000 language: python
sudo: true
dist: trusty
addons:
postgresql: 9.3
apt:
packages:
- postgresql-9.3-postgis-2.3
- python2.7-dev
- python3-dev
- autotools-dev
- libexpat1-dev
- libfreexl-dev
- libgeos-dev
- libproj-dev
- libreadline-dev
- libsqlite3-dev
- libxml2-dev
- zlib1g-dev
notifications:
email:
on_failure: change
services:
- postgresql
cache:
directories:
- libspatialite-4.3.0a
matrix:
include:
- python: 2.7
env:
- TOX_ENV=py27sqla11
- python: 3.4
env:
- TOX_ENV=py34sqla11
- python: 3.5
env:
- TOX_ENV=py35sqla11
- python: pypy
env:
- TOX_ENV=pypysqla11
env:
global:
- SPATIALITE_LIBRARY_PATH="/usr/local/lib/mod_spatialite.so"
install:
# Install Spatialite
- ./install-spatialite.sh
# Install tox
- pip install tox
# Install flake8 style checker
- pip install -r requirements.txt
before_script:
# Create database user "gis"
- psql -c "CREATE ROLE gis PASSWORD 'gis' SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;" -U postgres
# Create database "gis"
- psql -c 'CREATE DATABASE gis;' -U postgres
# Create schema "gis" into database "gis"
- psql -d gis -c 'CREATE SCHEMA gis;' -U postgres
# Grant CREATE permission on database "gis" to role "gis"
- psql -c 'GRANT CREATE ON DATABASE gis TO "gis";' -U postgres
# Grant USAGE and CREATE permission on schema "gis" to role "gis"
- psql -d gis -c 'GRANT USAGE,CREATE ON SCHEMA gis TO "gis";' -U postgres
# Add PostGIS extension to "gis" database
- psql -d gis -c 'CREATE EXTENSION postgis;' -U postgres
script:
# Run the library through flake8
- flake8 geoalchemy2 tests --ignore=E711 --ignore=W503
# Run the unit test suite
- tox -e $TOX_ENV --sitepackages -- -v --cov geoalchemy2 --cov-report term-missing
after_script:
# Report coverage results to coveralls.io
- pip install coveralls
- coveralls
deploy:
provider: pypi
distributions: "sdist bdist_wheel"
user: erilem
password:
secure: eYqYIWlsCp/awFekONU9fRKjYeleO49rzf2qWNYG3HxWvp8+1mgjLubnMTIARHiKbB6/iF3PEfGQd7+ICIi6dxWQFxWaBu7HOFaOu0wOXweNbrwhDqKrnJRJ3/2CPRTlYARr7uJhXrVTQVOIC//mEtUX7atF5EVs8fW8BM3/iT0=
on:
tags: true
repo: geoalchemy/geoalchemy2
geoalchemy2-0.6.3/CHANGES.txt 0000664 0000000 0000000 00000006435 13500016766 0015544 0 ustar 00root root 0000000 0000000 GeoAlchemy 2 Changelog
======================
0.6.3
-----
* Add some missing functions @adrien-berchet (#224)
* Do not register functions.GenericFunction for sqlalchemy>=1.3.4 @adrien-berchet (#226)
* Redefine the geometry_type/dimension consistency checks @elemoine (#228)
* Correct a spelling mistake @EdwardBetts (#229)
* Do not assume the "public" schema @elemoine (#231)
* Add all geometry constructors @adrien-berchet (#232)
0.6.2
-----
* Support WKBElement objects as bind values @elemoine (#221)
* Document the use of spatial functions in primaryjoin conditions @elemoine (#222)
0.6.1
-----
* Change WKBElement to read SRID from the EWKB string @SergeBouchut (#209)
* Change WKTElement to read SRID from the EWKT string @adrien-berchet-forcity @elemoine (#211)
0.6.0
-----
* Add AsGeoJSON for SpatiaLite @TomGoBravo @elemoine (#204)
* Remove the use_st_prefix argument and use SpatiaLite-compiled functions @elemoine (#204)
0.5.0
-----
* Add support for function ST_Azimuth @simlmx (#175)
* Remove Python 3.3 from the test matrix @elemoine (#179)
* Correct spelling mistakes @EdwardBetts @elemoine (#180)
* Make WKTElement and WKBElement pickable @elemoine (#182)
* Add SpatiaLite support @elemoine (#181)
* Fix to_shape with SpatiaLite @elemoine (#185)
0.4.2
-----
* Fix ST_LineLocatePoint return type @fredj (#170)
0.4.1
-----
* Fix docstring for overlaps_or_above @dcere (#166)
* Add a WKTElement extended example @movermeyer (#164)
* Add checks to _GISType constructor @elemoine (#162)
* Support geometry column with no typmod @elemoine (#161)
* Add ST_AsTWKB function. @JacobHayes (#146)
* Create MANIFEST.in. @pmlandwher (#147)
* Fix build_sphinx maximum recursion depth. @ifedapoolarewaju (#148)
* Fix typo in elements code. @elemoine (#153)
#153 fixed a typo in the _SpatialElement class, where the attribute "extended"
was incorrectly spelled "extented". So if your application code refers to this
attribute on WKTElement or WKBElement objects you will need that code as well.
0.4.0
-----
* Adapt links for "Read the Docs". @adamchainz (#134)
* Simplify and fix tests. @elemoine (#138)
* Set result_type when using operators. @elemoine (#140)
* Add use_typmod option for AddGeometryColumn. @tsauerwein (#141)
0.3.0
-----
* Read geometries with ST_AsEWKB. @loicgasser, @fredj, @elemoine (#122)
* Fix SpatialElement.__str__ on Python 3 @b11z, @elemoine (#130)
* Fix flake8 in tests @loicgrasser (#125)
0.2.6
-----
* Distribute GeoAlchemy as wheels (#114)
0.2.5
-----
* PyPy Support (#79)
* Wrap column name in double-quotes (#83)
* Add ST_Z, ST_AsEWKB and ST_AsEWKT functions (#91)
* Python 3 Support (#99)
* Travis config changes (#100, #102)
0.2.4
-----
* SQLAlchemy 0.9.4 compatibility. @quiqua (#75 and #76)
0.2.3
-----
* Add ST_Simplify. @nik-cars (#68)
* SQLAlchemy 0.9 compatibility. @ilj (#59)
0.2.2
-----
* Support EWKT and working with DBAPI's executemany(). Addresses issues
reported by @pgiraud. @elemoine (#62)
0.2.1
-----
* Fix bug where AddGeometryColumn and DropGeometryColumn were not given
the actual schema of the table @dolfandringa (#55)
0.2
---
* ST_Dump support @Turbo87 (#18)
* Use of Travis CI and coveralls.io @Turbo87
* New doc theme, new logo @Turbo87 (#23)
* PostGIS 2 Raster support @Turbo87 (#25)
0.1
---
* Initial release (PostGIS 2 support, Geometry et Geography types)
geoalchemy2-0.6.3/COPYING.rst 0000664 0000000 0000000 00000002040 13500016766 0015561 0 ustar 00root root 0000000 0000000 Copyright (c) 2013 Eric Lemoine
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
geoalchemy2-0.6.3/MANIFEST.in 0000664 0000000 0000000 00000000034 13500016766 0015456 0 ustar 00root root 0000000 0000000 include *.rst
include *.txt
geoalchemy2-0.6.3/README.rst 0000664 0000000 0000000 00000001312 13500016766 0015407 0 ustar 00root root 0000000 0000000 ============
GeoAlchemy 2
============
.. image:: https://travis-ci.org/geoalchemy/geoalchemy2.png?branch=master
:target: http://travis-ci.org/#!/geoalchemy/geoalchemy2
.. image:: https://coveralls.io/repos/geoalchemy/geoalchemy2/badge.png?branch=master
:target: https://coveralls.io/r/geoalchemy/geoalchemy2
.. image:: https://readthedocs.org/projects/geoalchemy-2/badge/?version=latest
:target: https://geoalchemy-2.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
GeoAlchemy 2 is a Python toolkit for working with spatial databases. It is
based on the gorgeous `SQLAlchemy `_.
Documentation is on Read the Docs: https://geoalchemy-2.readthedocs.io.
geoalchemy2-0.6.3/RELEASE.rst 0000664 0000000 0000000 00000001225 13500016766 0015535 0 ustar 00root root 0000000 0000000 Release
-------
This file provides the steps for releasing a new version of GeoAlchemy 2.
Add a new section to CHANGES.txt, change the version number in ``setup.py`` and
``docs/conf.py``, then create a PR with that. Proceed when the PR is merged.
Make sure Travis is all green: https://travis-ci.org/geoalchemy/geoalchemy2.
Create Git tag and push it::
$ git tag -a x.y -m 'version x.y'
$ git push origin x.y
Go to http://readthedocs.org/dashboard/geoalchemy-2/edit/ and set "Default
version" to x.y.
Note that there's no need to manually upload the package to PyPI. This is
done automatically by Travis when the release tag is pushed to GitHub.
geoalchemy2-0.6.3/TEST.rst 0000664 0000000 0000000 00000003111 13500016766 0015230 0 ustar 00root root 0000000 0000000 =====
Tests
=====
Install system dependencies
===========================
Install PostgreSQL and PostGIS::
$ sudo apt-get install postgresql postgis
Install the Python and PostgreSQL development packages::
$ sudo apt-get install python2.7-dev libpq-dev libgeos-dev
Install SpatiaLite::
$ sudo apt-get install libsqlite3-mod-spatialite
Install the Python dependencies::
$ pip install -r requirements.txt
$ pip install psycopg2
Set up the PostGIS database
===========================
Create the ``gis`` role::
$ sudo -u postgres psql -c "CREATE ROLE gis PASSWORD 'gis' SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;"
Create the ``gis`` database::
$ sudo -u postgres createdb -E UTF-8 gis
$ sudo -u postgres psql -d gis -c 'CREATE SCHEMA gis;'
$ sudo -u postgres psql -c 'GRANT CREATE ON DATABASE gis TO "gis";'
$ sudo -u postgres psql -d gis -c 'GRANT USAGE,CREATE ON SCHEMA gis TO "gis";'
Enable PostGIS for the ``gis`` database::
$ sudo -u postgres psql -d gis -U postgres -c "CREATE EXTENSION postgis;"
Set the path to the SpatiaLite module
=====================================
By default the SpatiaLite functional tests are not run. To run them the ``SPATIALITE_LIBRARY_PATH``
environment variable must be set.
For example, on Debian Sid, and relying on the official SpatiaLite Debian package, the path to
the SpatiaLite library is ``/usr/lib/x86_64-linux-gnu/mod_spatialite.so``, so you would use this::
$ export SPATIALITE_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu/mod_spatialite.so"
Run Tests
=========
To run the tests::
$ py.test
geoalchemy2-0.6.3/doc/ 0000775 0000000 0000000 00000000000 13500016766 0014470 5 ustar 00root root 0000000 0000000 geoalchemy2-0.6.3/doc/Makefile 0000664 0000000 0000000 00000011002 13500016766 0016122 0 ustar 00root root 0000000 0000000 # Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
help:
@echo "Please use \`make ' where is one of"
@echo " html to make standalone HTML files"
@echo " dirhtml to make HTML files named index.html in directories"
@echo " singlehtml to make a single large HTML file"
@echo " pickle to make pickle files"
@echo " json to make JSON files"
@echo " htmlhelp to make HTML files and a HTML help project"
@echo " qthelp to make HTML files and a qthelp project"
@echo " devhelp to make HTML files and a Devhelp project"
@echo " epub to make an epub"
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
@echo " latexpdf to make LaTeX files and run them through pdflatex"
@echo " text to make text files"
@echo " man to make manual pages"
@echo " changes to make an overview of all changed/added/deprecated items"
@echo " linkcheck to check all external links for integrity"
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
clean:
-rm -rf $(BUILDDIR)/*
html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
dirhtml:
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
singlehtml:
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
@echo
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
pickle:
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
@echo
@echo "Build finished; now you can process the pickle files."
json:
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
@echo
@echo "Build finished; now you can process the JSON files."
htmlhelp:
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
@echo
@echo "Build finished; now you can run HTML Help Workshop with the" \
".hhp project file in $(BUILDDIR)/htmlhelp."
qthelp:
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
@echo
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/GeoAlchemy2.qhcp"
@echo "To view the help file:"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/GeoAlchemy2.qhc"
devhelp:
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
@echo
@echo "Build finished."
@echo "To view the help file:"
@echo "# mkdir -p $$HOME/.local/share/devhelp/GeoAlchemy2"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/GeoAlchemy2"
@echo "# devhelp"
epub:
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
@echo
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
latex:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
@echo "Run \`make' in that directory to run these through (pdf)latex" \
"(use \`make latexpdf' here to do that automatically)."
latexpdf:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through pdflatex..."
make -C $(BUILDDIR)/latex all-pdf
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
text:
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
@echo
@echo "Build finished. The text files are in $(BUILDDIR)/text."
man:
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
@echo
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
changes:
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
@echo
@echo "The overview file is in $(BUILDDIR)/changes."
linkcheck:
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
@echo
@echo "Link check complete; look for any errors in the above output " \
"or in $(BUILDDIR)/linkcheck/output.txt."
doctest:
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt."
geoalchemy2-0.6.3/doc/_static/ 0000775 0000000 0000000 00000000000 13500016766 0016116 5 ustar 00root root 0000000 0000000 geoalchemy2-0.6.3/doc/_static/geoalchemy.png 0000664 0000000 0000000 00000051144 13500016766 0020746 0 ustar 00root root 0000000 0000000 PNG
IHDR g w F sBIT|d pHYs tEXtSoftware www.inkscape.org< IDATxyx\u_I@[@BgJh"*( ""~AADEQMe
LŢ`lRdkk̐4n3I}=O$3z=)))))M۩{ )p|kwpk$бJECPinRRVG2ýbDƌjr@䛨]o66BkF&}FK4pa^JjKjxb#6gNX`]TYãkrf{stC
^JIyg)))fNdQMo :qlijWs}_v WNF+%Fjt0|[(_h}z1;̚aOs6b_))UR,%%eeT-vG2tu)L,s#7U6{II.R: 9())
ҕu^Zv]Ͻ:Z
~aLapT{7us)))5u2_
óZfvtDL9oo!sҼtsj^KYJJ@FlV' oh@3p1Fa1|`!6:9\LiT;>T7X// Ouuʈ)S=ϻtЃ4f=8wH|c)))e X`{h+Lu^0<<