11-21-2019
03:38 AM
- last edited on
11-21-2019
07:22 AM
by
ian.anderson
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
Solved! Go to Solution.
11-21-2019 07:49 AM
All those APIs (or header files) are available in SMSDK 2020. They should be able to use them.
11-21-2019 07:53 AM
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)