<div dir="auto"><div dir="ltr">Hi,<div>check out the latest commit in the master branch. It uses a different approach to labels handling for newer Proj versions.</div><div dir="auto">M.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 17, 2020 at 10:10 PM Þórir Már Jónsson <<a href="mailto:thorirmar@gmail.com" target="_blank" rel="noreferrer">thorirmar@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><pre>There is only one line with each of these values:</pre><pre>The last line of the file contains epsg_labels:</pre><pre>map<<font color="#87FFAF">int</font>, <font color="#87FFAF">const</font> <font color="#87FFAF">char</font> *> <span style="background-color:rgb(252,233,79)"><font color="#2E3436">epsg_labels</font></span> = {};
</pre><pre>and line 738 contains 32634:</pre><pre><span style="font-family:Arial,Helvetica,sans-serif">{</span><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">false</font><span style="font-family:Arial,Helvetica,sans-serif">, </span><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">true</font><span style="font-family:Arial,Helvetica,sans-serif">, </span><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">false</font><span style="font-family:Arial,Helvetica,sans-serif">, </span><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">"+init=epsg:</font><span style="font-family:Arial,Helvetica,sans-serif;background-color:rgb(173,127,168)"><font color="#232729">32634</font></span><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">"</font><span style="font-family:Arial,Helvetica,sans-serif">, </span><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">"PROJCS[</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">WGS_1984_UTM_Zone_34N</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">,GEOGCS[</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">GCS_WGS_1984</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">,DATUM[</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">D_WGS_1984</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">,SPHEROID[</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">WGS_1984</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">,6378137.0,298.257223563]],PRIMEM[</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">Greenwich</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">,0.0],UNIT[</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">Degree</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">,0.0174532925199433]],PROJECTION[</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">Transverse_Mercator</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">],PARAMETER[</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">False_Easting</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">,500000.0],PARAMETER[</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">False_Northing</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">,0.0],PARAMETER[</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">Central_Meridian</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">,21.0],PARAMETER[</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">Scale_Factor</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">,0.9996],PARAMETER[</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">Latitude_Of_Origin</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">,0.0],UNIT[</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">Meter</font><font color="#FFD7D7" style="font-family:Arial,Helvetica,sans-serif">\"</font><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">,1.0]]"</font><span style="font-family:Arial,Helvetica,sans-serif">, </span><font color="#AD7FA8" style="font-family:Arial,Helvetica,sans-serif">"WGS84 / UTM zone 34N"</font><span style="font-family:Arial,Helvetica,sans-serif">},</span><br></pre></div><div>There is no output when I run tclsh thcsdata.tcl. The script seems to exit normally, but without printing anything.</div><div><br></div><div>Þórir Már</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 17, 2020 at 7:38 PM Martin Budaj <<a href="mailto:m.budaj@gmail.com" target="_blank" rel="noreferrer">m.budaj@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div>check the definition of map<int, const char *> epsg_labels in the file thcsdata.cxx (the file is generated by make). Is there a key/value pair with a key 32634? What's the value associated with the key? There should be a line containing something like<div>     {32634, "WGS 84 / UTM zone 34N"},<br></div><div><br></div><div>Also check the terminal output when you run </div><div>tclsh thcsdata.tcl</div><div><br></div><div>Martin</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 17, 2020 at 4:35 AM Þórir Már Jónsson <<a href="mailto:thorirmar@gmail.com" target="_blank" rel="noreferrer">thorirmar@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">With some difficulty I've managed to find and install libsqlite-tcl. This package was apparently dropped when CentOs went from version 7 to 8, but it is still built for CloudLinux which happens to be based on CentOs 8, saving me from having to find the source and building it myself. Nevertheless make is still failing on the same test as before:</div><div dir="ltr"><br></div><div dir="ltr"><pre>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<font color="#D3D7CF">utest is a Catch v2.11.3 host application.</font>
<font color="#D3D7CF">Run with -? for options</font>

-------------------------------------------------------------------------------
projections: EPSG label
-------------------------------------------------------------------------------
<font color="#D3D7CF">utest-proj.cxx:77</font>
<font color="#D3D7CF">...............................................................................</font>

<font color="#D3D7CF">utest-proj.cxx:78: </font><font color="#EF2929"><b>FAILED:</b></font>
<font color="#06989A">  CHECK( (epsg_labels.count(32634) > 0 && strcmp(epsg_labels[32634],"WGS 84 / UTM zone 34N") == 0) )</font>
with expansion:
<font color="#FCE94F"><b>  false</b></font>

<font color="#EF2929"><b>====</b></font><font color="#4E9A06">===========================================================================</font>
test cases: 18<font color="#D3D7CF"> | </font><font color="#4E9A06">17 passed</font><font color="#D3D7CF"> | </font><font color="#EF2929"><b>1 failed</b></font>
assertions: 44<font color="#D3D7CF"> | </font><font color="#4E9A06">43 passed</font><font color="#D3D7CF"> | </font><font color="#EF2929"><b>1 failed</b></font>

make: *** [Makefile:184: tests] Error 1
</pre><br>I went to through the dependencies listed in the Appendix of the book just to make sure I had not missed anything; here is what I have installed:<div><ul><li>gcc-8.3.1-5.1.el8.x86_64</li><li>gcc-c++-8.3.1-5.1.el8.x86_64</li><li>make-4.2.1-10.el8.x86_64<br></li><li>Perl (I'm not sure which of these are relevant, but these are the once I have installed):</li><ul><li>perl-Carp-1.42-396.el8.noarch</li><li>perl-constant-1.33-396.el8.noarch</li><li>perl-CPAN-Meta-2.150010-396.el8.noarch</li><li>perl-CPAN-Meta-Requirements-2.140-396.el8.noarch</li><li>perl-CPAN-Meta-YAML-0.018-397.el8.noarch</li><li>perl-Data-Dumper-2.167-399.el8.x86_64</li><li>perl-DBD-MySQL-4.046-3.module_el8.3.0+419+c2dec72b.x86_64</li><li>perl-DBI-1.641-3.module_el8.3.0+413+9be2aeb5.x86_64</li><li>perl-devel-5.26.3-416.el8.x86_64</li><li>perl-Digest-1.17-395.el8.noarch</li><li>perl-Digest-MD5-2.55-396.el8.x86_64</li><li>perl-Encode-2.97-3.el8.x86_64</li><li>perl-Encode-Locale-1.05-10.module_el8.3.0+416+dee7bcef.noarch</li><li>perl-encoding-2.22-3.el8.x86_64</li><li>perl-Errno-1.28-416.el8.x86_64</li><li>perl-Error-0.17025-2.el8.noarch</li><li>perl-Exporter-5.72-396.el8.noarch</li><li>perl-ExtUtils-Command-7.34-1.el8.noarch</li><li>perl-ExtUtils-Install-2.14-4.el8.noarch</li><li>perl-ExtUtils-MakeMaker-7.34-1.el8.noarch</li><li>perl-ExtUtils-Manifest-1.70-395.el8.noarch</li><li>perl-ExtUtils-ParseXS-3.35-2.el8.noarch</li><li>perl-Fedora-VSP-0.001-9.el8.noarch</li><li>perl-File-Path-2.15-2.el8.noarch</li><li>perl-File-Temp-0.230.600-1.el8.noarch</li><li>perl-Filter-1.58-2.el8.x86_64</li><li>perl-generators-1.10-9.el8.noarch</li><li>perl-Getopt-Long-2.50-4.el8.noarch</li><li>perl-Git-2.27.0-1.el8.noarch</li><li>perl-HTTP-Tiny-0.074-1.el8.noarch</li><li>perl-interpreter-5.26.3-416.el8.x86_64</li><li>perl-IO-1.38-416.el8.x86_64</li><li>perl-IO-Socket-IP-0.39-5.el8.noarch</li><li>perl-IO-Socket-SSL-2.066-4.module_el8.3.0+410+ff426aa3.noarch</li><li>perl-JSON-PP-2.97.001-3.el8.noarch</li><li>perl-libnet-3.11-3.el8.noarch</li><li>perl-libs-5.26.3-416.el8.x86_64</li><li>perl-macros-5.26.3-416.el8.x86_64</li><li>perl-Math-BigInt-1.9998.11-7.el8.noarch</li><li>perl-Math-Complex-1.59-416.el8.noarch</li><li>perl-MIME-Base64-3.15-396.el8.x86_64</li><li>perl-Mozilla-CA-20160104-7.module_el8.3.0+416+dee7bcef.noarch</li><li>perl-Net-SSLeay-1.88-1.module_el8.3.0+410+ff426aa3.x86_64</li><li>perl-open-1.11-416.el8.noarch</li><li>perl-parent-0.237-1.el8.noarch</li><li>perl-PathTools-3.74-1.el8.x86_64</li><li>perl-Pod-Escapes-1.07-395.el8.noarch</li><li>perl-podlators-4.11-1.el8.noarch</li><li>perl-Pod-Perldoc-3.28-396.el8.noarch</li><li>perl-Pod-Simple-3.35-395.el8.noarch</li><li>perl-Pod-Usage-1.69-395.el8.noarch</li><li>perl-Scalar-List-Utils-1.49-2.el8.x86_64</li><li>perl-Socket-2.027-3.el8.x86_64</li><li>perl-srpm-macros-1-25.el8.noarch</li><li>perl-Storable-3.11-3.el8.x86_64</li><li>perl-Term-ANSIColor-4.06-396.el8.noarch</li><li>perl-Term-Cap-1.17-395.el8.noarch</li><li>perl-TermReadKey-2.37-7.el8.x86_64</li><li>perl-Test-Harness-3.42-1.el8.noarch</li><li>perl-Text-ParseWords-3.30-395.el8.noarch</li><li>perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch</li><li>perl-Text-Unidecode-1.30-5.el8.noarch</li><li>perl-Thread-Queue-3.13-1.el8.noarch</li><li>perl-threads-2.21-2.el8.x86_64</li><li>perl-threads-shared-1.58-2.el8.x86_64</li><li>perl-Time-HiRes-1.9758-1.el8.x86_64</li><li>perl-Time-Local-1.280-1.el8.noarch</li><li>perl-Unicode-Normalize-1.25-396.el8.x86_64</li><li>perl-URI-1.73-3.el8.noarch</li><li>perl-version-0.99.24-1.el8.x86_64</li><li>perl-XML-Parser-2.44-11.el8.x86_64</li><li>perl-XML-XPath-1.42-3.el8.noarch</li></ul><li>python36-3.6.8-2.module_el8.3.0+389+6a62c88d.x86_64<br></li><li>PROJ:<br></li><ul><li>proj-datumgrid-1.8-6.3.2.4.epel8.playground.noarch</li><li>proj-datumgrid-north-america-1.4-1.epel8.playground.noarch</li><li>proj-datumgrid-europe-1.6-1.epel8.playground.noarch</li><li>proj-static-6.3.2-4.epel8.playground.x86_64</li><li>proj-devel-6.3.2-4.epel8.playground.x86_64</li><li>proj-datumgrid-world-1.0-3.epel8.playground.noarch</li><li>proj-datumgrid-oceania-1.2-1.epel8.playground.noarch</li><li>proj-6.3.2-4.epel8.playground.x86_64<br></li></ul><li>tcl/tk:</li><ul><li>tcl-8.6.8-2.el8.x86_64</li><li>tcl-devel-8.6.8-2.el8.x86_64</li><li>tcllib-1.19-3.el8.noarch<br></li></ul><li>BWidget-1.9.14 I had to manually download this library, I copied the tarball to /usr/lib64/tcl-8.6/ and extracted it there in accordance with the included README file.</li><li>sqlite:</li><ul><li>sqlite-3.26.0-6.el8.x86_64</li><li>sqlite-devel-3.26.0-6.el8.x86_64</li><li>sqlite-libs-3.26.0-6.el8.x86_64</li><li>sqlite-tcl-3.26.0-6.el8.x86_64 (from CloudLinux repository)</li></ul><li>tkImg-1.4.11 I also had to manually download this library. No README was included in the file, and no documentation is to be found on the projects github page, so I did the same as with BWidget and copied the folder into the tk library directory: (/usr/share/lib64/tk8.6/Img1.4.11/).</li><li>TeX:</li><ul><li>texlive-20180414-17.el8.x86_64</li><li>texlive-metapost-20180414-17.el8.x86_64/pdf<br></li><li>texlive-pdftex-20180414-17.el8.x86_64<br></li><li>and a host of other texlive packages (211 in total)</li></ul><li>LCDF Typetools 2.108 (this one I had to download and build
        from source, for some reason I was unable to configure it for
        kpathsea, despite it already being installed. I ended up needing to
        use the –without-kpathsea option during the configuration to get
        it work – I hope this is not important for the Therion
        installation).</li><li>ImageMagick:</li><ul><li>ImageMagick-perl-6.9.10.86-1.el8.x86_64</li><li>ImageMagick-libs-6.9.10.86-1.el8.x86_64</li><li>ImageMagick-doc-6.9.10.86-1.el8.x86_64</li><li>ImageMagick-6.9.10.86-1.el8.x86_64</li><li>ImageMagick-devel-6.9.10.86-1.el8.x86_64</li><li>ImageMagick-c++-6.9.10.86-1.el8.x86_64</li></ul><li>ghostscript-9.25-7.el8.x86_64</li><li>freetype:</li><ul><li>freetype-2.9.1-4.el8.x86_64</li><li>freetype-devel-2.9.1-4.el8.x86_64</li></ul><li>VTK 9.0.1 (built from source)</li><li>libjpeg-turbo-1.5.3-10.el8.x86_64</li><li>libjpeg-turbo-devel-1.5.3-10.el8.x86_64</li><li>libpng-1.6.34-5.el8.x86_64</li><li>libpng-devel-1.6.34-5.el8.x86_64</li><li>zlib-1.2.11-15.el8.x86_64</li><li>zlib-devel-1.2.11-15.el8.x86_64</li></ul><div><br></div><div>Is there anything obvious that I am missing? I don't know what to try next.</div><div><br></div><div><br></div><div><br></div><ul><li>On Thu, Aug 13, 2020 at 6:35 AM Martin Budaj <<a href="mailto:m.budaj@gmail.com" target="_blank" rel="noreferrer">m.budaj@gmail.com</a>> wrote:Hi,</li></ul></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">just build-time, introduced in 5.4.4. It's used to generate parts of thcsdata.cxx (esri_labels and epsg_labels). It's used for Proj 6 and newer, which uses sqlite3 format of its database (older versions used plain text files).</div><div>Martin</div><div dir="ltr"><br></div><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 13, 2020 at 1:18 AM Wookey <<a href="mailto:wookey@wookware.org" target="_blank" rel="noreferrer">wookey@wookware.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2020-08-12 22:01 +0200, Martin Budaj wrote:<br>
>    Hi,<br>
>    check if you have libsqlite3-tcl (or equivalent) installed and working.<br>
>    It's required for correct parsing of projection names from the EPSG<br>
>    database.<br>
<br>
Is this a build-time only dependency or should it also be present at runtime?<br>
<br>
It gets pulled in on debian builds but I'm not quite sure why. It<br>
should perhaps be explicitly specified. Is this new or has it been true for years?<br>
<br>
Wookey<br>
-- <br>
Principal hats:  Linaro, Debian, Wookware, ARM<br>
<a href="http://wookware.org/" rel="noreferrer noreferrer" target="_blank">http://wookware.org/</a><br>
_______________________________________________<br>
Therion mailing list<br>
<a href="mailto:Therion@speleo.sk" target="_blank" rel="noreferrer">Therion@speleo.sk</a><br>
<a href="https://mailman.speleo.sk/listinfo/therion" rel="noreferrer noreferrer" target="_blank">https://mailman.speleo.sk/listinfo/therion</a><br>
</blockquote></div></div></div>
_______________________________________________<br>
Therion mailing list<br>
<a href="mailto:Therion@speleo.sk" target="_blank" rel="noreferrer">Therion@speleo.sk</a><br>
<a href="https://mailman.speleo.sk/listinfo/therion" rel="noreferrer noreferrer" target="_blank">https://mailman.speleo.sk/listinfo/therion</a><br>
</blockquote></div></div>
_______________________________________________<br>
Therion mailing list<br>
<a href="mailto:Therion@speleo.sk" target="_blank" rel="noreferrer">Therion@speleo.sk</a><br>
<a href="https://mailman.speleo.sk/listinfo/therion" rel="noreferrer noreferrer" target="_blank">https://mailman.speleo.sk/listinfo/therion</a><br>
</blockquote></div>
_______________________________________________<br>
Therion mailing list<br>
<a href="mailto:Therion@speleo.sk" target="_blank" rel="noreferrer">Therion@speleo.sk</a><br>
<a href="https://mailman.speleo.sk/listinfo/therion" rel="noreferrer noreferrer" target="_blank">https://mailman.speleo.sk/listinfo/therion</a><br>
</blockquote></div></div>
_______________________________________________<br>
Therion mailing list<br>
<a href="mailto:Therion@speleo.sk" target="_blank" rel="noreferrer">Therion@speleo.sk</a><br>
<a href="https://mailman.speleo.sk/listinfo/therion" rel="noreferrer noreferrer" target="_blank">https://mailman.speleo.sk/listinfo/therion</a><br>
</blockquote></div></div>