<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">I have found a bug in the Xtherion
command "\help\Calibrate bitmap". <br>
<br>
<span id="result_box" class="" lang="en"><span class="">The
command does not work when the longitude is between Greenwich
and 1 degree west (example -0.2333). </span></span><span
id="result_box" class="" lang="en"><span class="">I do not think
it should work for the latitudes between the equator and 1
degree south.<br>
</span></span><br>
<span id="result_box" class="" lang="en"><span class=""><span
id="result_box" class="" lang="en"><span class="">I think
the problem comes from the "ll2ozi" function of the
Xtherion "mapcalc.tc" file.</span> <span class="">It
takes the integer value of the longitude and latitude (int
[$ lat]). </span></span></span></span><span
id="result_box" class="" lang="en"><span class=""><span
id="result_box" class="" lang="en"><span class=""><span
id="result_box" class="" lang="en"><span class="">When
the longitude is between 0 and 1 of west corresponds
a negative value of 0, which the integer function
considers a error. <br>
<br>
</span></span></span></span></span></span><span
id="result_box" class="" lang="en"><span class=""><span
id="result_box" class="" lang="en"><span class=""><span
id="result_box" class="" lang="en"><span class=""><span
id="result_box" class="" lang="en"><span class="">The
problem is that I just have two karstic zones that
are located in those longitude.<br>
<br>
</span></span></span></span></span></span></span></span><span
id="result_box" class="" lang="en"><span class=""><span
id="result_box" class="" lang="en"><span class=""><span
id="result_box" class="" lang="en"><span class=""><span
id="result_box" class="" lang="en"><span class=""><span
id="result_box" class="" lang="en"><span
class="">As long as that error is not
corrected I have developed in following trick.
</span></span></span></span></span></span></span></span></span></span><span
id="result_box" class="short_text" lang="en"><span class=""><br>
</span></span>
<blockquote><span id="result_box" class="short_text" lang="en"><span
class=""><i>Process twice the pdf file with the command </i></span></span><i>"\help\Calibrate
bitmap". </i><br>
<i><span id="result_box" class="short_text" lang="en"><span
class="">With the first execution I create the png file. </span></span></i><i><span
id="result_box" class="" lang="en"><span class="">Later it
changed the name to the pdf, and I open it in an editor, </span></span></i><i>and
search "thCalibrate". </i><i><span id="result_box"
class="short_text" lang="en"><span class="">I eliminate the
minus signs of the coordinates (L, F). </span></span></i><br>
<i><span id="result_box" class="" lang="en"><span class="">Execute
again </span></span></i><i><span id="result_box" class=""
lang="en"><span class=""><span id="result_box"
class="short_text" lang="en"><span class=""></span></span>"\help\Calibrate
bitmap" with this new file, generating the file ".map". </span></span></i><i><span
id="result_box" class="" lang="en"><span class="">I open and
edit the .map file changing the E by W in the coordinates.
</span></span></i><br>
<i><span id="result_box" class="" lang="en"><span class=""></span></span></i><span
id="result_box" class="" lang="en"><span class=""><span
id="result_box" class="" lang="en"><span class=""><i>Finally
I rename the ".map" file to match the first created
png file.</i></span></span></span></span><br>
<span id="result_box" class="" lang="en"><span class=""><span
id="result_box" class="" lang="en"><span class=""></span></span></span></span></blockquote>
<span id="result_box" class="" lang="en"><span class=""><span
id="result_box" class="" lang="en"><span class=""><span
id="result_box" class="short_text" lang="en"><span
class="">It works but it is a bit cumbersome.<br>
<br>
Regards,<br>
<br>
Evaristo. <br>
<br>
</span></span></span></span></span></span>El 26/03/2018
a las 13:25, Evaristo Quiroga via Therion escribió:<br>
</div>
<blockquote type="cite"
cite="mid:bbd096d3-6012-cc54-b48f-8b50a791a030@ecgracia.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div class="moz-cite-prefix">The reverse engineering is not with
the PDF. Martin do a good job here putting in all the therion
output pdf a comment with the reference. You only have to open
the file and search "thCalibrate". You found the next text:<br>
<i><br>
</i><i>/thCalibrate0 (X=-22.16017pt, Y=260.12132pt,
L=-0.3641990570, F=42.2992656650) </i><i><br>
</i><i>/thCalibrate1 (X=1921.38345pt, Y=199.8752pt,
L=-0.3608862211, F=42.2991894208) </i><i><br>
</i><i>/thCalibrate2 (X=3864.92708pt, Y=139.62904pt,
L=-0.3575733981, F=42.2991130810) </i><i><br>
</i><i>/thCalibrate3 (X=-0.2183pt, Y=967.96619pt,
L=-0.3641616744, F=42.3001613659) </i><i><br>
</i><i>/thCalibrate4 (X=3886.86893pt, Y=847.47388pt,
L=-0.3575359218, F=42.3000087771) </i><i><br>
</i><i>/thCalibrate5 (X=21.72351pt, Y=1675.81102pt,
L=-0.3641242900, F=42.3010570667) </i><i><br>
</i><i>/thCalibrate6 (X=1965.26714pt, Y=1615.56487pt,
L=-0.3608113605, F=42.3009808177) </i><i><br>
</i><i>/thCalibrate7 (X=3908.81078pt, Y=1555.31871pt,
L=-0.3574984437, F=42.3009044731) </i><i><br>
</i><i>/thCalibrate8 (X=1943.32529pt, Y=907.72003pt,
L=-0.3608487917, F=42.3000851193) </i><i><br>
</i><i>/thCalibrate (HS=3913.97253pt, VS=1573.34683pt,
HD=546.7244489428)</i><br>
<br>
All the information is here: pdf coordinates (X,Y), real
coordinates (L,F) and the pdf width (HS) and height (VS).<br>
<br>
You only need know the width and height from the generate PGN,
and you have all the data to do the calculation. <br>
<br>
The reverse engineering is to understand the ".map" format and
found in the tcl file (mapcalc.tc) the equations to do the
conversion. <br>
<br>
Regards,<br>
<br>
Evaristo. <br>
<br>
<br>
El 26/03/2018 a las 12:57, Nikita Kozlov via Therion escribió:<br>
</div>
<blockquote type="cite"
cite="mid:CAEEzkZE8JLWttKAw_DH-MvWTR6JWBXhP9jZAnxYHoeT+fe+GAw@mail.gmail.com">
<div dir="ltr">
<div class="gmail_extra">You can export 2 PNGs one with grid
to put GCPs on, and second PNG without grid, but exactly
same size (in pixels).</div>
<div class="gmail_extra">And use GCPs put on first
grid-equipped PNG to georeference second <span
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">"grid-free"</span>
PNG.</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Grid is used only to get pixel
coordinates.</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Dealing with pdf and 'reverse
engineering' for me seems a bit complicated stuff, </div>
<div class="gmail_extra">since in addition to 6 georeference
parameters, you need to deal with scale and so on,</div>
<div class="gmail_extra">so I'd rather used quick and dirty
solution with grid and rasters.</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra"><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Therion mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Therion@speleo.sk" moz-do-not-send="true">Therion@speleo.sk</a>
<a class="moz-txt-link-freetext" href="https://mailman.speleo.sk/listinfo/therion" moz-do-not-send="true">https://mailman.speleo.sk/listinfo/therion</a>
</pre>
</blockquote>
<p><br>
</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Therion mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Therion@speleo.sk">Therion@speleo.sk</a>
<a class="moz-txt-link-freetext" href="https://mailman.speleo.sk/listinfo/therion">https://mailman.speleo.sk/listinfo/therion</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>