203 Commits

Author SHA1 Message Date
Sean Gillies
d3d19c990a Remove rasterio.insp from setup.py 2014-05-02 15:38:09 -06:00
Sean Gillies
2d21bf07e2 Remove rasterio.insp. Closes #51. 2014-05-02 15:15:34 -06:00
Sean Gillies
26926a804b Add options to rio_cp for debugging #70. 2014-04-28 23:00:55 -06:00
Sean Gillies
4bfe8fb165 Merge branch 'master' of github.com:mapbox/rasterio 2014-04-28 21:06:39 -06:00
Sean Gillies
23bc94a256 Enable NUM_THREADS option for reproject().
Closes #60.

Usage:

  from rasterio.warp import reproject()
  reproject(..., num_threads=2)

In practice, I'm not seeing a speed up for modestly sized
images. I think you'd have to get into some very large rasters
to see a difference.
2014-04-28 14:39:49 -06:00
Sean Gillies
eb9a61f27c Clean up and explain better. 2014-04-24 15:24:23 -06:00
Sean Gillies
84f1d179f0 Merge branch 'master' of github.com:mapbox/rasterio 2014-04-23 17:31:36 -06:00
Sean Gillies
276e0d1c4e An example of parallel processing.
See #60.
2014-04-23 14:57:01 -06:00
Sean Gillies
10c6cc5e83 Convert creation option values to strings.
Closes #76.
2014-04-23 14:56:00 -06:00
Sean Gillies
be20a95c46 We only need one of these ctx managers ever. 2014-04-23 09:49:09 -06:00
Sean Gillies
a86729b2b4 Remove unnecessary code, add docstrings.
See #75.
2014-04-23 09:33:39 -06:00
Sean Gillies
043bc6686a _err.pxd file not needed. 2014-04-22 22:30:59 -06:00
Sean Gillies
32b9d0e5f5 Add a GDAL error context.
Using a with statement like:

    with g_errs():
        ds = _gdal.GDALOpen('foo.tif')

On exit, the last GDAL error is converted to a Python exception.

Closes #75.
2014-04-22 22:24:06 -06:00
Sean Gillies
71e0ce5d03 Use Cython's property for crs and transform.
Closes #73.
2014-04-22 15:21:27 -06:00
Sean Gillies
b916f6f6ca More about dataset attributes. 2014-04-22 11:29:55 -06:00
Sean Gillies
2b53a236e9 Add image. 2014-04-21 16:52:24 -06:00
Sean Gillies
59fdb96a90 More about reading datasets. 2014-04-21 15:05:18 -06:00
Sean Gillies
f58b341903 First cut at datasets doc. 2014-04-21 14:12:25 -06:00
Sean Gillies
61b981d95b Remove script from tool.py 2014-04-18 14:59:50 -06:00
Sean Gillies
0c4f904c96 Add verbosity control to rio_insp.
Also give GDAL its own logger.
2014-04-18 14:51:57 -06:00
Sean Gillies
996941c9b5 Switch to '' as const value. 2014-04-18 13:06:45 -06:00
Sean Gillies
a150e24ec4 Add --meta and --tags options.
These pretty print a dataset's meta dict and tags and exit.
2014-04-18 11:18:24 -06:00
Sean Gillies
67c587b88f Enable update mode for rio_insp.
Modernized dataset repr() too.
2014-04-18 10:27:49 -06:00
Sean Gillies
916e24ea2c Merge branch 'master' of github.com:mapbox/rasterio 2014-04-13 11:46:53 -06:00
Sean Gillies
7c2b436c2e Save file creation keywords args.
These now get stashed in a 'rio_creation_kwds' metadata namespace
so that you can recover the creation kwds (compress, tiled, etc)
of any file.

Closes #53.
2014-04-11 17:27:17 -06:00
Sean Gillies
fce8056e2e Merge pull request #69 from brendan-ward/master
Increased performance of rasterize
2014-04-11 15:49:34 -06:00
Sean Gillies
2734159fcf Merge branch 'master' of https://github.com/brendan-ward/rasterio 2014-04-10 17:36:48 -06:00
Brendan Ward
3978205f8c Replaced JSON based IO for GDAL rasterize, and used OGRGeomBuilder from Fiona. 2014-04-09 14:17:50 -07:00
Sean Gillies
d8311bea05 Merge branch 'master' of github.com:mapbox/rasterio 2014-04-04 22:05:17 -06:00
Sean Gillies
3a7199a081 Merge pull request #67 from brendan-ward/master
Enable connectivity = 8 option for shapes
2014-04-04 22:04:12 -06:00
Brendan Ward
e05ad21afb Merge remote-tracking branch 'Upstream/master' 2014-04-02 20:39:56 -07:00
Brendan Ward
f7f7591d55 Implemented connectivity=8 option for shapes and associated test case. 2014-04-02 20:39:43 -07:00
Sean Gillies
c7c1e8b7d3 Merge pull request #65 from brendan-ward/master
Cleanup of failing tests on windows and imports in _features.pyx
2014-04-01 11:50:49 -06:00
Sean Gillies
656bcc2e7f Readme updates. 2014-04-01 08:09:23 -06:00
Brendan Ward
b553ee2479 Merge remote-tracking branch 'Upstream/master' 2014-03-31 22:05:32 -07:00
Brendan Ward
33333b7ba3 Updated test_update to deal with platform specific line endings causing test to fail. Migrated test_write to py.test and updated to relax precision required for pixel size in gdalinfo (varies in trivial manner across platforms causing tests to fail). 2014-03-31 22:05:09 -07:00
Brendan Ward
0b4d353fe7 Cleanup of imports in _features.pyx. Switched band IO to use _io.io_ubyte instead of duplicate in _featuers.pyx 2014-03-31 20:55:39 -07:00
Sean Gillies
0a66ac1f0d Link to docs directory. 0.8 2014-03-31 16:45:15 -06:00
Sean Gillies
97f5b33c93 Update text files. 2014-03-31 16:44:06 -06:00
Sean Gillies
7309644606 Explain transform in rasterize(). 2014-03-31 16:28:53 -06:00
Sean Gillies
70313b5c9c Code and narrative. 2014-03-31 16:26:53 -06:00
Sean Gillies
17b9a8686f Switch image. 2014-03-31 15:54:47 -06:00
Sean Gillies
a3154697b5 Start of documenting features module. 2014-03-31 15:52:19 -06:00
Sean Gillies
66643fd8ef Merge pull request #63 from brendan-ward/master
Fixes to rasterize geometries - GDAL options
2014-03-31 12:07:09 -06:00
Sean Gillies
5960baf239 Add a default transform. 2014-03-31 11:59:19 -06:00
Sean Gillies
fb54d3c992 Log a debugging message on geom creation.
Also cdef bytes json_bytes.
2014-03-31 11:44:22 -06:00
Brendan Ward
707190f425 Fixed example and improper pattern for setting options passed to GDAL in rasterize function. 2014-03-31 10:33:26 -07:00
Sean Gillies
93f1dde097 Remove const declaration. 2014-03-31 10:49:48 -06:00
Sean Gillies
60dab80ccb Encode JSON using UTF-8. 2014-03-31 07:58:29 -06:00
Sean Gillies
756d46856a Test for nonzero length of proj string.
Before exporting to PROJ.4.
2014-03-30 15:07:33 -06:00