Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Valued Contributor
Posts: 706
Registered: ‎10-27-2015
Accepted Solution

2015 - 2020 APIs compatibilty

[ Edited ]

Dear all,
one of our customers had developed some custom tools using IMAGINE Developers' Toolkit 2015.

They now want to upgrade their licenses to 2020.

 

Can they use these API in Spatial Modeler SDK 2020? We know that IMAGINE SDK is no more available.

 

include eerr.h
#include eint.h
#include esmg.h
#include emsc.h
#include eimg.h
#include earg.h
#include evue.h
#include estr.h
#include epho_blockapi.h
#include epho_block.h
#include ikonosdata.h
#include cameradata.h

#define EFS0(msg) EERR_FATAL_SET_0(__LINE__, msg)
#define EFS1(msg, arg) EERR_FATAL_SET_1(__LINE__, msg, arg)

Eint_InitToolkitData *tkInit = NULL;
Eprj_ProParameters *projProParms = NULL;
Eprj_ElevationInfo *elevParms = NULL;
Epho_Block bd;
IkonosFrameInfo ifi;
EERR_INIT("dsmBlockFile", &lclerr, lclerr);
tkInit = eint_InitToolkit((Emsc_Opaque**)&lclerr);
eprj_ProParametersCreate(&lclerr);
eprj_CharStrCreate("Geographic (Lat/Lon)", &(projProParms->proName), &lclerr);
eprj_SpheroidByName(eint_GetInit(), "WGS 84", projProParms->proSpheroid, &lclerr);
eprj_DatumByName(eint_GetInit(), "WGS 84", "WGS 84", projProParms->proSpheroid->datum, &lclerr);
epho_BlockInit((Etxt_Text) blockFilename.c_str(), "degrees", "meters", "radians", projProParms, "IKONOS", &ifi, &lclerr);
epho_BlockDataSetDefaultStdDev(bd, 1e-06, 1e-06, 1.0E+01, &lclerr);
epho_BlockImageAdd(bd, &ifi, k1 + 1, "L1AImage", &lclerr);
epho_ReferencePointNew(k1, gcpCoord[k1].lon, gcpCoord[k1].lat, gcpCoord[k1].height, EMSC_TRUE, EMSC_TRUE, EMSC_TRUE, GCP_FULL, GCP_CONTROL, "", &lclerr);
epho_BlockAddReferencePoint(bd, rp, &lclerr);
epho_BlockWrite((Etxt_Text) blockFilename.c_str(), bd, &lclerr);
eprj_ProParametersFree(&projProParms);

 

thanks

 

Staff
Posts: 10
Registered: ‎10-09-2015

Re: 2015 - 2020 APIs compatibilty

All those APIs (or header files) are available in SMSDK 2020. They should be able to use them.

Technical Evangelist
Posts: 57
Registered: ‎09-16-2015

Re: 2015 - 2020 APIs compatibilty

The following APIs are in eCommon, which is in the SMSDK:

eerr.h
eint.h
emsc.h

estr.h

earg.h

 

The following APIs are in elib, which is in the SMSDK:

esmg.h

evue.h

 

The following API is in eraster, which is the SMSDK:

eimg.h

 

The following API is in eprj, which is in the SMSDK:

eprj.h (BTW, this should be listed in the #include list)