Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Polygon Query on Raster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FACT
FACT Utils
Polygon Query on Raster
Commits
ecead438
Commit
ecead438
authored
1 year ago
by
Riccardo Boero
Browse files
Options
Downloads
Patches
Plain Diff
Removing the omitting of no data vlaues
parent
a8bf24f8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#772
passed
1 year ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
polygonqueryonraster/app.py
+1
-1
1 addition, 1 deletion
polygonqueryonraster/app.py
with
1 addition
and
1 deletion
polygonqueryonraster/app.py
+
1
−
1
View file @
ecead438
...
@@ -196,7 +196,7 @@ class GeoTIFFService:
...
@@ -196,7 +196,7 @@ class GeoTIFFService:
if
categorical
:
if
categorical
:
# Ignore no-data value (assumed to be 0)
# Ignore no-data value (assumed to be 0)
masked_band_data
=
masked_band_data
[
masked_band_data
!=
0
]
#
masked_band_data = masked_band_data[masked_band_data != 0]
# Compute categorical statistics for each band
# Compute categorical statistics for each band
unique
,
counts
=
np
.
unique
(
masked_band_data
,
return_counts
=
True
)
unique
,
counts
=
np
.
unique
(
masked_band_data
,
return_counts
=
True
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment