[Xastir] GeoPDF

Derrick Brashear shadow at gmail.com
Mon Sep 5 17:43:50 EDT 2011


On Mon, Sep 5, 2011 at 1:42 PM, Tom Russo <russo at bogodyn.org> wrote:
> On Mon, Sep 05, 2011 at 09:08:10AM -0600, we recorded a bogon-computron collision of the <russo at bogodyn.org> flavor, containing:
>>
>> I'm not going to hack Xastir to handle 24-bit, but I've been working on a
>> script to deal with this process (and an extension of it) and hope to release
>> it this afternoon.
>
> Or this morning.  Please do a cvs update and look for the "geopdf2gtiff.pl"
> script in the scripts directory.  It installs to /usr/local/lib/xastir, too.
>
> geopdf2gtiff.pl foobar.pdf
>
> will collar strip, warp, format change to Geotiff and dither to 8-bit color.
> The output will be foobar.tif.
>
> Unfortunately, I've found that some geopdfs contain INCORRECT specifications
> of their own neatlines --- these GeoPDFs say that the neatline is the same
> as the entire image, rather than the boundary of the map data itself.  There's
> nothing to be done about that other than to hand-craft an FGD file with the
> lat/lon of the north, south, east, and west neatlines.  But many GeoPDFs
> have correct specifiers, and the output of geopdf2gtiff.pl will be precisely
> a geotiff that can be used in Xastir with a minimum of fuss.

there's a script which will make up an fgd for a grid-named (e.g.
o40080a1) geotiff
and certainly if you have any georeferencing you can guess that, so it
shouldn't be that
hard.

-- 
Derrick



More information about the Xastir mailing list