Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
f6759712
Commit
f6759712
authored
Jun 19, 2012
by
Julien Michel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TEST: Updating tests
parent
992be04c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
Code/BasicFilters/otbOGRDataSourceToLabelImageFilter.txx
Code/BasicFilters/otbOGRDataSourceToLabelImageFilter.txx
+1
-1
Testing/Applications/Rasterization/CMakeLists.txt
Testing/Applications/Rasterization/CMakeLists.txt
+14
-8
No files found.
Code/BasicFilters/otbOGRDataSourceToLabelImageFilter.txx
View file @
f6759712
...
...
@@ -202,7 +202,7 @@ OGRDataSourceToLabelImageFilter<TOutputImage>::GenerateData()
for(unsigned int band = 0; band < nbBands;++band)
{
GDALRasterBandH hBand = GDALGetRasterBand(dataset, band + 1);
GDAL
Set
Raster
NoDataValue
(hBand, m_BackgroundValue);
GDAL
Fill
Raster(hBand, m_BackgroundValue
, 0
);
}
// add the geoTransform to the dataset
...
...
Testing/Applications/Rasterization/CMakeLists.txt
View file @
f6759712
...
...
@@ -7,6 +7,8 @@ OTB_TEST_APPLICATION(NAME apTvRsRasterizationLines
OPTIONS -in
${
LARGEDATA
}
/VECTOR/MidiPyrenees/roads.shp
-im
${
BASELINE
}
/apTvRsRasterizationLines.tif
-out
${
TEMP
}
/apTvRsRasterizationLines.tif uint8
-background 255
-mode.binary.foreground 0
VALID --compare-image
${
NOTOL
}
${
BASELINE
}
/apTvRsRasterizationLines.tif
${
TEMP
}
/apTvRsRasterizationLines.tif
)
...
...
@@ -27,6 +29,8 @@ OTB_TEST_APPLICATION(NAME apTvRsRasterizationPoints
OPTIONS -in
${
LARGEDATA
}
/VECTOR/MidiPyrenees/points.shp
-im
${
BASELINE
}
/apTvRsRasterizationPoints.tif
-out
${
TEMP
}
/apTvRsRasterizationPoints.tif uint8
-background 255
-mode.binary.foreground 0
VALID --compare-image
${
NOTOL
}
${
BASELINE
}
/apTvRsRasterizationPoints.tif
${
TEMP
}
/apTvRsRasterizationPoints.tif
)
...
...
@@ -36,9 +40,11 @@ ENDIF( OTB_DATA_USE_LARGEINPUT )
OTB_TEST_APPLICATION
(
NAME apTvRsRasterizationPolygons
APP Rasterization
OPTIONS -in
${
INPUTDATA
}
/Rasterization/polgons.shp
-s
z
x 1
100
-s
z
y 1
100
-s
p
x 1
.
-s
p
y 1
.
-out
${
TEMP
}
/apTvRsRasterizationPolygons.tif uint8
-background 255
-mode.binary.foreground 0
VALID --compare-image
${
NOTOL
}
${
BASELINE
}
/apTvRsRasterizationPolygons.tif
${
TEMP
}
/apTvRsRasterizationPolygons.tif
)
...
...
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