<div dir="ltr">I was looking into this with Kristian Evers this morning - and it actually shows to be quite easy to extract Gerald's original map projection illustrations.<div><br></div><div>The figures are embedded by dvips, directly from original files (probably generated using his MAPGEN cartographic system, <a href="https://pubs.er.usgs.gov/publication/70015083">https://pubs.er.usgs.gov/publication/70015083</a>) directly into the PostScript files, where they are neatly delineated by "BeginDocument"/"EndDocument" pairs:</div><div><br></div><div>As an example, the Mercator projection illustration starts approximately 2500 lines into the OF90-284.ps file downloaded from </div><a href="http://download.osgeo.org/proj/from_kai/" rel="noreferrer" target="_blank" style="font-size:12.8px">http://download.osgeo.org/proj/from_kai/</a> with the quite readable line:<div><br></div><div><div>%%BeginDocument: plotter -d eps cylind/merc.ov</div></div><div><br></div><div>Hence, a meaningful file name can be generated from the last element of the BeginDocument line.</div><div><br></div><div>Writing a plain PostScript header and appending everything from BeginDocument to EndDocument is just a matter of a few lines of AWK, and converting to tightly cropped PDF-format can be done using the ps2pdf function from Ghostscript, in combination with Heiko Oberdiek's pdfcrop thing.</div><div><br></div><div>Everything is shrink-wrapped into 35 lines of AWK, included below (Howard: would it be worth submitting a pull request, adding this to the proj documentation effort?)</div><div><br></div><div><div><font face="monospace, monospace">#</font></div><div><font face="monospace, monospace"># Extract Gerald Evenden's original map projection demo plots</font></div><div><font face="monospace, monospace"># from the original proj.4 postscript documentation</font></div><div><font face="monospace, monospace">#</font></div><div><font face="monospace, monospace"><div># Usage:</div><div># awk -f extract_gie_figures.awk OF90-284.ps <a href="http://PROJ.4.3.ps">PROJ.4.3.ps</a></div><div>#<br></div></font></div><div><font face="monospace, monospace"># Thomas Knudsen,</font></div><div><font face="monospace, monospace"># Danish Ministry of Energy, Utilities and Climate</font></div><div><font face="monospace, monospace"># Agency for Data Supply and Efficiency</font></div><div><font face="monospace, monospace">#</font></div><div><font face="monospace, monospace"># <a href="mailto:thokn@sdfe.dk">thokn@sdfe.dk</a> 2016-03-16</font></div><div><font face="monospace, monospace">#</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">$1=="%%BeginDocument:" {</font></div><div><font face="monospace, monospace"> # The original file name (style: cylind/merc.ov) is the last arg on the BeginDocument line</font></div><div><font face="monospace, monospace"> base = $NF</font></div><div><font face="monospace, monospace"> # Remove prepended path ("cylind/") and file extension (".ov")</font></div><div><font face="monospace, monospace"> sub (".ov", "", base)</font></div><div><font face="monospace, monospace"> sub (/(.+)\//,"", base)</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> # write PostScript header to output file</font></div><div><font face="monospace, monospace"> print "%!PS-Adobe-2.0" >base ".ps"</font></div><div><font face="monospace, monospace">}</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"># Write embedded plot file to PostScript output file</font></div><div><font face="monospace, monospace">$1=="%%BeginDocument:", $1=="%%EndDocument" {</font></div><div><font face="monospace, monospace"> print $0 >>base ".ps"</font></div><div><font face="monospace, monospace">}</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"># Convert plot file to cropped pdf</font></div><div><font face="monospace, monospace">$1=="%%EndDocument" {</font></div><div><font face="monospace, monospace"> system ("ps2pdf " base ".ps intermediate.pdf")</font></div><div><font face="monospace, monospace"> system ("pdfcrop intermediate.pdf " base ".pdf")</font></div><div><font face="monospace, monospace">}</font></div></div><div><br></div><div><br></div><div><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">Thomas Knudsen</span><br style="font-size:12.8px"><span style="font-size:12.8px">Geodesist, PhD</span><br style="font-size:12.8px"><span style="font-size:12.8px">Geographical references</span><br style="font-size:12.8px"><a href="mailto:thokn@sdfe.dk">thokn@sdfe.dk</a></div><div><br style="font-size:12.8px"><span style="font-size:12.8px">Danish Ministry of Energy, Utilities and Climate</span><br style="font-size:12.8px"><span style="font-size:12.8px">Agency for Data Supply and Efficiency</span></div><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-16 11:53 GMT+01:00 Kristian Evers <span dir="ltr"><<a href="mailto:kreve@sdfe.dk" target="_blank">kreve@sdfe.dk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Postscript files for the PROJ.4.3.*.pdf files can be found here:<br>
<br>
<a href="http://download.osgeo.org/proj/from_kai/" rel="noreferrer" target="_blank">http://download.osgeo.org/proj/from_kai/</a><br>
<br>
I've been trying to find the code that was used to create the plots in the files, but haven't had any luck yet. It should be possible to extract the plots from the ps-file though.<br>
<br>
<br>
Kristian Evers<br>
Geophysicist<br>
Geographical references<br>
<a href="mailto:kreve@sdfe.dk">kreve@sdfe.dk</a><br>
<br>
Danish Ministry of Energy, Utilities and Climate<br>
Agency for Data Supply and Efficiency<br>
<br>
<br>
<br>
-----Oprindelig meddelelse-----<br>
Fra: <a href="mailto:proj-bounces@lists.maptools.org">proj-bounces@lists.maptools.org</a> [mailto:<a href="mailto:proj-bounces@lists.maptools.org">proj-bounces@lists.maptools.org</a>] På vegne af Norman Vine<br>
Sendt: 16. marts 2016 10:57<br>
Til: PROJ.4 and general Projections Discussions<br>
Emne: Re: [Proj] Original Latex Files?<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
this seems to be a mirror copy of Gerald's last USGS distribution site <a href="http://charon.er.usgs.gov" rel="noreferrer" target="_blank">charon.er.usgs.gov</a><br>
<a href="http://ftp.funet.fi/pub/graphics/packages/MapProjections/" rel="noreferrer" target="_blank">http://ftp.funet.fi/pub/graphics/packages/MapProjections/</a><br>
<br>
there are a couple of postscript files there that might be useful<br>
PROJ.4.?.ps.Z Intermim documentation of release 4 proj. Use as<br>
a supplement to OF 90-284 (listed above). PostScript for<br>
300dpi, black-on-white printers.<br>
<br>
<a href="http://proj.OF90-284.ps" rel="noreferrer" target="_blank">proj.OF90-284.ps</a> directory of PostScript files to create proj's OF doc-<br>
umentation on a 300bpi, black-on-white laser printer.<br>
<br>
<br>
On Mar 15, 2016, at 1:28 PM, "Agnew, Duncan" <<a href="mailto:dagnew@ucsd.edu">dagnew@ucsd.edu</a>> wrote:<br>
<br>
> Two notes:<br>
><br>
> The first, and probably the second, document are publications of the US government and thus in the public<br>
> domain.<br>
><br>
> It isn't difficult to extract the text from the .pdf file, but putting all the LaTeX formatting back would be a lot<br>
> of work -- though it would not be difficult to "parallelize" this, with a little community organization.<br>
> ________________________________________<br>
> From: <a href="mailto:proj-bounces@lists.maptools.org">proj-bounces@lists.maptools.org</a> [<a href="mailto:proj-bounces@lists.maptools.org">proj-bounces@lists.maptools.org</a>] on behalf of <a href="mailto:support@mnspoint.com">support@mnspoint.com</a> [<a href="mailto:support@mnspoint.com">support@mnspoint.com</a>]<br>
> Sent: Tuesday, March 15, 2016 10:11 AM<br>
> To: PROJ.4 and general Projections Discussions<br>
> Subject: Re: [Proj] Original Latex Files?<br>
><br>
> Hello,<br>
><br>
> I haven't heard anything about Gerald since many years and also Frank<br>
> been very silent lately. I suppose Frank might have an idea if anybody<br>
> here? I think Gerald is (if anywhere) more active on the "libproj" side?<br>
> .. if Proj4 was written sometime 1970 first time .. you can count years<br>
> your self etc..<br>
><br>
> If nothing else helps it might be a good time to write them again using<br>
> the originals as basis?! (And also compile them all together into a<br>
> single manual) .. ??!! Most likely no copyright problems exsist if<br>
> original writers are mentioned etc. etc..<br>
><br>
> It is also possible that any original manual files are lost for ever?!<br>
> .. lucky we have the source code still! :)<br>
><br>
> Regards: Janne.<br>
><br>
> ------------<br>
><br>
> Howard Butler kirjoitti 14.03.2016 20:52:<br>
>> Gerald (or maybe others)?<br>
>><br>
>> As part of the website and documentation remodel for proj.4, it would<br>
>> be really nice if we could collect the content of the various PDFs<br>
>> into a living document.<br>
>><br>
>> <a href="ftp://ftp.remotesensing.org/proj/OF90-284.pdf" rel="noreferrer" target="_blank">ftp://ftp.remotesensing.org/proj/OF90-284.pdf</a><br>
>> <a href="ftp://ftp.remotesensing.org/proj/proj.4.3.pdf" rel="noreferrer" target="_blank">ftp://ftp.remotesensing.org/proj/proj.4.3.pdf</a><br>
>> <a href="ftp://ftp.remotesensing.org/proj/proj.4.3.I2.pdf" rel="noreferrer" target="_blank">ftp://ftp.remotesensing.org/proj/proj.4.3.I2.pdf</a><br>
>><br>
>> Would it be possible to get the source latex files for these<br>
>> documents, and would you support us including them as part of a larger<br>
>> documentation effort for <a href="http://proj4.org" rel="noreferrer" target="_blank">http://proj4.org</a>?<br>
>><br>
>> Thanks much,<br>
>><br>
>> Howard<br>
> _______________________________________________<br>
> Proj mailing list<br>
> <a href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a><br>
> <a href="http://lists.maptools.org/mailman/listinfo/proj" rel="noreferrer" target="_blank">http://lists.maptools.org/mailman/listinfo/proj</a><br>
> _______________________________________________<br>
> Proj mailing list<br>
> <a href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a><br>
> <a href="http://lists.maptools.org/mailman/listinfo/proj" rel="noreferrer" target="_blank">http://lists.maptools.org/mailman/listinfo/proj</a><br>
<br>
_______________________________________________<br>
Proj mailing list<br>
<a href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/proj" rel="noreferrer" target="_blank">http://lists.maptools.org/mailman/listinfo/proj</a><br>
_______________________________________________<br>
Proj mailing list<br>
<a href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/proj" rel="noreferrer" target="_blank">http://lists.maptools.org/mailman/listinfo/proj</a><br>
</div></div></blockquote></div><br></div>