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
2fc3b216
Commit
2fc3b216
authored
15 years ago
by
Julien Michel
Browse files
Options
Downloads
Plain Diff
MRG
parents
9e5d556b
af3564e0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Code/IO/otbImageFileReader.h
+5
-0
5 additions, 0 deletions
Code/IO/otbImageFileReader.h
Code/IO/otbImageFileReader.txx
+8
-7
8 additions, 7 deletions
Code/IO/otbImageFileReader.txx
Code/IO/otbTileMapImageIO.cxx
+0
-1
0 additions, 1 deletion
Code/IO/otbTileMapImageIO.cxx
with
13 additions
and
8 deletions
Code/IO/otbImageFileReader.h
+
5
−
0
View file @
2fc3b216
...
...
@@ -91,6 +91,11 @@ private:
*/
bool
GetGdalReadImageFileName
(
const
std
::
string
&
filename
,
std
::
string
&
GdalFileName
);
// This is a dummy function to prevent curl from writing data to disk
// when testing http adresses
static
size_t
curlDummyWriteFunction
(
void
*
,
size_t
,
size_t
nmemb
,
void
*
);
ImageFileReader
(
const
Self
&
);
//purposely not implemented
void
operator
=
(
const
Self
&
);
//purposely not implemented
...
...
This diff is collapsed.
Click to expand it.
Code/IO/otbImageFileReader.txx
+
8
−
7
View file @
2fc3b216
...
...
@@ -43,12 +43,6 @@
#ifdef OTB_USE_CURL
#include "curl/curl.h"
// This is a dummy function to prevent curl from writing data to disk
// when testing http adresses
size_t curlDummyWriteFunction(void*,size_t,size_t nmemb,void*)
{
return nmemb;
}
#endif
namespace otb
...
...
@@ -474,7 +468,7 @@ ImageFileReader<TOutputImage>
curl_easy_setopt(curl, CURLOPT_USERAGENT, browser.data());
curl_easy_setopt(curl, CURLOPT_URL,this->m_FileName.data());
// Set the dummy write function
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION,&curlDummyWriteFunction);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION,&
Self::
curlDummyWriteFunction);
curl_easy_setopt(curl, CURLOPT_MAXFILESIZE,1);
// Perform requet
...
...
@@ -609,6 +603,13 @@ ImageFileReader<TOutputImage>
otbMsgDevMacro(<<"fic_trouve : "<<fic_trouve);
return( fic_trouve );
}
template <class TOutputImage>
size_t
ImageFileReader<TOutputImage>
::curlDummyWriteFunction(void*,size_t,size_t nmemb,void*)
{
return nmemb;
}
} //namespace otb
...
...
This diff is collapsed.
Click to expand it.
Code/IO/otbTileMapImageIO.cxx
+
0
−
1
View file @
2fc3b216
...
...
@@ -289,7 +289,6 @@ void TileMapImageIO::InternalRead(double x, double y, void* buffer)
}
void
TileMapImageIO
::
BuildFileName
(
const
std
::
ostringstream
&
quad
,
std
::
ostringstream
&
filename
)
const
{
...
...
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