Permalink
Browse files

update samples with new projection code

  • Loading branch information...
rjw57 committed Apr 17, 2012
1 parent 2cdfac9 commit 11ad9d670ad5e3ec48c69736aa8f9229720c8d79
View
@@ -11,16 +11,23 @@ After building with buildout, you should have the `bin/foldbeam-render` script.
::
# Generate a world map using equirectangular projection
- $ bin/foldbeam-render --output world-equirectangular.tiff -w 1280 -l -180 -r 180 -t 84 -b -84
+ $ bin/foldbeam-render --output world-equirectangular.tiff -w 1280 \
+ -l -180 -r 180 -t 84 -b -84
# Generate a world map using mercator projection
$ bin/foldbeam-render --output world-mercator.tiff -w 1000 \
-l -20000000 -t 16000000 -r 20000000 -b -14000000 --epsg 3395
# Generate the US National Atlas equal area projection
- $ bin/foldbeam-render --output us.tiff -w 1280 -l -3000000 -t 2500000 -r 3600000 -b -4700000 --epsg 2163
+ $ bin/foldbeam-render --output us.tiff -w 1280 \
+ -l -3000000 -t 2500000 -r 3600000 -b -4700000 --epsg 2163
# Generate a UK OS national grid map with 1 pixel == 1 km
- $ bin/foldbeam-render --output uk.tiff -w 700 -l 0 -r 700000 -t 1300000 -b 0 --epsg 27700
+ $ bin/foldbeam-render --output uk.tiff -w 700 \
+ -l 0 -r 700000 -t 1300000 -b 0 --epsg 27700
# Generate a UK OS national grid map centred on Big Ben
- $ bin/foldbeam-render --output bigben.tiff -w 800 -l 530069 -t 179830 -r 530469 -b 179430 --epsg 27700
+ $ bin/foldbeam-render --output bigben.tiff -w 800 \
+ -l 530069 -t 179830 -r 530469 -b 179430 --epsg 27700
+ # Generate a Lambert conformal conic projection
+ $ bin/foldbeam-render --output lambert-conformal-conic.tiff -w 1024 \
+ -l -8000000 -r 8000000 -t 6000000 -b -4000000 --epsg 2062
These examples generate the output displayed below. Data, imagery and map information provided by `MapQuest`_, `Open
Street Map`_ and contributors, `CC-BY-SA`_.
@@ -30,6 +37,7 @@ Street Map`_ and contributors, `CC-BY-SA`_.
.. figure:: https://github.com/rjw57/foldbeam/raw/master/sample-output/us.jpg
.. figure:: https://github.com/rjw57/foldbeam/raw/master/sample-output/uk.jpg
.. figure:: https://github.com/rjw57/foldbeam/raw/master/sample-output/bigben.jpg
+.. figure:: https://github.com/rjw57/foldbeam/raw/master/sample-output/lambert-conformal-conic.jpg
License
-------
@@ -8,7 +8,7 @@ CACHE="${THISDIR}/tilecache"
cd "${THISDIR}"
# Generate a world map using equirectangular projection
-${RENDER} --output world-equirectangular.tiff -w ${WIDTH} -l -180 -r 180 -t 84 -b -84 --cache-dir "${CACHE}"
+${RENDER} --output world-equirectangular.tiff -w ${WIDTH} -l -180 -r 180 -t 85 -b -85 --cache-dir "${CACHE}"
# Generate a world map using mercator projection
${RENDER} --output world-mercator.tiff -w ${WIDTH} \
-l -20000000 -t 16000000 -r 20000000 -b -14000000 --epsg 3395 --cache-dir "${CACHE}"
@@ -18,6 +18,9 @@ ${RENDER} --output us.tiff -w ${WIDTH} -l -3000000 -t 2500000 -r 3600000 -b -470
${RENDER} --output uk.tiff -w 700 -l 0 -r 700000 -t 1300000 -b 0 --epsg 27700 --cache-dir "${CACHE}"
# Generate a UK OS national grid map centred on Big Ben
${RENDER} --output bigben.tiff -w ${WIDTH} -l 530069 -t 179830 -r 530469 -b 179430 --epsg 27700 --cache-dir "${CACHE}"
+# Generate a Lambert conformal conic projection
+${RENDER} --output lambert-conformal-conic.tiff -w ${WIDTH} --epsg 2062 \
+ -l -8000000 -r 8000000 -t 6000000 -b -4000000 --cache-dir "${CACHE}"
for i in *.tiff; do convert "$i" "`basename $i tiff`jpg"; done
rm *.tiff
Binary file not shown.
Binary file not shown.

0 comments on commit 11ad9d6

Please sign in to comment.