hdf4/5 plugin

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

hdf4/5 plugin

epifanio
Hi ,

i'm really interested to have hdf supprt for ossim.

i'm on debian .. i tried the default pkg but it doent work i also tried to build hdf4+5 from source
but the b uild ends with the following error :


/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In constructor ‘ossimHdfGridModel::ossimHdfGridModel(const ossimFilename&, const ossimDrect&, ossimString, ossimString, const ossimIpt&)’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:68:67: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:75:55: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In member function ‘void ossimHdfGridModel::setGridNodes(ossimDblGrid&, int32, const ossimIpt&)’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:112:23: error: ‘MAX_VAR_DIMS’ was not declared in this scope
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:114:18: error: ‘MAX_NC_NAME’ was not declared in this scope
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:40: error: ‘name’ was not declared in this scope
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:53: error: ‘dim_sizes’ was not declared in this scope
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp: In member function ‘bool ossimHdf5SubDataset::initMeta()’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp:317:90: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdfGridModel.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5SubDataset.cpp.o] Error 1
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘bool ossimHdf5Reader::initGlobalMeta()’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:342:49: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:31:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Gpublic.h:78:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:355:39: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:31:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Gpublic.h:78:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘void ossimHdf5Reader::initSubdatasetNames()’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:378:53: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘ossimRefPtr<ossimProjection> ossimHdf5Reader::processGridProjection() const’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:689:47: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:769:41: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5Reader.cpp.o] Error 1
make[1]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/all] Error 2
make: *** [all] Error 2


have you any clue on how to have the hdf plug-in running ?

than ks!

Massimo.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
Reply | Threaded
Open this post in threaded view
|

Re: hdf4/5 plugin

David Burken
Hi Massimo,

I think the plugin was built with an old version.  I'll get the latest
version of hdf and try to fix.

What version do have?

Take care,
Dave

On 11/01/2012 01:37 PM, Massimo Di Stefano wrote:

> Hi ,
>
> i'm really interested to have hdf supprt for ossim.
>
> i'm on debian .. i tried the default pkg but it doent work i also tried to build hdf4+5 from source
> but the b uild ends with the following error :
>
>
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In constructor ‘ossimHdfGridModel::ossimHdfGridModel(const ossimFilename&, const ossimDrect&, ossimString, ossimString, const ossimIpt&)’:
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:68:67: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
> In file included from /usr/local/include/hdf5.h:27:0,
>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
> /usr/local/include/H5Dpublic.h:108:14: note: declared here
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:75:55: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
> In file included from /usr/local/include/hdf5.h:27:0,
>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
> /usr/local/include/H5Dpublic.h:108:14: note: declared here
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In member function ‘void ossimHdfGridModel::setGridNodes(ossimDblGrid&, int32, const ossimIpt&)’:
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:112:23: error: ‘MAX_VAR_DIMS’ was not declared in this scope
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:114:18: error: ‘MAX_NC_NAME’ was not declared in this scope
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:40: error: ‘name’ was not declared in this scope
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:53: error: ‘dim_sizes’ was not declared in this scope
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp: In member function ‘bool ossimHdf5SubDataset::initMeta()’:
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp:317:90: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdfGridModel.cpp.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5SubDataset.cpp.o] Error 1
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘bool ossimHdf5Reader::initGlobalMeta()’:
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:342:49: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
> In file included from /usr/local/include/hdf5.h:31:0,
>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
> /usr/local/include/H5Gpublic.h:78:14: note: declared here
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:355:39: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
> In file included from /usr/local/include/hdf5.h:31:0,
>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
> /usr/local/include/H5Gpublic.h:78:14: note: declared here
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘void ossimHdf5Reader::initSubdatasetNames()’:
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:378:53: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
> In file included from /usr/local/include/hdf5.h:27:0,
>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
> /usr/local/include/H5Dpublic.h:108:14: note: declared here
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘ossimRefPtr<ossimProjection> ossimHdf5Reader::processGridProjection() const’:
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:689:47: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
> In file included from /usr/local/include/hdf5.h:27:0,
>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
> /usr/local/include/H5Dpublic.h:108:14: note: declared here
> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:769:41: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
> In file included from /usr/local/include/hdf5.h:27:0,
>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
> /usr/local/include/H5Dpublic.h:108:14: note: declared here
> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5Reader.cpp.o] Error 1
> make[1]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/all] Error 2
> make: *** [all] Error 2
>
>
> have you any clue on how to have the hdf plug-in running ?
>
> than ks!
>
> Massimo.
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> www.ossim.org
> Ossim-developer mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/ossim-developer
>


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
Reply | Threaded
Open this post in threaded view
|

Re: hdf4/5 plugin

epifanio
Hi Dave :) ,

i'm using the latest stable version for both hdf 4 and hdf 5

hdf-4.2.8
hdf5-1.8.9

Thanks!

Massimo.


Il giorno Nov 1, 2012, alle ore 5:03 PM, David Burken ha scritto:

> Hi Massimo,
>
> I think the plugin was built with an old version.  I'll get the latest
> version of hdf and try to fix.
>
> What version do have?
>
> Take care,
> Dave
>
> On 11/01/2012 01:37 PM, Massimo Di Stefano wrote:
>> Hi ,
>>
>> i'm really interested to have hdf supprt for ossim.
>>
>> i'm on debian .. i tried the default pkg but it doent work i also tried to build hdf4+5 from source
>> but the b uild ends with the following error :
>>
>>
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In constructor ‘ossimHdfGridModel::ossimHdfGridModel(const ossimFilename&, const ossimDrect&, ossimString, ossimString, const ossimIpt&)’:
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:68:67: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>> In file included from /usr/local/include/hdf5.h:27:0,
>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:75:55: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>> In file included from /usr/local/include/hdf5.h:27:0,
>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In member function ‘void ossimHdfGridModel::setGridNodes(ossimDblGrid&, int32, const ossimIpt&)’:
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:112:23: error: ‘MAX_VAR_DIMS’ was not declared in this scope
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:114:18: error: ‘MAX_NC_NAME’ was not declared in this scope
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:40: error: ‘name’ was not declared in this scope
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:53: error: ‘dim_sizes’ was not declared in this scope
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp: In member function ‘bool ossimHdf5SubDataset::initMeta()’:
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp:317:90: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
>> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdfGridModel.cpp.o] Error 1
>> make[2]: *** Waiting for unfinished jobs....
>> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5SubDataset.cpp.o] Error 1
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘bool ossimHdf5Reader::initGlobalMeta()’:
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:342:49: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
>> In file included from /usr/local/include/hdf5.h:31:0,
>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>> /usr/local/include/H5Gpublic.h:78:14: note: declared here
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:355:39: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
>> In file included from /usr/local/include/hdf5.h:31:0,
>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>> /usr/local/include/H5Gpublic.h:78:14: note: declared here
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘void ossimHdf5Reader::initSubdatasetNames()’:
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:378:53: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>> In file included from /usr/local/include/hdf5.h:27:0,
>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘ossimRefPtr<ossimProjection> ossimHdf5Reader::processGridProjection() const’:
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:689:47: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>> In file included from /usr/local/include/hdf5.h:27:0,
>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:769:41: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>> In file included from /usr/local/include/hdf5.h:27:0,
>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5Reader.cpp.o] Error 1
>> make[1]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/all] Error 2
>> make: *** [all] Error 2
>>
>>
>> have you any clue on how to have the hdf plug-in running ?
>>
>> than ks!
>>
>> Massimo.
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>> _______________________________________________
>> www.ossim.org
>> Ossim-developer mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/ossim-developer
>>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> www.ossim.org
> Ossim-developer mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/ossim-developer


------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
Reply | Threaded
Open this post in threaded view
|

Re: hdf4/5 plugin

David Burken
Massimo,

Finally:

$ ossim-info --plugins (snip)
Plugin: /work/osgeo/build/lib/libossimhdf_plugin.so
DESCRIPTION:
Hdf reader plugin

Some notes:

1) I build against hdf-4.2.8 and hdf5-1.8.9.

2) You need shared libs:
-  For hdf4 add "--enable-shared" to configure.
- For hdf5 add "-DBUILD_SHARED_LIBS=ON" to cmake line.

3) You'll need to update "ossim_package_support" and "ossim_plugins/hdf".

Bunch of warnings still!  They were calling deprecated methods.  At some
point we need to fix those...

I don't have any ossim-batch-test for hdf so you'll have to be my
tester.  I'll put that on my list and try to set one up.

Let me know if something doesn't work.

Take care,
Dave


On 11/01/2012 11:20 PM, Massimo Di Stefano wrote:

> Hi Dave :) ,
>
> i'm using the latest stable version for both hdf 4 and hdf 5
>
> hdf-4.2.8
> hdf5-1.8.9
>
> Thanks!
>
> Massimo.
>
>
> Il giorno Nov 1, 2012, alle ore 5:03 PM, David Burken ha scritto:
>
>> Hi Massimo,
>>
>> I think the plugin was built with an old version.  I'll get the latest
>> version of hdf and try to fix.
>>
>> What version do have?
>>
>> Take care,
>> Dave
>>
>> On 11/01/2012 01:37 PM, Massimo Di Stefano wrote:
>>> Hi ,
>>>
>>> i'm really interested to have hdf supprt for ossim.
>>>
>>> i'm on debian .. i tried the default pkg but it doent work i also tried to build hdf4+5 from source
>>> but the b uild ends with the following error :
>>>
>>>
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In constructor ‘ossimHdfGridModel::ossimHdfGridModel(const ossimFilename&, const ossimDrect&, ossimString, ossimString, const ossimIpt&)’:
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:68:67: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:75:55: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In member function ‘void ossimHdfGridModel::setGridNodes(ossimDblGrid&, int32, const ossimIpt&)’:
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:112:23: error: ‘MAX_VAR_DIMS’ was not declared in this scope
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:114:18: error: ‘MAX_NC_NAME’ was not declared in this scope
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:40: error: ‘name’ was not declared in this scope
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:53: error: ‘dim_sizes’ was not declared in this scope
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp: In member function ‘bool ossimHdf5SubDataset::initMeta()’:
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp:317:90: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
>>> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdfGridModel.cpp.o] Error 1
>>> make[2]: *** Waiting for unfinished jobs....
>>> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5SubDataset.cpp.o] Error 1
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘bool ossimHdf5Reader::initGlobalMeta()’:
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:342:49: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
>>> In file included from /usr/local/include/hdf5.h:31:0,
>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>> /usr/local/include/H5Gpublic.h:78:14: note: declared here
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:355:39: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
>>> In file included from /usr/local/include/hdf5.h:31:0,
>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>> /usr/local/include/H5Gpublic.h:78:14: note: declared here
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘void ossimHdf5Reader::initSubdatasetNames()’:
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:378:53: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘ossimRefPtr<ossimProjection> ossimHdf5Reader::processGridProjection() const’:
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:689:47: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:769:41: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5Reader.cpp.o] Error 1
>>> make[1]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>>
>>> have you any clue on how to have the hdf plug-in running ?
>>>
>>> than ks!
>>>
>>> Massimo.
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>>> _______________________________________________
>>> www.ossim.org
>>> Ossim-developer mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/ossim-developer
>>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>> _______________________________________________
>> www.ossim.org
>> Ossim-developer mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/ossim-developer
>


------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
Reply | Threaded
Open this post in threaded view
|

Re: hdf4/5 plugin

epifanio
Hi Dave!


thanks to dive into it, i'll be happy to test it with some hdf produced using a bit of python script.
i still have an error in the build it is :

[ 60%] Built target ossimgeopdf_plugin
Linking CXX shared library ../../Release/libossimhdf_plugin.so
/usr/bin/ld:/usr/local/lib/libhdf4.settings: file format not recognized; treating as linker script
/usr/bin/ld:/usr/local/lib/libhdf4.settings:1: syntax error
collect2: error: ld returned 1 exit status
make[2]: *** [Release/libossimhdf_plugin.so] Error 1
make[1]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/all] Error 2
make: *** [all] Error 2



maybe related to how i build hdf4/5 , i used configure (not cmake) for hdf5, while for hdf4 i sued shared lib ON and disabled fortran.

i'll provide any sort of details you need to debug this :) i'm on a debian sid (hdf4/5 built from source)

thanks!

MAssimo.


Il giorno Nov 3, 2012, alle ore 2:58 PM, David Burken ha scritto:

> Massimo,
>
> Finally:
>
> $ ossim-info --plugins (snip)
> Plugin: /work/osgeo/build/lib/libossimhdf_plugin.so
> DESCRIPTION:
> Hdf reader plugin
>
> Some notes:
>
> 1) I build against hdf-4.2.8 and hdf5-1.8.9.
>
> 2) You need shared libs:
> -  For hdf4 add "--enable-shared" to configure.
> - For hdf5 add "-DBUILD_SHARED_LIBS=ON" to cmake line.
>
> 3) You'll need to update "ossim_package_support" and "ossim_plugins/hdf".
>
> Bunch of warnings still!  They were calling deprecated methods.  At some point we need to fix those...
>
> I don't have any ossim-batch-test for hdf so you'll have to be my tester.  I'll put that on my list and try to set one up.
>
> Let me know if something doesn't work.
>
> Take care,
> Dave
>
>
> On 11/01/2012 11:20 PM, Massimo Di Stefano wrote:
>> Hi Dave :) ,
>>
>> i'm using the latest stable version for both hdf 4 and hdf 5
>>
>> hdf-4.2.8
>> hdf5-1.8.9
>>
>> Thanks!
>>
>> Massimo.
>>
>>
>> Il giorno Nov 1, 2012, alle ore 5:03 PM, David Burken ha scritto:
>>
>>> Hi Massimo,
>>>
>>> I think the plugin was built with an old version.  I'll get the latest
>>> version of hdf and try to fix.
>>>
>>> What version do have?
>>>
>>> Take care,
>>> Dave
>>>
>>> On 11/01/2012 01:37 PM, Massimo Di Stefano wrote:
>>>> Hi ,
>>>>
>>>> i'm really interested to have hdf supprt for ossim.
>>>>
>>>> i'm on debian .. i tried the default pkg but it doent work i also tried to build hdf4+5 from source
>>>> but the b uild ends with the following error :
>>>>
>>>>
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In constructor ‘ossimHdfGridModel::ossimHdfGridModel(const ossimFilename&, const ossimDrect&, ossimString, ossimString, const ossimIpt&)’:
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:68:67: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
>>>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:75:55: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
>>>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In member function ‘void ossimHdfGridModel::setGridNodes(ossimDblGrid&, int32, const ossimIpt&)’:
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:112:23: error: ‘MAX_VAR_DIMS’ was not declared in this scope
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:114:18: error: ‘MAX_NC_NAME’ was not declared in this scope
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:40: error: ‘name’ was not declared in this scope
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:53: error: ‘dim_sizes’ was not declared in this scope
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp: In member function ‘bool ossimHdf5SubDataset::initMeta()’:
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp:317:90: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
>>>> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdfGridModel.cpp.o] Error 1
>>>> make[2]: *** Waiting for unfinished jobs....
>>>> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5SubDataset.cpp.o] Error 1
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘bool ossimHdf5Reader::initGlobalMeta()’:
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:342:49: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
>>>> In file included from /usr/local/include/hdf5.h:31:0,
>>>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>> /usr/local/include/H5Gpublic.h:78:14: note: declared here
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:355:39: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
>>>> In file included from /usr/local/include/hdf5.h:31:0,
>>>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>> /usr/local/include/H5Gpublic.h:78:14: note: declared here
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘void ossimHdf5Reader::initSubdatasetNames()’:
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:378:53: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘ossimRefPtr<ossimProjection> ossimHdf5Reader::processGridProjection() const’:
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:689:47: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:769:41: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>                  from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5Reader.cpp.o] Error 1
>>>> make[1]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/all] Error 2
>>>> make: *** [all] Error 2
>>>>
>>>>
>>>> have you any clue on how to have the hdf plug-in running ?
>>>>
>>>> than ks!
>>>>
>>>> Massimo.
>>>> ------------------------------------------------------------------------------
>>>> Everyone hates slow websites. So do we.
>>>> Make your web apps faster with AppDynamics
>>>> Download AppDynamics Lite for free today:
>>>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>>>> _______________________________________________
>>>> www.ossim.org
>>>> Ossim-developer mailing list
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/ossim-developer
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>>> _______________________________________________
>>> www.ossim.org
>>> Ossim-developer mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/ossim-developer
>>
>


------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
Reply | Threaded
Open this post in threaded view
|

Re: hdf4/5 plugin

David Burken
Hi Massimo,

You might want to also go into your install dir and delete libhdf5.a if there, not sure.  You need to link with the .so not .a (libhdf5.so).

Talk to you later,
Dave

On 11/03/2012 11:07 PM, Massimo Di Stefano wrote:

> Hi Dave!
>
>
> thanks to dive into it, i'll be happy to test it with some hdf produced using a bit of python script.
> i still have an error in the build it is :
>
> [ 60%] Built target ossimgeopdf_plugin
> Linking CXX shared library ../../Release/libossimhdf_plugin.so
> /usr/bin/ld:/usr/local/lib/libhdf4.settings: file format not recognized; treating as linker script
> /usr/bin/ld:/usr/local/lib/libhdf4.settings:1: syntax error
> collect2: error: ld returned 1 exit status
> make[2]: *** [Release/libossimhdf_plugin.so] Error 1
> make[1]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/all] Error 2
> make: *** [all] Error 2
>
>
>
> maybe related to how i build hdf4/5 , i used configure (not cmake) for hdf5, while for hdf4 i sued shared lib ON and disabled fortran.
>
> i'll provide any sort of details you need to debug this :) i'm on a debian sid (hdf4/5 built from source)
>
> thanks!
>
> MAssimo.
>
>
> Il giorno Nov 3, 2012, alle ore 2:58 PM, David Burken ha scritto:
>
>> Massimo,
>>
>> Finally:
>>
>> $ ossim-info --plugins (snip)
>> Plugin: /work/osgeo/build/lib/libossimhdf_plugin.so
>> DESCRIPTION:
>> Hdf reader plugin
>>
>> Some notes:
>>
>> 1) I build against hdf-4.2.8 and hdf5-1.8.9.
>>
>> 2) You need shared libs:
>> -  For hdf4 add "--enable-shared" to configure.
>> - For hdf5 add "-DBUILD_SHARED_LIBS=ON" to cmake line.
>>
>> 3) You'll need to update "ossim_package_support" and "ossim_plugins/hdf".
>>
>> Bunch of warnings still!  They were calling deprecated methods.  At some point we need to fix those...
>>
>> I don't have any ossim-batch-test for hdf so you'll have to be my tester.  I'll put that on my list and try to set one up.
>>
>> Let me know if something doesn't work.
>>
>> Take care,
>> Dave
>>
>>
>> On 11/01/2012 11:20 PM, Massimo Di Stefano wrote:
>>> Hi Dave :) ,
>>>
>>> i'm using the latest stable version for both hdf 4 and hdf 5
>>>
>>> hdf-4.2.8
>>> hdf5-1.8.9
>>>
>>> Thanks!
>>>
>>> Massimo.
>>>
>>>
>>> Il giorno Nov 1, 2012, alle ore 5:03 PM, David Burken ha scritto:
>>>
>>>> Hi Massimo,
>>>>
>>>> I think the plugin was built with an old version.  I'll get the latest
>>>> version of hdf and try to fix.
>>>>
>>>> What version do have?
>>>>
>>>> Take care,
>>>> Dave
>>>>
>>>> On 11/01/2012 01:37 PM, Massimo Di Stefano wrote:
>>>>> Hi ,
>>>>>
>>>>> i'm really interested to have hdf supprt for ossim.
>>>>>
>>>>> i'm on debian .. i tried the default pkg but it doent work i also tried to build hdf4+5 from source
>>>>> but the b uild ends with the following error :
>>>>>
>>>>>
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In constructor ‘ossimHdfGridModel::ossimHdfGridModel(const ossimFilename&, const ossimDrect&, ossimString, ossimString, const ossimIpt&)’:
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:68:67: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
>>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:75:55: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
>>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In member function ‘void ossimHdfGridModel::setGridNodes(ossimDblGrid&, int32, const ossimIpt&)’:
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:112:23: error: ‘MAX_VAR_DIMS’ was not declared in this scope
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:114:18: error: ‘MAX_NC_NAME’ was not declared in this scope
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:40: error: ‘name’ was not declared in this scope
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:53: error: ‘dim_sizes’ was not declared in this scope
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp: In member function ‘bool ossimHdf5SubDataset::initMeta()’:
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp:317:90: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
>>>>> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdfGridModel.cpp.o] Error 1
>>>>> make[2]: *** Waiting for unfinished jobs....
>>>>> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5SubDataset.cpp.o] Error 1
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘bool ossimHdf5Reader::initGlobalMeta()’:
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:342:49: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
>>>>> In file included from /usr/local/include/hdf5.h:31:0,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>>> /usr/local/include/H5Gpublic.h:78:14: note: declared here
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:355:39: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
>>>>> In file included from /usr/local/include/hdf5.h:31:0,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>>> /usr/local/include/H5Gpublic.h:78:14: note: declared here
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘void ossimHdf5Reader::initSubdatasetNames()’:
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:378:53: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘ossimRefPtr<ossimProjection> ossimHdf5Reader::processGridProjection() const’:
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:689:47: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:769:41: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>>> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5Reader.cpp.o] Error 1
>>>>> make[1]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/all] Error 2
>>>>> make: *** [all] Error 2
>>>>>
>>>>>
>>>>> have you any clue on how to have the hdf plug-in running ?
>>>>>
>>>>> than ks!
>>>>>
>>>>> Massimo.
>>>>> ------------------------------------------------------------------------------
>>>>> Everyone hates slow websites. So do we.
>>>>> Make your web apps faster with AppDynamics
>>>>> Download AppDynamics Lite for free today:
>>>>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>>>>> _______________________________________________
>>>>> www.ossim.org
>>>>> Ossim-developer mailing list
>>>>> [hidden email]
>>>>> https://lists.sourceforge.net/lists/listinfo/ossim-developer
>>>>>
>>>> ------------------------------------------------------------------------------
>>>> Everyone hates slow websites. So do we.
>>>> Make your web apps faster with AppDynamics
>>>> Download AppDynamics Lite for free today:
>>>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>>>> _______________________________________________
>>>> www.ossim.org
>>>> Ossim-developer mailing list
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/ossim-developer
>


------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
Reply | Threaded
Open this post in threaded view
|

Re: hdf4/5 plugin

David Burken
In reply to this post by epifanio
Massimo,

Was getting undefined:
$ ossim-info -d MOD09Q1.A2004041.h11v05.004.2004051104335.hdf
ossim-info: symbol lookup error:
/work/osgeo/build/lib/libossimhdf_plugin.so: undefined symbol: SDstart

Added in "mfhdf" (netCDF) library to FindHDF4.cmake.  So you'll need an
update:
ossim_package_support/cmake/CMakeModules/FindHDF4.cmake

Take care,
Dave

On 11/03/2012 11:07 PM, Massimo Di Stefano wrote:

> Hi Dave!
>
>
> thanks to dive into it, i'll be happy to test it with some hdf produced using a bit of python script.
> i still have an error in the build it is :
>
> [ 60%] Built target ossimgeopdf_plugin
> Linking CXX shared library ../../Release/libossimhdf_plugin.so
> /usr/bin/ld:/usr/local/lib/libhdf4.settings: file format not recognized; treating as linker script
> /usr/bin/ld:/usr/local/lib/libhdf4.settings:1: syntax error
> collect2: error: ld returned 1 exit status
> make[2]: *** [Release/libossimhdf_plugin.so] Error 1
> make[1]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/all] Error 2
> make: *** [all] Error 2
>
>
>
> maybe related to how i build hdf4/5 , i used configure (not cmake) for hdf5, while for hdf4 i sued shared lib ON and disabled fortran.
>
> i'll provide any sort of details you need to debug this :) i'm on a debian sid (hdf4/5 built from source)
>
> thanks!
>
> MAssimo.
>
>
> Il giorno Nov 3, 2012, alle ore 2:58 PM, David Burken ha scritto:
>
>> Massimo,
>>
>> Finally:
>>
>> $ ossim-info --plugins (snip)
>> Plugin: /work/osgeo/build/lib/libossimhdf_plugin.so
>> DESCRIPTION:
>> Hdf reader plugin
>>
>> Some notes:
>>
>> 1) I build against hdf-4.2.8 and hdf5-1.8.9.
>>
>> 2) You need shared libs:
>> -  For hdf4 add "--enable-shared" to configure.
>> - For hdf5 add "-DBUILD_SHARED_LIBS=ON" to cmake line.
>>
>> 3) You'll need to update "ossim_package_support" and "ossim_plugins/hdf".
>>
>> Bunch of warnings still!  They were calling deprecated methods.  At some point we need to fix those...
>>
>> I don't have any ossim-batch-test for hdf so you'll have to be my tester.  I'll put that on my list and try to set one up.
>>
>> Let me know if something doesn't work.
>>
>> Take care,
>> Dave
>>
>>
>> On 11/01/2012 11:20 PM, Massimo Di Stefano wrote:
>>> Hi Dave :) ,
>>>
>>> i'm using the latest stable version for both hdf 4 and hdf 5
>>>
>>> hdf-4.2.8
>>> hdf5-1.8.9
>>>
>>> Thanks!
>>>
>>> Massimo.
>>>
>>>
>>> Il giorno Nov 1, 2012, alle ore 5:03 PM, David Burken ha scritto:
>>>
>>>> Hi Massimo,
>>>>
>>>> I think the plugin was built with an old version.  I'll get the latest
>>>> version of hdf and try to fix.
>>>>
>>>> What version do have?
>>>>
>>>> Take care,
>>>> Dave
>>>>
>>>> On 11/01/2012 01:37 PM, Massimo Di Stefano wrote:
>>>>> Hi ,
>>>>>
>>>>> i'm really interested to have hdf supprt for ossim.
>>>>>
>>>>> i'm on debian .. i tried the default pkg but it doent work i also tried to build hdf4+5 from source
>>>>> but the b uild ends with the following error :
>>>>>
>>>>>
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In constructor ‘ossimHdfGridModel::ossimHdfGridModel(const ossimFilename&, const ossimDrect&, ossimString, ossimString, const ossimIpt&)’:
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:68:67: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
>>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:75:55: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
>>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In member function ‘void ossimHdfGridModel::setGridNodes(ossimDblGrid&, int32, const ossimIpt&)’:
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:112:23: error: ‘MAX_VAR_DIMS’ was not declared in this scope
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:114:18: error: ‘MAX_NC_NAME’ was not declared in this scope
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:40: error: ‘name’ was not declared in this scope
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:53: error: ‘dim_sizes’ was not declared in this scope
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp: In member function ‘bool ossimHdf5SubDataset::initMeta()’:
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp:317:90: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
>>>>> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdfGridModel.cpp.o] Error 1
>>>>> make[2]: *** Waiting for unfinished jobs....
>>>>> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5SubDataset.cpp.o] Error 1
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘bool ossimHdf5Reader::initGlobalMeta()’:
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:342:49: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
>>>>> In file included from /usr/local/include/hdf5.h:31:0,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>>> /usr/local/include/H5Gpublic.h:78:14: note: declared here
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:355:39: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
>>>>> In file included from /usr/local/include/hdf5.h:31:0,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>>> /usr/local/include/H5Gpublic.h:78:14: note: declared here
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘void ossimHdf5Reader::initSubdatasetNames()’:
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:378:53: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘ossimRefPtr<ossimProjection> ossimHdf5Reader::processGridProjection() const’:
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:689:47: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:769:41: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>>> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5Reader.cpp.o] Error 1
>>>>> make[1]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/all] Error 2
>>>>> make: *** [all] Error 2
>>>>>
>>>>>
>>>>> have you any clue on how to have the hdf plug-in running ?
>>>>>
>>>>> than ks!
>>>>>
>>>>> Massimo.
>>>>> ------------------------------------------------------------------------------
>>>>> Everyone hates slow websites. So do we.
>>>>> Make your web apps faster with AppDynamics
>>>>> Download AppDynamics Lite for free today:
>>>>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>>>>> _______________________________________________
>>>>> www.ossim.org
>>>>> Ossim-developer mailing list
>>>>> [hidden email]
>>>>> https://lists.sourceforge.net/lists/listinfo/ossim-developer
>>>>>
>>>> ------------------------------------------------------------------------------
>>>> Everyone hates slow websites. So do we.
>>>> Make your web apps faster with AppDynamics
>>>> Download AppDynamics Lite for free today:
>>>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>>>> _______________________________________________
>>>> www.ossim.org
>>>> Ossim-developer mailing list
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/ossim-developer
>


------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
Reply | Threaded
Open this post in threaded view
|

Re: hdf4/5 plugin

epifanio
David,

i built hdf4 (using cmake) disabling fortran enabling shared
i tested it using an hdf file from :


imagelinker load it correctly and saving one of the layer as geotiff 
the resulting file is displayed correctly in Qgis :)

great !!!

Massimo.




Il giorno Nov 4, 2012, alle ore 8:00 AM, David Burken ha scritto:

Massimo,

Was getting undefined:
$ ossim-info -d MOD09Q1.A2004041.h11v05.004.2004051104335.hdf
ossim-info: symbol lookup error: /work/osgeo/build/lib/libossimhdf_plugin.so: undefined symbol: SDstart

Added in "mfhdf" (netCDF) library to FindHDF4.cmake.  So you'll need an update:
ossim_package_support/cmake/CMakeModules/FindHDF4.cmake

Take care,
Dave

On 11/03/2012 11:07 PM, Massimo Di Stefano wrote:
Hi Dave!


thanks to dive into it, i'll be happy to test it with some hdf produced using a bit of python script.
i still have an error in the build it is :

[ 60%] Built target ossimgeopdf_plugin
Linking CXX shared library ../../Release/libossimhdf_plugin.so
/usr/bin/ld:/usr/local/lib/libhdf4.settings: file format not recognized; treating as linker script
/usr/bin/ld:/usr/local/lib/libhdf4.settings:1: syntax error
collect2: error: ld returned 1 exit status
make[2]: *** [Release/libossimhdf_plugin.so] Error 1
make[1]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/all] Error 2
make: *** [all] Error 2



maybe related to how i build hdf4/5 , i used configure (not cmake) for hdf5, while for hdf4 i sued shared lib ON and disabled fortran.

i'll provide any sort of details you need to debug this :) i'm on a debian sid (hdf4/5 built from source)

thanks!

MAssimo.


Il giorno Nov 3, 2012, alle ore 2:58 PM, David Burken ha scritto:

Massimo,

Finally:

$ ossim-info --plugins (snip)
Plugin: /work/osgeo/build/lib/libossimhdf_plugin.so
DESCRIPTION:
Hdf reader plugin

Some notes:

1) I build against hdf-4.2.8 and hdf5-1.8.9.

2) You need shared libs:
-  For hdf4 add "--enable-shared" to configure.
- For hdf5 add "-DBUILD_SHARED_LIBS=ON" to cmake line.

3) You'll need to update "ossim_package_support" and "ossim_plugins/hdf".

Bunch of warnings still!  They were calling deprecated methods.  At some point we need to fix those...

I don't have any ossim-batch-test for hdf so you'll have to be my tester.  I'll put that on my list and try to set one up.

Let me know if something doesn't work.

Take care,
Dave


On 11/01/2012 11:20 PM, Massimo Di Stefano wrote:
Hi Dave :) ,

i'm using the latest stable version for both hdf 4 and hdf 5

hdf-4.2.8
hdf5-1.8.9

Thanks!

Massimo.


Il giorno Nov 1, 2012, alle ore 5:03 PM, David Burken ha scritto:

Hi Massimo,

I think the plugin was built with an old version.  I'll get the latest
version of hdf and try to fix.

What version do have?

Take care,
Dave

On 11/01/2012 01:37 PM, Massimo Di Stefano wrote:
Hi ,

i'm really interested to have hdf supprt for ossim.

i'm on debian .. i tried the default pkg but it doent work i also tried to build hdf4+5 from source
but the b uild ends with the following error :


/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In constructor ‘ossimHdfGridModel::ossimHdfGridModel(const ossimFilename&, const ossimDrect&, ossimString, ossimString, const ossimIpt&)’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:68:67: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:75:55: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In member function ‘void ossimHdfGridModel::setGridNodes(ossimDblGrid&, int32, const ossimIpt&)’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:112:23: error: ‘MAX_VAR_DIMS’ was not declared in this scope
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:114:18: error: ‘MAX_NC_NAME’ was not declared in this scope
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:40: error: ‘name’ was not declared in this scope
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:53: error: ‘dim_sizes’ was not declared in this scope
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp: In member function ‘bool ossimHdf5SubDataset::initMeta()’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp:317:90: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdfGridModel.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5SubDataset.cpp.o] Error 1
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘bool ossimHdf5Reader::initGlobalMeta()’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:342:49: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:31:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Gpublic.h:78:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:355:39: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:31:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Gpublic.h:78:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘void ossimHdf5Reader::initSubdatasetNames()’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:378:53: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘ossimRefPtr<ossimProjection> ossimHdf5Reader::processGridProjection() const’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:689:47: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:769:41: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5Reader.cpp.o] Error 1
make[1]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/all] Error 2
make: *** [all] Error 2


have you any clue on how to have the hdf plug-in running ?

than ks!

Massimo.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer




------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
Reply | Threaded
Open this post in threaded view
|

Re: hdf4/5 plugin

Peter Borissow
Massimo-
    I'm glad you got it to work! We wrote the HDF plugin about 2 years ago for a NASA demo. I would classify it as alpha-ware so use with caution.

The metadata dump via ossim-info is pretty comprehensive and is great for archiving purposes. There are, however, a few issues on the image processing side. For example, there are projection issues with scenes crossing datelines and the poles. This has more to do with OSSIM than the HDF plugin per se.

Also, last time I checked, the ossim cache class is causing problems when processing HDF data. It seems it is introducing blank tiles in the region where the resampler needs to jump res levels. According to Oscar, this is due to the highly nonlinear mapping from the grid to geographic, there are multiple res level requests on the cache and it doesn't like it. As a test, Oscar removed the cache from orthoigen chain and it runs much faster. I think there is a "no-cache" switch in orthoigen now.

There might be a couple other issues, mostly sensor specific (e.g. Hyperion) but I can't remember them all off hand. Of course, that was 2 years ago so some of these issues might have been resolved since then.


One last thing I think might be helpful for HDF is a little known, but powerful feature in orthoigen to combine layers from *multiple files* to create a single, multiband image file. We used this to create "true color", RGB images from Level 1B MODIS Data. MODIS data is published in 4 different HDF files. Example:

MOD021KM -- Bands 8-36 at 1KM resolution
MOD02HKM -- Bands 3-7 at 500M resolution
MOD02QKM -- Bands 1-2 at 250M resolution
MOD03 -- Metadata

To create a "true color", RGB image we used orthoigen and a .src file. Unfortunately, I can't remember the exact syntax for the src file. I think it was some special extension of the "rgb" keyword.

Here's what a simple src file looks like for a multiband TIF file.
image0.file: C:\my_image.tif
image0.entry: 0
image0.rgb: 7,2,5
image0.hist: C:\my_image.his
image0.hist-op: auto-minmax
For HDF, we used something a little more sophisticated that involved file paths and entry numbers for the rgb keyword. Ming wrote it for us at SPADAC but I don't know if it ever made its way into the osgeo trunk. Maybe Dave or Oscar can help with that.


Anyway, hope you have fun!
Peter





From: Massimo Di Stefano <[hidden email]>
To: David Burken <[hidden email]>
Cc: [hidden email]
Sent: Sunday, November 4, 2012 4:06 PM
Subject: Re: [OSSIM] hdf4/5 plugin

David,

i built hdf4 (using cmake) disabling fortran enabling shared
i tested it using an hdf file from :


imagelinker load it correctly and saving one of the layer as geotiff 
the resulting file is displayed correctly in Qgis :)

great !!!

Massimo.




Il giorno Nov 4, 2012, alle ore 8:00 AM, David Burken ha scritto:

Massimo,

Was getting undefined:
$ ossim-info -d MOD09Q1.A2004041.h11v05.004.2004051104335.hdf
ossim-info: symbol lookup error: /work/osgeo/build/lib/libossimhdf_plugin.so: undefined symbol: SDstart

Added in "mfhdf" (netCDF) library to FindHDF4.cmake.  So you'll need an update:
ossim_package_support/cmake/CMakeModules/FindHDF4.cmake

Take care,
Dave

On 11/03/2012 11:07 PM, Massimo Di Stefano wrote:
Hi Dave!


thanks to dive into it, i'll be happy to test it with some hdf produced using a bit of python script.
i still have an error in the build it is :

[ 60%] Built target ossimgeopdf_plugin
Linking CXX shared library ../../Release/libossimhdf_plugin.so
/usr/bin/ld:/usr/local/lib/libhdf4.settings: file format not recognized; treating as linker script
/usr/bin/ld:/usr/local/lib/libhdf4.settings:1: syntax error
collect2: error: ld returned 1 exit status
make[2]: *** [Release/libossimhdf_plugin.so] Error 1
make[1]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/all] Error 2
make: *** [all] Error 2



maybe related to how i build hdf4/5 , i used configure (not cmake) for hdf5, while for hdf4 i sued shared lib ON and disabled fortran.

i'll provide any sort of details you need to debug this :) i'm on a debian sid (hdf4/5 built from source)

thanks!

MAssimo.


Il giorno Nov 3, 2012, alle ore 2:58 PM, David Burken ha scritto:

Massimo,

Finally:

$ ossim-info --plugins (snip)
Plugin: /work/osgeo/build/lib/libossimhdf_plugin.so
DESCRIPTION:
Hdf reader plugin

Some notes:

1) I build against hdf-4.2.8 and hdf5-1.8.9.

2) You need shared libs:
-  For hdf4 add "--enable-shared" to configure.
- For hdf5 add "-DBUILD_SHARED_LIBS=ON" to cmake line.

3) You'll need to update "ossim_package_support" and "ossim_plugins/hdf".

Bunch of warnings still!  They were calling deprecated methods.  At some point we need to fix those...

I don't have any ossim-batch-test for hdf so you'll have to be my tester.  I'll put that on my list and try to set one up.

Let me know if something doesn't work.

Take care,
Dave


On 11/01/2012 11:20 PM, Massimo Di Stefano wrote:
Hi Dave :) ,

i'm using the latest stable version for both hdf 4 and hdf 5

hdf-4.2.8
hdf5-1.8.9

Thanks!

Massimo.


Il giorno Nov 1, 2012, alle ore 5:03 PM, David Burken ha scritto:

Hi Massimo,

I think the plugin was built with an old version.  I'll get the latest
version of hdf and try to fix.

What version do have?

Take care,
Dave

On 11/01/2012 01:37 PM, Massimo Di Stefano wrote:
Hi ,

i'm really interested to have hdf supprt for ossim.

i'm on debian .. i tried the default pkg but it doent work i also tried to build hdf4+5 from source
but the b uild ends with the following error :


/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In constructor ‘ossimHdfGridModel::ossimHdfGridModel(const ossimFilename&, const ossimDrect&, ossimString, ossimString, const ossimIpt&)’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:68:67: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:75:55: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In member function ‘void ossimHdfGridModel::setGridNodes(ossimDblGrid&, int32, const ossimIpt&)’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:112:23: error: ‘MAX_VAR_DIMS’ was not declared in this scope
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:114:18: error: ‘MAX_NC_NAME’ was not declared in this scope
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:40: error: ‘name’ was not declared in this scope
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:53: error: ‘dim_sizes’ was not declared in this scope
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp: In member function ‘bool ossimHdf5SubDataset::initMeta()’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp:317:90: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdfGridModel.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5SubDataset.cpp.o] Error 1
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘bool ossimHdf5Reader::initGlobalMeta()’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:342:49: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:31:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Gpublic.h:78:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:355:39: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:31:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Gpublic.h:78:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘void ossimHdf5Reader::initSubdatasetNames()’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:378:53: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘ossimRefPtr<ossimProjection> ossimHdf5Reader::processGridProjection() const’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:689:47: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:769:41: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5Reader.cpp.o] Error 1
make[1]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/all] Error 2
make: *** [all] Error 2


have you any clue on how to have the hdf plug-in running ?

than ks!

Massimo.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer




------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer



------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
Reply | Threaded
Open this post in threaded view
|

Re: hdf4/5 plugin

epifanio
i saw a recent upgrade to support hdf5 (i'm using hdf5 as main data storage from inside python) and i was wondering if using potables to store some gridded values in a hdf4 … will woe with ossim :)

i'm stuck at the build of the new plug-in for now (maybe is my version of hdf5 that needs an upgrade .. but i'm clueless for now)


i fixed an include error (temporary) changing in the src code from :

#include <cpp/H5Cpp.h>

to 

#include <H5Cpp.h>

but now  i got this error :

[ 58%] Building CXX object ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdfGridModel.cpp.o
/usr/local/src/ossim/ossim_plugins/hdf/ossimHdfGridModel.cpp:117:23: error: use of undeclared identifier 'MAX_VAR_DIMS'
      int32 dim_sizes[MAX_VAR_DIMS];
                      ^
/usr/local/src/ossim/ossim_plugins/hdf/ossimHdfGridModel.cpp:119:18: error: use of undeclared identifier 'MAX_NC_NAME'
      char  name[MAX_NC_NAME];
                 ^

have you any clue on how to fix it ?


thanks!!!


Massimo.


Il giorno 05/nov/2012, alle ore 08:30, Peter Borissow <[hidden email]> ha scritto:

Massimo-
    I'm glad you got it to work! We wrote the HDF plugin about 2 years ago for a NASA demo. I would classify it as alpha-ware so use with caution.

The metadata dump via ossim-info is pretty comprehensive and is great for archiving purposes. There are, however, a few issues on the image processing side. For example, there are projection issues with scenes crossing datelines and the poles. This has more to do with OSSIM than the HDF plugin per se.

Also, last time I checked, the ossim cache class is causing problems when processing HDF data. It seems it is introducing blank tiles in the region where the resampler needs to jump res levels. According to Oscar, this is due to the highly nonlinear mapping from the grid to geographic, there are multiple res level requests on the cache and it doesn't like it. As a test, Oscar removed the cache from orthoigen chain and it runs much faster. I think there is a "no-cache" switch in orthoigen now.

There might be a couple other issues, mostly sensor specific (e.g. Hyperion) but I can't remember them all off hand. Of course, that was 2 years ago so some of these issues might have been resolved since then.


One last thing I think might be helpful for HDF is a little known, but powerful feature in orthoigen to combine layers from *multiple files* to create a single, multiband image file. We used this to create "true color", RGB images from Level 1B MODIS Data. MODIS data is published in 4 different HDF files. Example:

MOD021KM -- Bands 8-36 at 1KM resolution
MOD02HKM -- Bands 3-7 at 500M resolution
MOD02QKM -- Bands 1-2 at 250M resolution
MOD03 -- Metadata

To create a "true color", RGB image we used orthoigen and a .src file. Unfortunately, I can't remember the exact syntax for the src file. I think it was some special extension of the "rgb" keyword.

Here's what a simple src file looks like for a multiband TIF file.
image0.file: C:\my_image.tif
image0.entry: 0
image0.rgb: 7,2,5
image0.hist: C:\my_image.his
image0.hist-op: auto-minmax
For HDF, we used something a little more sophisticated that involved file paths and entry numbers for the rgb keyword. Ming wrote it for us at SPADAC but I don't know if it ever made its way into the osgeo trunk. Maybe Dave or Oscar can help with that.


Anyway, hope you have fun!
Peter





From: Massimo Di Stefano <[hidden email]>
To: David Burken <[hidden email]>
Cc: [hidden email]
Sent: Sunday, November 4, 2012 4:06 PM
Subject: Re: [OSSIM] hdf4/5 plugin

David,

i built hdf4 (using cmake) disabling fortran enabling shared
i tested it using an hdf file from :


imagelinker load it correctly and saving one of the layer as geotiff 
the resulting file is displayed correctly in Qgis :)

great !!!

Massimo.




Il giorno Nov 4, 2012, alle ore 8:00 AM, David Burken ha scritto:

Massimo,

Was getting undefined:
$ ossim-info -d MOD09Q1.A2004041.h11v05.004.2004051104335.hdf
ossim-info: symbol lookup error: /work/osgeo/build/lib/libossimhdf_plugin.so: undefined symbol: SDstart

Added in "mfhdf" (netCDF) library to FindHDF4.cmake.  So you'll need an update:
ossim_package_support/cmake/CMakeModules/FindHDF4.cmake

Take care,
Dave

On 11/03/2012 11:07 PM, Massimo Di Stefano wrote:
Hi Dave!


thanks to dive into it, i'll be happy to test it with some hdf produced using a bit of python script.
i still have an error in the build it is :

[ 60%] Built target ossimgeopdf_plugin
Linking CXX shared library ../../Release/libossimhdf_plugin.so
/usr/bin/ld:/usr/local/lib/libhdf4.settings: file format not recognized; treating as linker script
/usr/bin/ld:/usr/local/lib/libhdf4.settings:1: syntax error
collect2: error: ld returned 1 exit status
make[2]: *** [Release/libossimhdf_plugin.so] Error 1
make[1]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/all] Error 2
make: *** [all] Error 2



maybe related to how i build hdf4/5 , i used configure (not cmake) for hdf5, while for hdf4 i sued shared lib ON and disabled fortran.

i'll provide any sort of details you need to debug this :) i'm on a debian sid (hdf4/5 built from source)

thanks!

MAssimo.


Il giorno Nov 3, 2012, alle ore 2:58 PM, David Burken ha scritto:

Massimo,

Finally:

$ ossim-info --plugins (snip)
Plugin: /work/osgeo/build/lib/libossimhdf_plugin.so
DESCRIPTION:
Hdf reader plugin

Some notes:

1) I build against hdf-4.2.8 and hdf5-1.8.9.

2) You need shared libs:
-  For hdf4 add "--enable-shared" to configure.
- For hdf5 add "-DBUILD_SHARED_LIBS=ON" to cmake line.

3) You'll need to update "ossim_package_support" and "ossim_plugins/hdf".

Bunch of warnings still!  They were calling deprecated methods.  At some point we need to fix those...

I don't have any ossim-batch-test for hdf so you'll have to be my tester.  I'll put that on my list and try to set one up.

Let me know if something doesn't work.

Take care,
Dave


On 11/01/2012 11:20 PM, Massimo Di Stefano wrote:
Hi Dave :) ,

i'm using the latest stable version for both hdf 4 and hdf 5

hdf-4.2.8
hdf5-1.8.9

Thanks!

Massimo.


Il giorno Nov 1, 2012, alle ore 5:03 PM, David Burken ha scritto:

Hi Massimo,

I think the plugin was built with an old version.  I'll get the latest
version of hdf and try to fix.

What version do have?

Take care,
Dave

On 11/01/2012 01:37 PM, Massimo Di Stefano wrote:
Hi ,

i'm really interested to have hdf supprt for ossim.

i'm on debian .. i tried the default pkg but it doent work i also tried to build hdf4+5 from source
but the b uild ends with the following error :


/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In constructor ‘ossimHdfGridModel::ossimHdfGridModel(const ossimFilename&, const ossimDrect&, ossimString, ossimString, const ossimIpt&)’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:68:67: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:75:55: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In member function ‘void ossimHdfGridModel::setGridNodes(ossimDblGrid&, int32, const ossimIpt&)’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:112:23: error: ‘MAX_VAR_DIMS’ was not declared in this scope
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:114:18: error: ‘MAX_NC_NAME’ was not declared in this scope
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:40: error: ‘name’ was not declared in this scope
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:53: error: ‘dim_sizes’ was not declared in this scope
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp: In member function ‘bool ossimHdf5SubDataset::initMeta()’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp:317:90: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdfGridModel.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5SubDataset.cpp.o] Error 1
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘bool ossimHdf5Reader::initGlobalMeta()’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:342:49: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:31:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Gpublic.h:78:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:355:39: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:31:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Gpublic.h:78:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘void ossimHdf5Reader::initSubdatasetNames()’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:378:53: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘ossimRefPtr<ossimProjection> ossimHdf5Reader::processGridProjection() const’:
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:689:47: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
/home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:769:41: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
In file included from /usr/local/include/hdf5.h:27:0,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
                 from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
/usr/local/include/H5Dpublic.h:108:14: note: declared here
make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5Reader.cpp.o] Error 1
make[1]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/all] Error 2
make: *** [all] Error 2


have you any clue on how to have the hdf plug-in running ?

than ks!

Massimo.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer




------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer




------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
Reply | Threaded
Open this post in threaded view
|

Re: hdf4/5 plugin

David Burken
Massimo,

I compiled with:

hdf5-1.8.10

You have to turn on the c++.  You also need szip.  Sorry man!

Here's my cmake script.

$ cat hdf5-cmake-config.sh
#!/bin/sh

# ---
# File: hdf5-cmake-config.sh
# ---

build_dir="/work/osgeo";

cmake -G "Unix Makefiles" \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INCLUDE_PATH=${build_dir}/local/include \
-DCMAKE_INSTALL_PREFIX=${build_dir}/local \
-DCMAKE_LIBRARY_PATH=${build_dir}/local/lib \
-DCMAKE_PREFIX_PATH=${build_dir}/local \
-DHDF5_BUILD_CPP_LIB=ON \
-DHDF5_BUILD_EXAMPLES=ON \
-DHDF5_BUILD_TOOLS=ON \
-DHDF5_ENABLE_SZIP_SUPPORT=1 \
-DHDF5_ENABLE_Z_LIB_SUPPORT=1 \
-DSZIP_INCLUDE_DIR=${build_dir}/local/include \
-DSZIP_LIBRARY=${build_dir}/local/lib/libszip.so \
../hdf5-1.8.10

On 01/16/2013 12:56 PM, epi wrote:

> i saw a recent upgrade to support hdf5 (i'm using hdf5 as main data storage from inside python) and i was wondering if using potables to store some gridded values in a hdf4 … will woe with ossim :)
>
> i'm stuck at the build of the new plug-in for now (maybe is my version of hdf5 that needs an upgrade .. but i'm clueless for now)
>
>
> i fixed an include error (temporary) changing in the src code from :
>
> #include <cpp/H5Cpp.h>
>
> to
>
> #include <H5Cpp.h>
>
> but now  i got this error :
>
> [ 58%] Building CXX object ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdfGridModel.cpp.o
> /usr/local/src/ossim/ossim_plugins/hdf/ossimHdfGridModel.cpp:117:23: error: use of undeclared identifier 'MAX_VAR_DIMS'
>        int32 dim_sizes[MAX_VAR_DIMS];
>                        ^
> /usr/local/src/ossim/ossim_plugins/hdf/ossimHdfGridModel.cpp:119:18: error: use of undeclared identifier 'MAX_NC_NAME'
>        char  name[MAX_NC_NAME];
>                   ^
>
> have you any clue on how to fix it ?
>
>
> thanks!!!
>
>
> Massimo.
>
>
> Il giorno 05/nov/2012, alle ore 08:30, Peter Borissow <[hidden email]> ha scritto:
>
>> Massimo-
>>      I'm glad you got it to work! We wrote the HDF plugin about 2 years ago for a NASA demo. I would classify it as alpha-ware so use with caution.
>>
>> The metadata dump via ossim-info is pretty comprehensive and is great for archiving purposes. There are, however, a few issues on the image processing side. For example, there are projection issues with scenes crossing datelines and the poles. This has more to do with OSSIM than the HDF plugin per se.
>>
>> Also, last time I checked, the ossim cache class is causing problems when processing HDF data. It seems it is introducing blank tiles in the region where the resampler needs to jump res levels. According to Oscar, this is due to the highly nonlinear mapping from the grid to geographic, there are multiple res level requests on the cache and it doesn't like it. As a test, Oscar removed the cache from orthoigen chain and it runs much faster. I think there is a "no-cache" switch in orthoigen now.
>>
>> There might be a couple other issues, mostly sensor specific (e.g. Hyperion) but I can't remember them all off hand. Of course, that was 2 years ago so some of these issues might have been resolved since then.
>>
>>
>> One last thing I think might be helpful for HDF is a little known, but powerful feature in orthoigen to combine layers from *multiple files* to create a single, multiband image file. We used this to create "true color", RGB images from Level 1B MODIS Data. MODIS data is published in 4 different HDF files. Example:
>>
>> MOD021KM -- Bands 8-36 at 1KM resolution
>> MOD02HKM -- Bands 3-7 at 500M resolution
>> MOD02QKM -- Bands 1-2 at 250M resolution
>> MOD03 -- Metadata
>>
>> To create a "true color", RGB image we used orthoigen and a .src file. Unfortunately, I can't remember the exact syntax for the src file. I think it was some special extension of the "rgb" keyword.
>>
>> Here's what a simple src file looks like for a multiband TIF file.
>> image0.file: C:\my_image.tif
>> image0.entry: 0
>> image0.rgb: 7,2,5
>> image0.hist: C:\my_image.his
>> image0.hist-op: auto-minmax
>> For HDF, we used something a little more sophisticated that involved file paths and entry numbers for the rgb keyword. Ming wrote it for us at SPADAC but I don't know if it ever made its way into the osgeo trunk. Maybe Dave or Oscar can help with that.
>>
>>
>> Anyway, hope you have fun!
>> Peter
>>
>>
>>
>>
>> From: Massimo Di Stefano <[hidden email]>
>> To: David Burken <[hidden email]>
>> Cc: [hidden email]
>> Sent: Sunday, November 4, 2012 4:06 PM
>> Subject: Re: [OSSIM] hdf4/5 plugin
>>
>> David,
>>
>> i built hdf4 (using cmake) disabling fortran enabling shared
>> i tested it using an hdf file from :
>>
>> ftp://e4ftl01.cr.usgs.gov/MOLA/MYD09A1.005/2002.07.04/
>>
>> imagelinker load it correctly and saving one of the layer as geotiff
>> the resulting file is displayed correctly in Qgis :)
>>
>> great !!!
>>
>> Massimo.
>>
>>
>>
>>
>> Il giorno Nov 4, 2012, alle ore 8:00 AM, David Burken ha scritto:
>>
>>> Massimo,
>>>
>>> Was getting undefined:
>>> $ ossim-info -d MOD09Q1.A2004041.h11v05.004.2004051104335.hdf
>>> ossim-info: symbol lookup error: /work/osgeo/build/lib/libossimhdf_plugin.so: undefined symbol: SDstart
>>>
>>> Added in "mfhdf" (netCDF) library to FindHDF4.cmake.  So you'll need an update:
>>> ossim_package_support/cmake/CMakeModules/FindHDF4.cmake
>>>
>>> Take care,
>>> Dave
>>>
>>> On 11/03/2012 11:07 PM, Massimo Di Stefano wrote:
>>>> Hi Dave!
>>>>
>>>>
>>>> thanks to dive into it, i'll be happy to test it with some hdf produced using a bit of python script.
>>>> i still have an error in the build it is :
>>>>
>>>> [ 60%] Built target ossimgeopdf_plugin
>>>> Linking CXX shared library ../../Release/libossimhdf_plugin.so
>>>> /usr/bin/ld:/usr/local/lib/libhdf4.settings: file format not recognized; treating as linker script
>>>> /usr/bin/ld:/usr/local/lib/libhdf4.settings:1: syntax error
>>>> collect2: error: ld returned 1 exit status
>>>> make[2]: *** [Release/libossimhdf_plugin.so] Error 1
>>>> make[1]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/all] Error 2
>>>> make: *** [all] Error 2
>>>>
>>>>
>>>>
>>>> maybe related to how i build hdf4/5 , i used configure (not cmake) for hdf5, while for hdf4 i sued shared lib ON and disabled fortran.
>>>>
>>>> i'll provide any sort of details you need to debug this :) i'm on a debian sid (hdf4/5 built from source)
>>>>
>>>> thanks!
>>>>
>>>> MAssimo.
>>>>
>>>>
>>>> Il giorno Nov 3, 2012, alle ore 2:58 PM, David Burken ha scritto:
>>>>
>>>>> Massimo,
>>>>>
>>>>> Finally:
>>>>>
>>>>> $ ossim-info --plugins (snip)
>>>>> Plugin: /work/osgeo/build/lib/libossimhdf_plugin.so
>>>>> DESCRIPTION:
>>>>> Hdf reader plugin
>>>>>
>>>>> Some notes:
>>>>>
>>>>> 1) I build against hdf-4.2.8 and hdf5-1.8.9.
>>>>>
>>>>> 2) You need shared libs:
>>>>> -  For hdf4 add "--enable-shared" to configure.
>>>>> - For hdf5 add "-DBUILD_SHARED_LIBS=ON" to cmake line.
>>>>>
>>>>> 3) You'll need to update "ossim_package_support" and "ossim_plugins/hdf".
>>>>>
>>>>> Bunch of warnings still!  They were calling deprecated methods.  At some point we need to fix those...
>>>>>
>>>>> I don't have any ossim-batch-test for hdf so you'll have to be my tester.  I'll put that on my list and try to set one up.
>>>>>
>>>>> Let me know if something doesn't work.
>>>>>
>>>>> Take care,
>>>>> Dave
>>>>>
>>>>>
>>>>> On 11/01/2012 11:20 PM, Massimo Di Stefano wrote:
>>>>>> Hi Dave :) ,
>>>>>>
>>>>>> i'm using the latest stable version for both hdf 4 and hdf 5
>>>>>>
>>>>>> hdf-4.2.8
>>>>>> hdf5-1.8.9
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>> Massimo.
>>>>>>
>>>>>>
>>>>>> Il giorno Nov 1, 2012, alle ore 5:03 PM, David Burken ha scritto:
>>>>>>
>>>>>>> Hi Massimo,
>>>>>>>
>>>>>>> I think the plugin was built with an old version.  I'll get the latest
>>>>>>> version of hdf and try to fix.
>>>>>>>
>>>>>>> What version do have?
>>>>>>>
>>>>>>> Take care,
>>>>>>> Dave
>>>>>>>
>>>>>>> On 11/01/2012 01:37 PM, Massimo Di Stefano wrote:
>>>>>>>> Hi ,
>>>>>>>>
>>>>>>>> i'm really interested to have hdf supprt for ossim.
>>>>>>>>
>>>>>>>> i'm on debian .. i tried the default pkg but it doent work i also tried to build hdf4+5 from source
>>>>>>>> but the b uild ends with the following error :
>>>>>>>>
>>>>>>>>
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In constructor ‘ossimHdfGridModel::ossimHdfGridModel(const ossimFilename&, const ossimDrect&, ossimString, ossimString, const ossimIpt&)’:
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:68:67: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>>>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
>>>>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
>>>>>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:75:55: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>>>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.h:27,
>>>>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:19:
>>>>>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp: In member function ‘void ossimHdfGridModel::setGridNodes(ossimDblGrid&, int32, const ossimIpt&)’:
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:112:23: error: ‘MAX_VAR_DIMS’ was not declared in this scope
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:114:18: error: ‘MAX_NC_NAME’ was not declared in this scope
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:40: error: ‘name’ was not declared in this scope
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdfGridModel.cpp:116:53: error: ‘dim_sizes’ was not declared in this scope
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp: In member function ‘bool ossimHdf5SubDataset::initMeta()’:
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5SubDataset.cpp:317:90: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
>>>>>>>> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdfGridModel.cpp.o] Error 1
>>>>>>>> make[2]: *** Waiting for unfinished jobs....
>>>>>>>> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5SubDataset.cpp.o] Error 1
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘bool ossimHdf5Reader::initGlobalMeta()’:
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:342:49: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
>>>>>>>> In file included from /usr/local/include/hdf5.h:31:0,
>>>>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>>>>>> /usr/local/include/H5Gpublic.h:78:14: note: declared here
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:346:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:355:39: error: too few arguments to function ‘hid_t H5Gopen2(hid_t, const char*, hid_t)’
>>>>>>>> In file included from /usr/local/include/hdf5.h:31:0,
>>>>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>>>>>> /usr/local/include/H5Gpublic.h:78:14: note: declared here
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: invalid conversion from ‘long int’ to ‘H5_index_t’ [-fpermissive]
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:359:76: error: cannot convert ‘herr_t (*)(hid_t, const char*, void*) {aka int (*)(int, const char*, void*)}’ to ‘H5_iter_order_t’ for argument ‘3’ to ‘herr_t H5Aiterate2(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5A_operator2_t, void*)’
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘void ossimHdf5Reader::initSubdatasetNames()’:
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:378:53: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>>>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>>>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp: In member function ‘ossimRefPtr<ossimProjection> ossimHdf5Reader::processGridProjection() const’:
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:689:47: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>>>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>>>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>>>>>> /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:769:41: error: too few arguments to function ‘hid_t H5Dopen2(hid_t, const char*, hid_t)’
>>>>>>>> In file included from /usr/local/include/hdf5.h:27:0,
>>>>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.h:18,
>>>>>>>>                   from /home/epy/dev/ossim-dev/ossim_plugins/hdf/ossimHdf5Reader.cpp:16:
>>>>>>>> /usr/local/include/H5Dpublic.h:108:14: note: declared here
>>>>>>>> make[2]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/ossimHdf5Reader.cpp.o] Error 1
>>>>>>>> make[1]: *** [ossim_plugins/hdf/CMakeFiles/ossimhdf_plugin.dir/all] Error 2
>>>>>>>> make: *** [all] Error 2
>>>>>>>>
>>>>>>>>
>>>>>>>> have you any clue on how to have the hdf plug-in running ?
>>>>>>>>
>>>>>>>> than ks!
>>>>>>>>
>>>>>>>> Massimo.
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> Everyone hates slow websites. So do we.
>>>>>>>> Make your web apps faster with AppDynamics
>>>>>>>> Download AppDynamics Lite for free today:
>>>>>>>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>>>>>>>> _______________________________________________
>>>>>>>> www.ossim.org
>>>>>>>> Ossim-developer mailing list
>>>>>>>> [hidden email]
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/ossim-developer
>>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Everyone hates slow websites. So do we.
>>>>>>> Make your web apps faster with AppDynamics
>>>>>>> Download AppDynamics Lite for free today:
>>>>>>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>>>>>>> _______________________________________________
>>>>>>> www.ossim.org
>>>>>>> Ossim-developer mailing list
>>>>>>> [hidden email]
>>>>>>> https://lists.sourceforge.net/lists/listinfo/ossim-developer
>>
>> ------------------------------------------------------------------------------
>> LogMeIn Central: Instant, anywhere, Remote PC access and management.
>> Stay in control, update software, and manage PCs from one command center
>> Diagnose problems and improve visibility into emerging IT issues
>> Automate, monitor and manage. Do more in less time with Central
>> http://p.sf.net/sfu/logmein12331_d2d
>> _______________________________________________
>> www.ossim.org
>> Ossim-developer mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/ossim-developer
>>
>>
>


------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
vf
Reply | Threaded
Open this post in threaded view
|

Re: hdf4/5 plugin

vf
Just some remarks for the hdf plugin compilation under Windows:

CMakeLists.txt adds: (similar to gdal CMakeLists and which is missing in hdf)
####
# OSSIMPLUGINSMAKINGDLL controls dll linkage on windows.  
# Adding this sets OSSIM_PLUGINS_DLL #define TO "__declspec(dllexport)".
###
add_definitions("-DOSSIMPLUGINSMAKINGDLL")

this avoids the error : "C2491: definition of dllimport static data member not allowed"

To avoid the error "C2491: definition of dllimport function not allowed", I inserted a file
"ossimHdfPluginInit.h" with the following declarations :

OSSIM_PLUGINS_DLL void ossimSharedLibraryInitialize( ossimSharedObjectInfo** info );
OSSIM_PLUGINS_DLL void ossimSharedLibraryFinalize();

and removed symbols OSSIM_PLUGINS_DLL in cpp file.


Cheers,
Victor

ossimHdfPluginInit.h
CMakeLists.txt



Reply | Threaded
Open this post in threaded view
|

Re: hdf4/5 plugin

David Burken
Thanks Victor, I'll put those in...

Dave

On 07/10/2013 07:45 AM, vf wrote:

> Just some remarks for the hdf plugin compilation under Windows:
>
> CMakeLists.txt adds: (similar to gdal CMakeLists and which is missing in
> hdf)
> ####
> # OSSIMPLUGINSMAKINGDLL controls dll linkage on windows.
> # Adding this sets OSSIM_PLUGINS_DLL #define TO "__declspec(dllexport)".
> ###
> add_definitions("-DOSSIMPLUGINSMAKINGDLL")
>
> this avoids the error : "C2491: definition of dllimport static data member
> not allowed"
>
> To avoid the error "C2491: definition of dllimport function not allowed", I
> inserted a file
> "ossimHdfPluginInit.h" with the following declarations :
>
> OSSIM_PLUGINS_DLL void ossimSharedLibraryInitialize( ossimSharedObjectInfo**
> info );
> OSSIM_PLUGINS_DLL void ossimSharedLibraryFinalize();
>
> and removed symbols OSSIM_PLUGINS_DLL in cpp file.
>
>
> Cheers,
> Victor
>
> ossimHdfPluginInit.h
> <http://osgeo-org.1560.x6.nabble.com/file/n5065382/ossimHdfPluginInit.h>
> CMakeLists.txt
> <http://osgeo-org.1560.x6.nabble.com/file/n5065382/CMakeLists.txt>
>
>
>
>
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/hdf4-5-plugin-tp5013363p5065382.html
> Sent from the Ossim-developer mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> www.ossim.org
> Ossim-developer mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/ossim-developer
>


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
vf
Reply | Threaded
Open this post in threaded view
|

Re: hdf4/5 plugin

vf
In reply to this post by vf

EDIT :
However, only CMakeLists modification is sufficient. Including ossimHdfPluginInit.h makes plugin not loadable. Thus, no need to include ossimHdfPluginInit.h and modify ossimHdfPluginInit.cpp
Reply | Threaded
Open this post in threaded view
|

Re: hdf4/5 plugin

David Burken
I'll test when I add.  Won't be able to do until Friday.  Note that
plugin's a work in progress.  Big push for NPP data lately.  So I'll be
tweaking it as needed...

Dave

On 07/10/2013 08:48 AM, vf wrote:

> EDIT :
> However, only CMakeLists modification is sufficient. Including
> ossimHdfPluginInit.h makes plugin not loadable. Thus, no need to include
> ossimHdfPluginInit.h and modify ossimHdfPluginInit.cpp
>
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/hdf4-5-plugin-tp5013363p5065410.html
> Sent from the Ossim-developer mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> www.ossim.org
> Ossim-developer mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/ossim-developer
>


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer