Skip to content
Snippets Groups Projects
Commit 1fc44253 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

STYLE: more info on the assumption in SHP vector data

parent c4126bcf
Branches
Tags
No related merge requests found
...@@ -137,7 +137,7 @@ SHPVectorDataIO<TData> ...@@ -137,7 +137,7 @@ SHPVectorDataIO<TData>
} }
else else
{ {
otbMsgDevMacro(<< "Projection information unavailable"); otbMsgDevMacro(<< "Projection information unavailable: assuming WGS84");
} }
// For each layer // For each layer
...@@ -186,7 +186,7 @@ SHPVectorDataIO<TData> ...@@ -186,7 +186,7 @@ SHPVectorDataIO<TData>
DataNodePointerType folder = DataNodeType::New(); DataNodePointerType folder = DataNodeType::New();
folder->SetNodeType(FOLDER); folder->SetNodeType(FOLDER);
folder->SetNodeId(feature->GetDefnRef()->GetName()); folder->SetNodeId(feature->GetDefnRef()->GetName());
// Reading fields // Reading fields
for (int fieldIndex = 0; fieldIndex<dfn->GetFieldCount();++fieldIndex) for (int fieldIndex = 0; fieldIndex<dfn->GetFieldCount();++fieldIndex)
{ {
...@@ -200,7 +200,7 @@ SHPVectorDataIO<TData> ...@@ -200,7 +200,7 @@ SHPVectorDataIO<TData>
typename InternalTreeNodeType::Pointer folderPtr = InternalTreeNodeType::New(); typename InternalTreeNodeType::Pointer folderPtr = InternalTreeNodeType::New();
folderPtr->Set(folder); folderPtr->Set(folder);
documentPtr->AddChild(folderPtr); documentPtr->AddChild(folderPtr);
// A pointer to the current multi-geometry // A pointer to the current multi-geometry
InternalTreeNodeType * multiPtr; InternalTreeNodeType * multiPtr;
...@@ -255,13 +255,13 @@ SHPVectorDataIO<TData> ...@@ -255,13 +255,13 @@ SHPVectorDataIO<TData>
} }
case wkbMultiPoint: case wkbMultiPoint:
{ {
DataNodePointerType multi = DataNodeType::New(); DataNodePointerType multi = DataNodeType::New();
multi->SetNodeType(FEATURE_MULTIPOINT); multi->SetNodeType(FEATURE_MULTIPOINT);
multiPtr = InternalTreeNodeType::New(); multiPtr = InternalTreeNodeType::New();
multiPtr->Set(multi); multiPtr->Set(multi);
folderPtr->AddChild(multiPtr); folderPtr->AddChild(multiPtr);
OGRMultiPoint * ogrMulti = (OGRMultiPoint *) geometry; OGRMultiPoint * ogrMulti = (OGRMultiPoint *) geometry;
for (int geoIndex = 0;geoIndex<ogrMulti->getNumGeometries();++geoIndex) for (int geoIndex = 0;geoIndex<ogrMulti->getNumGeometries();++geoIndex)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment