-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #224 from changliao1025/development
Development
- Loading branch information
Showing
29 changed files
with
1,445 additions
and
36,957 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from osgeo import gdal, ogr | ||
def check_file_type(filename): | ||
# Try to open as raster | ||
raster = gdal.Open(filename) | ||
if raster is not None: | ||
return 'raster' | ||
|
||
# Try to open as vector | ||
vector = ogr.Open(filename) | ||
if vector is not None: | ||
return 'vector' | ||
|
||
# If neither worked, the file is either not a spatial data file, or it's not a format that GDAL/OGR can read | ||
return 'unknown' | ||
|
||
def gdal_get_vector_spatial_ref_wkt(sFilename_in): | ||
dataset = ogr.Open(sFilename_in) | ||
layer = dataset.GetLayer(0) | ||
spatial_ref = layer.GetSpatialRef() | ||
pProjection_reference = spatial_ref.ExportToWkt() | ||
return pProjection_reference | ||
|
Binary file removed
BIN
-149 KB
pyflowline/algorithms/cython/build/temp.linux-x86_64-cpython-311/kernel.o
Binary file not shown.
Binary file modified
BIN
-8.6 KB
(95%)
pyflowline/algorithms/cython/build/temp.linux-x86_64-cpython-312/kernel.o
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.