Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hoek, Steven
lmgeo
Commits
11880d55
Commit
11880d55
authored
Mar 31, 2020
by
Hoek, Steven
Browse files
Copyright statement added
parent
95f0e525
Changes
5
Hide whitespace changes
Inline
Side-by-side
toolbox/cliplib.py
View file @
11880d55
# Copyright (c) 2004-2020 WUR, Wageningen
"""ClipLib - a Python library for clipping from rasters"""
from
lmgeo.formats.gridenvelope2d
import
GridEnvelope2D
from
array
import
array
...
...
@@ -7,6 +8,8 @@ try:
HAS_NUMPY
=
True
except
ImportError
:
HAS_NUMPY
=
False
__author__
=
"Steven B. Hoek"
# Determines the minimum envelope around an area with the same raster values
def
get_envelope
(
raster
,
code
):
...
...
toolbox/copylib.py
View file @
11880d55
# Copyright (c) 2004-2020 WUR, Wageningen
import
formats.inmemoryraster
as
imr
from
formats.raster
import
Raster
from
formats.gridenvelope2d
import
GridEnvelope2D
import
numpy
as
np
__author__
=
"Steven B. Hoek"
def
copy_to_memory
(
myraster
):
# Check input
if
not
isinstance
(
myraster
,
Raster
):
...
...
toolbox/punchlib.py
View file @
11880d55
# Copyright (c) 2004-2020 WUR, Wageningen
import
numpy
as
np
import
lmgeo.toolbox.cliplib
as
cp
import
lmgeo.formats.gridenvelope2d
as
ge
from
pyproj
import
Proj
,
transform
__author__
=
"Steven B. Hoek"
# Constants
eps
=
0.00000001
...
...
toolbox/scalelib.py
View file @
11880d55
# -*- coding: latin-1 -*-
# Copyright (c) 2004-2020 WUR, Wageningen
"""ScaleLib - a Python library for scaling raster data"""
from
formats.gridenvelope2d
import
GridEnvelope2D
from
formats.raster
import
Raster
...
...
@@ -10,6 +11,8 @@ try:
except
ImportError
:
HAS_NUMPY
=
False
__author__
=
"Steven B. Hoek"
class
ScaleManager
():
__initialised
=
False
__rg
=
None
...
...
toolbox/vcliplib.py
View file @
11880d55
# Copyright (c) 2004-2020 WUR, Wageningen
"""VclipLib - a Python library for clipping from vector based spatial data"""
from
array
import
array
from
enum
import
Enum
__author__
=
"Steven B. Hoek"
class
HLocation
(
Enum
):
HBETWEEN
=
1
LEFT
=
2
...
...
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