Difference between revisions of "Map Creation and Editing"

From Hack Sphere Labs Wiki
Jump to: navigation, search
(TIFF to PDF)
(IMG File Type Specs)
Line 34: Line 34:
 
=IMG File Type Specs=
 
=IMG File Type Specs=
 
*http://home.gdal.org/projects/imagine/iau_docu0.pdf
 
*http://home.gdal.org/projects/imagine/iau_docu0.pdf
 +
 +
=Notes=
 +
*http://stackoverflow.com/questions/221455/ghostscript-pdf-tiff-conversion-is-awful-for-me-people-rave-about-it-i-alon

Revision as of 09:42, 23 September 2013

Misc

  • GeoTiff

TIFF to PDF

Ghostscript seems to be the best for this. One could use different graphic editors but on large files with high resolutions this will choke as trying to load the entire graphic in memory.

pdf2tiff$ gs -q -dNOPAUSE -sDEVICE=tiffg4 -sOutputFile=a.tif a.pdf -c quit
tiff2pdf$ tiff2ps -2 a.tif | gs -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=a.pdf - -c quit

Just a copy and paste from elsewhere. the tiffg4 is very low fax quality. Look here: http://ghostscript.com/doc/current/Devices.htm#TIFF You want something color and a higher resolution. For one file I used:

gs -q -dNOPAUSE -r600 -sDEVICE=tiff24nc -sOutputFile=a.tif input.pdf -c quit

For the file I was using it generated about a 1.5 GB tiff. Works great with ghostscript portable also.

Managing Large TIFF Files

  • http://fwtools.maptools.org/ - supposed to be a map tool, but very basic. It is a great viewer though as it renders layers effectively.
  • Pass -h on linux?!
./openev -h

Map Creation

QGIS

PDF to SVG

InkScape but the bigger problem is that it does not handle text correctly (i am assuming) if you do not have the matching fonts installed. It is a 'bug' in inkscape that does not allow direct svg conversion of text. A post suggested using the poppler (http://poppler.freedesktop.org/) library. I did not push into it.

Map IRL Conferences

IMG File Type Specs

Notes