Commit 46febc85 authored by Jordi Inglada's avatar Jordi Inglada

ENH: remove shp from members

parent 51c64405
......@@ -177,16 +177,12 @@ public:
{
otbAppLogINFO("Zone definition: vector");
otbAppLogINFO("Loading vector data...");
shp = GetParameterVectorData("inzone.vector.in");
m_VectorDataSrc = GetParameterVectorData("inzone.vector.in");
// Reproject vector data
if (GetParameterInt("inzone.vector.reproject") != 0)
{
ReprojectVectorDataIntoInputImage();
}
else
{
m_VectorDataSrc = shp;
}
RasterizeInputVectorData();
// Computing stats
m_StatsFilter->SetInputLabelImage(m_RasterizeFilter->GetOutput());
......@@ -197,7 +193,7 @@ public:
{
otbAppLogINFO("Vector data reprojection enabled");
m_VectorDataReprojectionFilter = VectorDataReprojFilterType::New();
m_VectorDataReprojectionFilter->SetInputVectorData(shp);
m_VectorDataReprojectionFilter->SetInputVectorData(m_VectorDataSrc.GetPointer());
m_VectorDataReprojectionFilter->SetInputImage(m_InputImage);
AddProcess(m_VectorDataReprojectionFilter, "Reproject vector data");
m_VectorDataReprojectionFilter->Update();
......@@ -380,7 +376,6 @@ public:
VectorDataType::Pointer m_VectorDataSrc;
VectorDataType::Pointer m_NewVectorData;
VectorDataType* shp;
VectorDataReprojFilterType::Pointer m_VectorDataReprojectionFilter;
RasterizeFilterType::Pointer m_RasterizeFilter;
StatsFilterType::Pointer m_StatsFilter;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment