Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fishnet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenz Gruber
fishnet
Commits
470198dc
Commit
470198dc
authored
1 month ago
by
Lorenz Gruber
Browse files
Options
Downloads
Patches
Plain Diff
first running example with shapefile as cwl record
parent
e705ca2f
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#69201
passed
1 month ago
Stage: build
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cwl/fishnet/Filter_Corvara_IT_stderr.log
+0
-0
0 additions, 0 deletions
cwl/fishnet/Filter_Corvara_IT_stderr.log
cwl/fishnet/Filter_Corvara_IT_stdout.log
+1
-1
1 addition, 1 deletion
cwl/fishnet/Filter_Corvara_IT_stdout.log
cwl/fishnet/filter.cwl
+13
-15
13 additions, 15 deletions
cwl/fishnet/filter.cwl
with
14 additions
and
16 deletions
cwl/fishnet/Filter_Corvara_IT_stderr.log
0 → 100644
+
0
−
0
View file @
470198dc
This diff is collapsed.
Click to expand it.
cwl/fishnet/
2788f2d4bc612df66c3f8b81bec53ca805ed197c
→
cwl/fishnet/
Filter_Corvara_IT_stdout.log
+
1
−
1
View file @
470198dc
...
...
@@ -49,7 +49,7 @@
],
"visualize-edges": true
},
"duration[s]": 0.03
23066
79,
"duration[s]": 0.03
1367
79,
"input": "Corvara_IT.shp",
"output": "Corvara_IT_filtered.shp",
"polygon count": 26,
...
...
This diff is collapsed.
Click to expand it.
cwl/fishnet/filter.cwl
+
13
−
15
View file @
470198dc
...
...
@@ -25,28 +25,26 @@ outputs:
type: stdout
errorOut:
type: stderr
outF
ile:
filtered_shapef
ile:
type: ../GIS.yml#Shapefile
outputBinding:
glob: "*_filtered.
shp
" #
Ensure we find
the shapefile
output
glob: "*_filtered.
*
" #
Gather all files associate with
the shapefile
outputEval: |
${
if (self.length === 0) {
throw new Error("No filtered shapefile found.");
}
var shpFile = self[0]; // The matched .shp file
var baseName = shpFile.nameroot; // Remove .shp extension
function findAssociatedFiles(ext){
return self.find(function(f){return f.basename === self[0].nameroot + ext;}) || null;
}
return {
"shp":
shpFile
,
"shx":
self.find(function(f) { return f.basename === baseName + ".shx"; }) || null
,
"dbf":
self.find(function(f) { return f.basename === baseName + ".dbf"; }) || null
,
"prj":
self.find(function(f) { return f.basename === baseName + ".prj"; }) || null
,
"cpg":
self.find(function(f) { return f.basename === baseName + ".cpg"; }) || null
,
"qpj":
self.find(function(f) { return f.basename === baseName + ".qpj"; }) || null
"shp":
findAssociatedFiles(".shp")
,
"shx":
findAssociatedFiles(".shx")
,
"dbf":
findAssociatedFiles(".dbf")
,
"prj":
findAssociatedFiles(".prj")
,
"cpg":
findAssociatedFiles(".cpg")
,
"qpj":
findAssociatedFiles(".qpj")
};
}
stderr: Filter_stderr.log
stdout: Filter_$(inputs.gisFile.file.nameroot)_stdout.log
stderr: Filter_$(inputs.gisFile.file.nameroot)_stderr.log
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