158 Commits

Author SHA1 Message Date
Sean Gillies
8bff8a70b4
Merge _crs with crs (#2335)
* Merge _crs into crs

CRS is an extension class now, with improved documentation. The
test__crs.py file is obsolete and has been deleted.

I piggy-backed some API doc changes onto this. We now generate
API docs from scratch every time and have removed the .rst files
from the repo. The crs module now uses the embedsignature Cython
directive, which we should do for other extension modules.

* Include private modules

* Restore API docs

We'll remove them in a different branch.

* Update docs/index.rst

* Handle OverflowError from <int>code

Also repair chunks missed in rebase
2022-03-31 19:19:21 -06:00
vincentsarago
7b5953cd2d move entrypoints in setup.cfg 2022-02-28 14:03:43 +01:00
David Hoese
80a67d6275
Add Python file-like VSI Plugin (#2141)
* Initial proof of concept for Python file-like VSI handler

* Add GDAL VSI Plugin definitions to gdal.pxi [skip ci]

* Add proof of concept pyvsi with GDAL Plugin API [skip ci]

* Add global filesystem state to PyVSI plugin

* Add close function handler to pyvsi plugin

* Move cython language definition to cython module

* Switch _pyvsi extension to use cpp compile options

* Add pyvsi_ prefix to GDAL callback functions to avoid collisions

* Add basic information to _pyvsi module docstring

* Remove ability to open PyVSIFile as writable

* Remove unnecessary code from PythonVSIFile

* Match new code style used in MemoryFile

* Fix PythonVSIFile argument passing to __init__

* Update memoryfile tests to use pytest fixtures instead of hardcoded paths

* Add read method to PythonVSIFile

* Add PythonVSIFile tests

* Fix xfail reason on pyvsi test

* Add concurrent pyvsi test

* Add flexible PythonVSIFile plugin importing for GDAL<3.0

* Remove legacy 'ext' keyword argument for PythonVSIFile interface

* Rename "PyVSI" to "FilePath" and remove unnecessary methods

* Rename other instances of pyvsi to filepath

* Rename other instances of pyvsi to filepath
2021-11-13 12:25:57 -07:00
Vincent Sarago
ba5e90c487
mapbox -> rasterio (#2321) 2021-10-22 09:04:05 -06:00
Alan D. Snow
e16206791d
REF: set language level in cythonize options in setup.py (#2241) 2021-07-19 14:43:18 -06:00
Alan D. Snow
dec6ee53a6
BUG: Fix setup.py clean (#2214) (#2217) 2021-06-21 20:43:45 -06:00
Sean Gillies
9b82b111fe
Revert "BUG: Fix setup.py clean (#2214)" (#2216)
This reverts commit cda2242f346a05e7d54ec4fa165043d7bf6ce36c.
2021-06-21 15:22:46 -06:00
Alan D. Snow
cda2242f34
BUG: Fix setup.py clean (#2214) 2021-06-21 10:49:50 -06:00
Sean Gillies
2de62d2ead Merge tag '1.2.4' 2021-05-31 16:26:51 -06:00
Sean Gillies
61ff96232f Change comparisons of nodata to IgnoreOption for click 8.0
Resolves #2188
2021-05-28 15:08:36 -06:00
Sean Gillies
53a6a06074 Explicitly require setuptools 2021-04-28 11:25:41 -06:00
Tomáš Hrnčiar
b17b2e330e
Require setuptools, rasterio/rio/main.py and tests/test_cli_main.py import pkg_resources (#2168) 2021-04-28 11:21:16 -06:00
Alan D. Snow
99511e4069
Use compile_time_env in place of shims (#2016)
* Use compile_time_env in place of shims

* Update setup.py to require cython

* remove sdist_fill

* update MANIFEST

* Remove support for GDAL < 2.3

* Remove rasterfill.cpp
2021-02-18 12:11:25 -07:00
Sean Gillies
c41243abe7 Replace hyphens with dashes
Resolves #2081
2021-01-12 12:30:50 -07:00
Sean Gillies
2db2a41c77 Fix classifier 2021-01-10 19:34:32 -07:00
Sean Gillies
176c09d65b
Use cython's language level 3 and update README and setup.py (#2077)
Resolves #2064
2021-01-08 12:32:12 -07:00
Alan D. Snow
2a1cf0f9ea
Update setup.py supported python versions (#2068) 2020-12-11 21:37:19 -07:00
Sean Gillies
264ccaa838
Make feature extraction tests robust with respect to noding (#2066)
* Make feature extraction tests robust with respect to noding

Resolves #2034

* Install test extras

* Add shapely

* Finish adjusting tests and tweaking build matrix
2020-12-11 15:44:59 -07:00
Sean Gillies
d7b2dd3ae6 Depend on certifi for certs
Resolves #2009

If a user wants to use their system's bundle or keychain, they can
uninstall certifi.
2020-10-06 16:06:02 -06:00
Alex Shepherd
98c6920338
Specify dependencies using PEP496 Environment Markers (#1925) 2020-05-12 10:45:58 -06:00
Sean Gillies
78a81c0397 Adding missing _transform.c to setup script
rasterio 1.1 built from an sdist won't import without this.
2019-10-02 11:15:34 -06:00
Vincent Sarago
f587fb72ba Gcptransform (#1773)
* add GDALGCPsToGeoTransform

* add method to fall back to gcps geo transform when gcps are found

* add GDALGCPsToGeoTransform output in gcps info

* add GCPS class

* add GCPS in rasterio.control and update tests

* add from_gcps method

* return Affine and revert rio info change

* revert unrelated change

* add & for cython

* fix

* add tests

* Update rasterio/transform.py

Co-Authored-By: Sean Gillies <sean.gillies@gmail.com>

* /gcpslist/gcps/
2019-09-09 16:22:23 -06:00
Bas Couwenberg
9c89240791 Fix clean target. (#1695)
GDAL/gdal-config may not be available outside the build chroot.
2019-08-22 10:46:03 -06:00
Sean Gillies
36786d5886
GDAL 3.0.x support in code but not wheels (#1729)
* Added support for Proj6 and GDAL 3

* install proj6

* build proj with local installation dir

* conditional proj dependency

* added proj4 flags for all gdal versions

* Restore debian data tests

* Version specific proj configuration

* Fix string comp expression

* Explicit matrix

* Restructure build matrix

* Remove wait from proj build script

* Call script with bash

* Fix version text

* Bash syntax

* Correct PROJOPTs

* Use xvfb service

* Back to proj 4.8 for older GDAL

* Fix syntax error

* Add verbosity to tests

* Take proj off library path, remove gdal-bin package

* Install PROJ and GDAL to same prefix

* Set up runtime env

* Try 4.9.3

* Source build scripts

* Switch to case for versions

* set trace

* Test existence of share/gdal directory

The proj install script created the gdal install directory so a
test for just that is not sufficient.

* Test for share/proj

* Run tests under gdb

* Forgot the run command

* Wait 20 for GDAL

* travis_wait

* Restructure build script, less boilerplate

* Back to trusty

* dist: trusty

* Remove gdb

* Allow 3.0.1/6.1.1 to fail, some changes since 3.0.0/6.1.0
2019-07-26 13:46:55 -06:00
Sean Gillies
ff94da7f74
Check for data files at builtin locations (#1639)
* Check for data files at builtin locations

If we have them, don't set GDAL_DATA or PROJ_LIB.

Resolves #1631

* Include mock on Python 2.7
2019-02-25 20:40:06 -07:00
Sean C. Gillies
35488539fb Explicitly spec click, don't rely on cligj 2018-09-27 13:05:36 -06:00
Sean C. Gillies
5cce8fb061 Require cligj>=0.5 2018-09-26 11:17:58 -06:00
Sean C. Gillies
4659a30a57 Remove commented code, move ext options adjustment up 2018-04-20 07:59:41 -06:00
Sean C. Gillies
80c75349ac Enable c++11 on macosx 2018-04-19 15:33:34 -06:00
Sean C. Gillies
4d561a9e5f Options are dict, not list 2018-04-19 09:59:52 -06:00
Sean C. Gillies
a668745c92 Move -std=c++11 to cpp extension options only
For #1323
2018-04-19 09:38:35 -06:00
Kevin Wurster
f726753a12 Add C++11 flag when running on GDAL>=2.3 2017-12-12 18:02:29 -05:00
Brendan Ward
153ea4870b setup log errors to sys.exit 2017-12-08 04:02:47 -08:00
Brendan Ward
bd565709ed Bumped required GDAL to 1.11, dropped unneeded tests 2017-12-07 05:30:36 -08:00
Brendan Ward
a9559b583b Upgrade required GDAL to >= 1.10 2017-12-05 20:13:13 -08:00
Sean Gillies
83ef7b8ef8 Add shutil to list of modules to build from sdist 2017-10-30 22:14:50 -06:00
Kevin Wurster
0e4f0a95ed rasterio._manage renamed to rasterio.shutil 2017-10-14 00:57:42 -04:00
Kevin Wurster
a7e4ba07d4 + $ rio rm 2017-10-12 00:53:57 -04:00
Kevin Wurster
80b2a746b0 Need a module for generic data management tools. 2017-10-11 20:39:28 -04:00
Sean Gillies
5eea4fcdf0 Return of attrs 2017-07-31 13:58:30 -07:00
Sean Gillies
8c097554ef Remove BlockInfo class and attrs 2017-07-31 13:45:40 -07:00
Sean Gillies
825d127ea1 Pin attrs version, watch out for NULL, block info is namedtuple 2017-07-14 10:48:02 +02:00
Sean Gillies
56a6eba992 Add hypothesis to test extras 2017-06-12 16:53:13 +02:00
Sean Gillies
a7af809757 Add attrs to requirements 2017-06-11 09:52:40 +02:00
Jeremy Hooke
688a71a5bc Fix setup.py exception when no gdal is available
"File setup.py, line 134
NameError: name 'gdalversion' is not defined"
2017-04-13 08:50:54 +10:00
Sean Gillies
53222797e5 Improve comments, docstrings, and test extras reqs 2017-03-28 16:02:15 +02:00
Matthew Perry
2e628c1795 append to extensions list 2017-02-02 08:31:23 -07:00
Sean Gillies
5aa52c2efd Add a GDAL version-dependent shim API 2017-02-01 18:52:33 +01:00
Chris Holden
d2d3e3e11f Update snuggs dependency for relevant fix 2017-01-27 13:22:16 -05:00
Sean Gillies
a605b68e07 Rename _drivers -> _env and release GIL around GDALOpen in _base 2017-01-11 12:19:01 +01:00