-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add files via upload * implementing new CRS management with pyproj * loosening version restrictions * removing WIP GeoTIFFDataset added by accident * implementing new CRS management with pyproj * Update environment-gpu.yml * loosening version restrictions * removing WIP GeoTIFFDataset added by accident * pinning to dev version of shapely * debugging syntax * debugging requirements and setup.py - diffs btwn conda and pypi * pinning shapely to 1.7.1dev * adding dependency link * finally got shapely installed from gh * why is this still not working * fixing pip install flags to accommodate git install * trying another way to get shapely... * fixing pyyaml reqt * hotfix split_multi_geoms() * hotfix split_multi_geoms() * fixing split_multi_geometries and adding test * debugged split_multi_geometries and wrote new tests * adding dependency_link for shapely in setup.py * fixing version regex to include characters, e.g. "0.2.2dev0" * [WIP] Bug fixes, geojson2coco improvements, restrict_by_aoi, and nodata filling (#331) * added nodata threshold option for raster tiler for cases where large portions of image have nodata * fixed issue where the aoi boundary was not intersected with src_img bounds prior to generating tile bounds list and added warnign about multipoly * reverse sign on nodata threshold check and add a docstring to tile function * impements restrict_to_aoi in rastertiler * fixed naming of raster tiles in case restrict_to_aoi is used * original tests pass for raster tiler * added remove multipolygon option to geojson2coco, they cause it to fail * fill_no_data func for tiler with options for mean, arbitrary value * added remove multipolygon function for geojson2coco * option to override crs in geojson_to_px_gdf to fix for epsg being used for wkt projections when gdfs are saved as geojson and fix for missing crs info in vector tiler * add override options for coco * bug fixes for tiler when fill no data is used, nodata_percentage is calculated correctly now * added comment on not cropping in tiler * return fill values from raster tiler * bug fix for fill_all_nodata and instance mask should return empty arr with same shape as reference_im * added filtering for geometry collections to remove_multipolygon function and updated description for geojson2coco * bug fix for case where fill value is not the mean * new function for nodata aware instance mask conversion with tiler inputs, test for instance masking, handling necessary use of rasterio crs in _check_crs * Fixing torchvision pin in environment.yml * fixed test * update CHANGELOG, environments for shapely dev for np support, removed coco crs override, update tqdm * small updates, tests pass * review updates: tqdm import switch, explode multipoly option, _check_crs change * fixed get_overlapping_subset to use new return_Rasterio flag * added override crs option back in to geojson_to_coco * add chceck for src gdf to have a crs attribute Co-authored-by: Ubuntu <ryan@cropmask-mgpu-18-v2.03lau3lhyktubpzetswi1ohm1h.xx.internal.cloudapp.net> Co-authored-by: Nick Weir <[email protected]> * Pinning GDAL version to resolve compatibility issue with Fiona * Fix stage of val_datagen in Trainer (#345) * Fix stage of val_datagen in Trainer * updating changelog and solaris version Co-authored-by: jshermeyer <[email protected]> Co-authored-by: Ryan Avery <[email protected]> Co-authored-by: Ubuntu <ryan@cropmask-mgpu-18-v2.03lau3lhyktubpzetswi1ohm1h.xx.internal.cloudapp.net> Co-authored-by: Daniel Hogan <[email protected]> Co-authored-by: Kaizaburo Chubachi <[email protected]>
- Loading branch information
1 parent
1f598e3
commit 1032f08
Showing
58 changed files
with
583 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
python>=3.6 | ||
pip>=19.0.3 | ||
affine>=2.3.0 | ||
albumentations=0.4.3 | ||
fiona>=1.8.13 | ||
albumentations==0.4.3 | ||
fiona>=1.7.13 | ||
gdal>=3.0.2 | ||
geopandas>=0.6.2 | ||
geopandas>=0.7.0 | ||
matplotlib>=3.1.2 | ||
networkx>=2.4 | ||
numpy>=1.17.3 | ||
opencv=4.1.0.25 | ||
opencv-python>=4.1 | ||
pandas>=0.25.3 | ||
pyproj>=2.1 | ||
pytorch=1.3.1 | ||
pyyaml=5.2 | ||
torch>=1.3.1 | ||
pyyaml==5.2 | ||
rasterio>=1.0.23 | ||
requests>=2.22.0 | ||
rio-cogeo>=1.1.6 | ||
requests==2.22.0 | ||
rtree>=0.9.3 | ||
scikit-image>=0.16.2 | ||
scipy>=1.3.2 | ||
shapely>=1.6.4 | ||
tensorflow=1.13.1 | ||
torchvision>=0.4.2 | ||
git+git://github.com/toblerity/shapely.git@master#egg=shapely-1.7.1dev | ||
torchvision>=0.5.0 | ||
tqdm>=4.40.0 | ||
urllib3>=1.25.7 | ||
tensorflow==1.13.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from . import bin, data, eval, nets, raster, tile, utils, vector | ||
|
||
__version__ = "0.2.1" | ||
__version__ = "0.2.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+32.4 KB
...ll_nodata_expected/aoi_restricted_nebraska_landsat5_with_nodata_wgs84_-101.003_41.774.tif
Binary file not shown.
Binary file added
BIN
+32.4 KB
...ll_nodata_expected/aoi_restricted_nebraska_landsat5_with_nodata_wgs84_-101.044_41.691.tif
Binary file not shown.
Binary file added
BIN
+32.4 KB
...ll_nodata_expected/aoi_restricted_nebraska_landsat5_with_nodata_wgs84_-101.044_41.732.tif
Binary file not shown.
Binary file added
BIN
+32.4 KB
...ll_nodata_expected/aoi_restricted_nebraska_landsat5_with_nodata_wgs84_-101.044_41.774.tif
Binary file not shown.
Binary file added
BIN
+32.4 KB
...ll_nodata_expected/aoi_restricted_nebraska_landsat5_with_nodata_wgs84_-101.085_41.691.tif
Binary file not shown.
Binary file added
BIN
+32.4 KB
...ll_nodata_expected/aoi_restricted_nebraska_landsat5_with_nodata_wgs84_-101.085_41.732.tif
Binary file not shown.
Binary file added
BIN
+32.4 KB
...ll_nodata_expected/aoi_restricted_nebraska_landsat5_with_nodata_wgs84_-101.085_41.774.tif
Binary file not shown.
Binary file added
BIN
+32.4 KB
...ll_nodata_expected/aoi_restricted_nebraska_landsat5_with_nodata_wgs84_-101.127_41.691.tif
Binary file not shown.
Binary file added
BIN
+32.4 KB
...ll_nodata_expected/aoi_restricted_nebraska_landsat5_with_nodata_wgs84_-101.127_41.732.tif
Binary file not shown.
Binary file added
BIN
+32.4 KB
...ll_nodata_expected/aoi_restricted_nebraska_landsat5_with_nodata_wgs84_-101.127_41.774.tif
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"type": "FeatureCollection", | ||
"name": "restrict_aoi_test", | ||
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, | ||
"features": [ | ||
{ "type": "Feature", "properties": { "id": null }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -101.122733978747405, 41.737200029527671 ], [ -101.064449359873706, 41.767397042817478 ], [ -101.002339286354697, 41.751349690809022 ], [ -101.047567608320904, 41.677423309487807 ], [ -101.096527512847558, 41.649695858211281 ], [ -101.125247881319964, 41.674698280229421 ], [ -101.126670019207381, 41.707062031182794 ], [ -101.122733978747405, 41.737200029527671 ] ] ] ] } } | ||
] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+16.4 KB
solaris/data/vectortile_test_filled_expected/empty_geoms_-101.003_41.774.tif
Binary file not shown.
Binary file added
BIN
+16.4 KB
solaris/data/vectortile_test_filled_expected/empty_geoms_-101.044_41.691.tif
Binary file not shown.
Binary file added
BIN
+16.4 KB
solaris/data/vectortile_test_filled_expected/empty_geoms_-101.044_41.732.tif
Binary file not shown.
Binary file added
BIN
+16.4 KB
solaris/data/vectortile_test_filled_expected/empty_geoms_-101.085_41.774.tif
Binary file not shown.
Binary file added
BIN
+16.4 KB
solaris/data/vectortile_test_filled_expected/empty_geoms_-101.127_41.774.tif
Binary file not shown.
Binary file added
BIN
+32.4 KB
solaris/data/vectortile_test_filled_expected/geoms_-101.044_41.774.tif
Binary file not shown.
Binary file added
BIN
+16.4 KB
solaris/data/vectortile_test_filled_expected/geoms_-101.085_41.691.tif
Binary file not shown.
Binary file added
BIN
+32.4 KB
solaris/data/vectortile_test_filled_expected/geoms_-101.085_41.732.tif
Binary file not shown.
Binary file added
BIN
+32.4 KB
solaris/data/vectortile_test_filled_expected/geoms_-101.127_41.691.tif
Binary file not shown.
Binary file added
BIN
+64.4 KB
solaris/data/vectortile_test_filled_expected/geoms_-101.127_41.732.tif
Binary file not shown.
1 change: 1 addition & 0 deletions
1
solaris/data/vectortile_test_nonfilled_expected/geoms_-101.003_41.774.geojson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type": "FeatureCollection", "crs": {"type": "name", "properties": {"name": "urn:ogc:def:crs:EPSG:4326"}}, "features": []} |
1 change: 1 addition & 0 deletions
1
solaris/data/vectortile_test_nonfilled_expected/geoms_-101.044_41.691.geojson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type": "FeatureCollection", "crs": {"type": "name", "properties": {"name": "urn:ogc:def:crs:EPSG:4326"}}, "features": []} |
1 change: 1 addition & 0 deletions
1
solaris/data/vectortile_test_nonfilled_expected/geoms_-101.044_41.732.geojson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type": "FeatureCollection", "crs": {"type": "name", "properties": {"name": "urn:ogc:def:crs:EPSG:4326"}}, "features": []} |
Oops, something went wrong.