Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
geoarray
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Daniel Scheffler
geoarray
Commits
aaa81d52
Commit
aaa81d52
authored
Oct 10, 2017
by
Daniel Scheffler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GeoArray.geotransform.setter: Improved input validation.
parent
c4d70219
Pipeline
#1305
failed with stages
in 11 minutes and 33 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
geoarray/__init__.py
geoarray/__init__.py
+2
-2
geoarray/baseclasses.py
geoarray/baseclasses.py
+4
-3
setup.py
setup.py
+1
-1
No files found.
geoarray/__init__.py
View file @
aaa81d52
...
...
@@ -12,8 +12,8 @@ from .masks import CloudMask # noqa: E402
__author__
=
"""Daniel Scheffler"""
__email__
=
'danschef@gfz-potsdam.de'
__version__
=
'0.6.
9
'
__versionalias__
=
'v201710
06.02
'
__version__
=
'0.6.
10
'
__versionalias__
=
'v201710
10.01
'
__all__
=
[
'GeoArray'
,
'BadDataMask'
,
'NoDataMask'
,
...
...
geoarray/baseclasses.py
View file @
aaa81d52
...
...
@@ -34,6 +34,7 @@ from py_tools_ds.geo.vector.topology \
from
py_tools_ds.geo.vector.geometry
import
boxObj
from
py_tools_ds.io.raster.gdal
import
get_GDAL_ds_inmem
from
py_tools_ds.compatibility.gdal
import
get_gdal_func
from
py_tools_ds.numeric.numbers
import
is_number
# internal imports
from
.subsetting
import
get_array_at_mapPos
...
...
@@ -240,7 +241,7 @@ class GeoArray(object):
'geotransform must be a list with 6 numbers. Got %s.'
%
str
(
gt
)
for
i
in
gt
:
assert
is
instance
(
i
,
(
int
,
float
)),
"geotransform must contain only numbers. Got '%s'."
%
i
assert
is
_number
(
i
),
"geotransform must contain only numbers. Got '%s' (type: %s)."
%
(
i
,
type
(
i
))
self
.
_geotransform
=
gt
...
...
@@ -279,9 +280,9 @@ class GeoArray(object):
return
self
.
_projection
elif
not
self
.
is_inmem
:
self
.
set_gdalDataset_meta
()
return
self
.
_projection
return
self
.
_projection
# or "LOCAL_CS[\"MAP\"]"
else
:
return
''
return
''
# '"LOCAL_CS[\"MAP\"]"
@
projection
.
setter
def
projection
(
self
,
prj
):
...
...
setup.py
View file @
aaa81d52
...
...
@@ -23,7 +23,7 @@ test_requirements = requirements + ["coverage", "nose", "nose2", "nose-htmloutpu
setup
(
name
=
'geoarray'
,
version
=
'0.6.
9
'
,
version
=
'0.6.
10
'
,
description
=
"Fast Python interface for geodata - either on disk or in memory."
,
long_description
=
readme
+
'
\n\n
'
+
history
,
author
=
"Daniel Scheffler"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment