189 Commits

Author SHA1 Message Date
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
Matthew Perry
0baae2d72f setup and readme changes to clarify python version 2017-01-09 12:41:22 -04:00
Sean Gillies
cda74ecf8d Skip instead of xfail 2016-12-07 15:53:08 +01:00
Sean Gillies
493dd8ef5b Add a edit-info nodata option handler, marker, and inline funcs 2016-12-06 16:25:12 +01:00
Sean Gillies
fc52b0f99d Initial support for GDALDeleteRasterNoDataValue()
Towards resolving #510
2016-12-05 13:40:54 +01:00
Sean Gillies
77e9f42dc1 Move gcp dump to its own command, rio-gcps
Add full JSON repr of a control point to a feature's properties
member. Make coordinate rounding recursive.
2016-11-07 15:06:47 +01:00
Brendan Ward
d1ac3a942e Merge pull request #804 from mapbox/rio-windows
CLI command for extracting datasource windows
2016-07-08 10:23:53 -07:00
Kevin Wurster
7f2168bd61 Rename '$ rio windows' to '$ rio blocks'. 2016-06-30 19:50:58 -04:00
Kevin Wurster
b48d554c77 CLI command for extracting datasource windows as GeoJSON. 2016-06-24 22:43:44 -04:00
Kevin Wurster
ef952def3b Merge master. 2016-06-14 21:09:27 -07:00
James Hiebert
a7e7cbef63 Replaces crs as a dict with a CRS class
Implements a number of changes:
* Creates a CRS class that simply inherits from UserDict
* Moves CRS related methods (to_string, from_string, is_geographic,
  is_projected, is_valid, and is_epsg_code) to be class methods
* Moves the CRS comparison method to be CRS.__eq__
* Modifies tests that compare CRS output to a raw dict, to compare to
  UserDict.data property
* Replaces all creation of CRS represtation using bare dicts with the
  use class instantiation
2016-06-03 17:15:48 -07:00
Kevin Wurster
55250f9f49 Remove rasterio.tools from the setup.py package list 2016-06-03 14:14:00 -04:00
Matthew Perry
0e3f10aad1 add plot requirements and all 2016-06-02 12:06:38 -04:00
Matthew Perry
152e64b7f4 Merge pull request #739 from mapbox/doc-cleanup
Add to CONTRIBUTING.rst, doc cleanup, and consolidate requirements
2016-06-02 11:23:45 -04:00
Matthew Perry
e53b0d910a import numpy as np in docs and examples (#740)
import numpy as np in docs and examples and remove unneeded imports
2016-06-02 06:46:52 -07:00
Kevin Wurster
f628616421 Missed some dev dependencies. 2016-06-02 00:11:47 -04:00
Kevin Wurster
27d612c456 Remove requirements.txt and rely on setup.py. Reduce requirements-dev.txt to those that must be required before running setup.py 2016-06-01 23:14:40 -04:00
Sean Gillies
5cd2167028 Add a "docs" extra 2016-05-27 16:05:42 -06:00
Matthew Perry
4fbee7379b additional classifiers in setup 2016-05-19 10:31:14 -04:00
Sean Gillies
12f8fc7e3f New, lazier AWS sessions
New Env class and tests.
More logging, tests, safer environment
Remove usage (deprecated) of rasterio.drivers()
Also pep8 cleanups throughout the tests and a fix for unchecked
dtypes when opening a dataset in 'w' mode.
Now we can simply import warnings in __init__.py. In the
deprecations tests, we needed to see a single warning only one
time to avoid multiple drivers() warnings.
Add a global env.
Add rasterio.env.setenv()
2016-04-28 15:26:55 -06:00