Shared Samples

Try out source code samples stored in Bitbucket repositories.
Showing results for 
Search instead for 
Do you mean 

Application Function DLL imageGetGeoreferencing

by Technical Evangelist on ‎09-10-2015 09:28 AM - edited on ‎03-29-2016 11:22 AM by Anonymous (1,159 Views)

Example Type

Application Function DLL

 

 

Purpose

This example shows how to return georeferencing and geocoding information from an image.

 

Files

 

imageGetGeoreferencing.c

 (C source code)

 

imageGetGeoreferencing.eml

(EML source code)

 

imageGetGeoreferencing.dsp

 (Visual C++ Project)(Windows Only)

 

Description

 

The imageGetGeoreferencing example is intended to retrieve the georeferencing and geocoding information from an image and display this in the appropriate fields in the EML. This will show how to call a function from an EML that get processed in the Application Function DLL and then returns the information back to the EML.

All the information that we need is embedded within these two main structures. Eprj_MapProjection and Eprj_MapInfo. The structure members are then added to a string list (Estr_StringList) that is returned to the EML interface as an array of strings.

 

 

Application Function Arguments

 

getprojectioninfo($inputrasterfile)

getmapinfo($inputrasterfile)

 

 

 

Interface

 demo.jpg

 

 

Notes

Be careful of the order in which you add strings to the string list to be returned. If the first element of a string list is numeric, the EML will interpret all elements of the string list to be a numeric array. This will effectively discard any strings. If you have a mixed string list that contains character strings and "number" strings, make sure that the first element is a character string, allowing the EML to interpret everything as being characters. This will return all values, but you will not be able to perform arithmetic on the returned values

 

 

Source Code

 

https://bitbucket.org/HGDN/hgdn_erdas_imagine/src/e1ade3b7d148b0f2f1aa6427044dfa4bce6226ee/Af_imageG...

Comments
by
on ‎10-09-2017 01:28 AM
Hi, I am trying to access the source code on BitBucket but it says "Access Denied". Is there some kind of authorization needed?
Overview
Contributors