Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
1e89441b
Commit
1e89441b
authored
13 years ago
by
Otmane Lahlou
Browse files
Options
Downloads
Patches
Plain Diff
ENH : Set AutomaticStrippedStreaming to O to avoid timeout
parent
b00dfe4b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/IO/otbKmzProductWriter.txx
+1
-1
1 addition, 1 deletion
Code/IO/otbKmzProductWriter.txx
Code/IO/otbMapFileProductWriter.txx
+15
-9
15 additions, 9 deletions
Code/IO/otbMapFileProductWriter.txx
with
16 additions
and
10 deletions
Code/IO/otbKmzProductWriter.txx
+
1
−
1
View file @
1e89441b
...
...
@@ -156,7 +156,6 @@ KmzProductWriter<TInputImage>
// Create a kmz file
m_KmzFileName << m_Path << "/" << m_FileName << m_KmzExtension;
m_KmzFile = kmlengine::KmzFile::Create(m_KmzFileName.str().c_str());
}
/**
...
...
@@ -308,6 +307,7 @@ KmzProductWriter<TInputImage>
m_StreamingShrinkImageFilter->SetShrinkFactor(sampleRatioValue);
m_StreamingShrinkImageFilter->SetInput(m_VectorImage);
m_StreamingShrinkImageFilter->GetStreamer()->SetAutomaticStrippedStreaming(0);
m_StreamingShrinkImageFilter->Update();
m_VectorRescaleIntensityImageFilter = VectorRescaleIntensityImageFilterType::New();
...
...
This diff is collapsed.
Click to expand it.
Code/IO/otbMapFileProductWriter.txx
+
15
−
9
View file @
1e89441b
...
...
@@ -239,8 +239,9 @@ MapFileProductWriter<TInputImage>
m_StreamingShrinkImageFilter->SetShrinkFactor(sampleRatioValue);
m_StreamingShrinkImageFilter->SetInput(m_VectorImage);
m_StreamingShrinkImageFilter->GetStreamer()->SetAutomaticStrippedStreaming(0);
m_StreamingShrinkImageFilter->Update();
m_VectorRescaleIntensityImageFilter = VectorRescaleIntensityImageFilterType::New();
m_VectorRescaleIntensityImageFilter->SetInput(m_StreamingShrinkImageFilter->GetOutput());
m_VectorRescaleIntensityImageFilter->SetOutputMinimum(outMin);
...
...
@@ -358,10 +359,15 @@ MapFileProductWriter<TInputImage>
// Search Lat/Lon box
// Initialize the transform to be used
typename TransformType::Pointer transform = TransformType::New();
transform->SetInputProjectionRef(m_GenericRSResampler->GetOutputProjectionRef());
transform->SetOutputProjectionRef(otb::GeoInformationConversion::ToWKT(m_SRID));
transform->InstanciateTransform();
//typename TransformType::Pointer transform =
//TransformType::New();
m_Transform = TransformType::New();
m_Transform->SetInputProjectionRef(m_GenericRSResampler->GetOutputProjectionRef());
m_Transform->SetOutputProjectionRef(otb::GeoInformationConversion::ToWKT(m_SRID));
if(!m_DEMDirectory.empty())
m_Transform->SetDEMDirectory(m_DEMDirectory);
m_Transform->InstanciateTransform();
InputPointType inputPoint;
IndexType indexTile;
...
...
@@ -373,28 +379,28 @@ MapFileProductWriter<TInputImage>
indexTile[0] = extractIndex[0];
indexTile[1] = extractIndex[1] + sizeTile[1];
m_ResampleVectorImage->TransformIndexToPhysicalPoint(indexTile, inputPoint);
OutputPointType lowerLeftCorner =
t
ransform->TransformPoint(inputPoint);
OutputPointType lowerLeftCorner =
m_T
ransform->TransformPoint(inputPoint);
//std::cout <<"indexTile "<< indexTile <<" --> input Point "<< inputPoint << " lowerLeftCorner "<< lowerLeftCorner << std::endl;
// Compute lower right corner
indexTile[0] = extractIndex[0] + sizeTile[0];
indexTile[1] = extractIndex[1] + sizeTile[1];
m_ResampleVectorImage->TransformIndexToPhysicalPoint(indexTile, inputPoint);
OutputPointType lowerRightCorner =
t
ransform->TransformPoint(inputPoint);
OutputPointType lowerRightCorner =
m_T
ransform->TransformPoint(inputPoint);
//std::cout <<"indexTile "<< indexTile <<" --> input Point "<< inputPoint << " lowerRightCorner "<< lowerRightCorner << std::endl;
// Compute upper right corner
indexTile[0] = extractIndex[0]+ sizeTile[0];
indexTile[1] = extractIndex[1];
m_ResampleVectorImage->TransformIndexToPhysicalPoint(indexTile, inputPoint);
OutputPointType upperRightCorner =
t
ransform->TransformPoint(inputPoint);
OutputPointType upperRightCorner =
m_T
ransform->TransformPoint(inputPoint);
//std::cout <<"indexTile "<< indexTile <<" --> input Point "<< inputPoint << " upperRightCorner "<< upperRightCorner << std::endl;
// Compute upper left corner
indexTile[0] = extractIndex[0];
indexTile[1] = extractIndex[1];
m_ResampleVectorImage->TransformIndexToPhysicalPoint(indexTile, inputPoint);
OutputPointType upperLeftCorner =
t
ransform->TransformPoint(inputPoint);
OutputPointType upperLeftCorner =
m_T
ransform->TransformPoint(inputPoint);
//std::cout <<"indexTile "<< indexTile <<" --> input Point "<< inputPoint << " upperLeftCorner "<< upperLeftCorner << std::endl;
// Build The indexTile
...
...
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