53 if (start_block == NULL || end_block == NULL)
73 for (b = 1; b <=
NBLOCK; b++) {
77 &blksom[
ULI].x, &blksom[
ULI].y);
81 &blksom[
LRI].x, &blksom[
LRI].y);
91 else if (blksom[
ULI].x >= rgnsom.
ulc.
x && blksom[
ULI].
x <= rgnsom.
lrc.
x &&
97 else if (blksom[
LRI].x >= rgnsom.
ulc.
x && blksom[
LRI].
x <= rgnsom.
lrc.
x &&
103 else if (blksom[
LRI].x >= rgnsom.
ulc.
x && blksom[
LRI].
x <= rgnsom.
lrc.
x &&
115 else if (rgnsom.
lrc.
x >= blksom[
ULI].
x && rgnsom.
lrc.
x <= blksom[LRI].
x &&
116 rgnsom.
lrc.
y >= blksom[
ULI].
y && rgnsom.
lrc.
y <= blksom[LRI].
y)
121 if (((blksom[
ULI].x >= rgnsom.
ulc.
x && blksom[
ULI].
x <= rgnsom.
lrc.
x) ||
122 (blksom[LRI].
x >= rgnsom.
ulc.
x && blksom[LRI].
x <= rgnsom.
lrc.
x)) &&
123 (blksom[
ULI].
y < rgnsom.
ulc.
y && blksom[LRI].
y > rgnsom.
lrc.
y))
128 if (((rgnsom.
ulc.
x >= blksom[
ULI].
x && rgnsom.
ulc.
x <= blksom[LRI].
x) ||
129 (rgnsom.
lrc.
x >= blksom[
ULI].
x && rgnsom.
lrc.
x <= blksom[LRI].
x)) &&
130 (rgnsom.
ulc.
y < blksom[
ULI].
y && rgnsom.
lrc.
y > blksom[LRI].
y))
142 *end_block = sb + n - 1;
#define MTK_ERR_CODE_JUMP(code)
HDFFCLIBAPI _fcd _fcd intf * n
MTKt_status MtkBlsToSomXY(int path, int resolution_meters, int block, float line, float sample, double *som_x, double *som_y)
Convert from Block, Line, Sample, to SOM Coordinates.
#define MTK_ERR_COND_JUMP(code)
MTKt_status MtkRegionPathToBlockRange(MTKt_Region region, int path, int *start_block, int *end_block)
Get start and end block numbers of a path over a particular region.
MTKt_status MtkLatLonToSomXY(int path, double lat_dd, double lon_dd, double *som_x, double *som_y)
Convert decimal degrees latitude and longitude to SOM X, SOM Y.