Code Red > AutoLISP (Vanilla / Visual)

Insert image GeoTiff

<< < (2/4) > >>

Rod:
It seems the vector (binary data) holds a single dimensions array of 48 digits they are (unsigned 8 bit one byte decimal) either ANSI or unicode
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
123 82 149 98 55 49 27 65
2 69 211 172 177 213 89 65
0 0 0 0 0 0 0 0

If you split this into groups of 8 digits it probably corresponds to these 6 numbers
0 0 0 445517.8462 6771539.4103 0

I'm not really sure how they are encoded. Hopefully someone else can help? I vaguely remember reading about big / little endianness.

FELIX:

--- Quote from: Rod on February 03, 2019, 07:01:24 PM ---0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
123 82 149 98 55 49 27 65
2 69 211 172 177 213 89 65
0 0 0 0 0 0 0 0

--- End quote ---

where did you get these digits?

FELIX:

--- Code: ---(setq arq "d:\\testegeo.tif")
(setq lista (exifdata arq))
(foreach ll lista (print ll))

(setq vl1 (cdr (assoc "33922" lista)))
(setq vl2 (cdr (assoc "34737" lista)))
(setq vl3 (cdr (assoc "33550" lista)))

(setq vpt1 (..... vl1)) ; how to convert to coordinate point?
(setq vpt2 (..... vl2)) ; how to convert to coordinate point?
(setq vpt3 (..... vl3)) ; how to convert to coordinate point
.
.
.

--- End code ---

Rod:
I got the list from this (vlax-safearray->list(vlax-variant-value(VLAX-GET-PROPERTY (cdr(assoc "33922" idata)) 'binarydata)))

The value associated with 34737 is a string of the coorinate system
The vector assocaited with 33550 is the x and y of the pixel scale and could be encoded differently

sorry I can't help you more.

FELIX:
123 82 149   98   55   49 27 65     --> 445517.8462
    2 69 211 172 177 213 89 65   --> 6771539.4103

1     2   3     4     5    6    7   8

how did this conversion? No need to program just explain briefly.
 

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version