Skip to content

Commit

Permalink
update samples with new projection code
Browse files Browse the repository at this point in the history
  • Loading branch information
rjw57 committed Apr 17, 2012
1 parent 2cdfac9 commit 11ad9d6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
16 changes: 12 additions & 4 deletions README.rst
Expand Up @@ -11,16 +11,23 @@ After building with buildout, you should have the `bin/foldbeam-render` script.
:: ::


# Generate a world map using equirectangular projection # 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 # Generate a world map using mercator projection
$ bin/foldbeam-render --output world-mercator.tiff -w 1000 \ $ bin/foldbeam-render --output world-mercator.tiff -w 1000 \
-l -20000000 -t 16000000 -r 20000000 -b -14000000 --epsg 3395 -l -20000000 -t 16000000 -r 20000000 -b -14000000 --epsg 3395
# Generate the US National Atlas equal area projection # 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 # 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 # 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 These examples generate the output displayed below. Data, imagery and map information provided by `MapQuest`_, `Open
Street Map`_ and contributors, `CC-BY-SA`_. Street Map`_ and contributors, `CC-BY-SA`_.
Expand All @@ -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/us.jpg
.. figure:: https://github.com/rjw57/foldbeam/raw/master/sample-output/uk.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/bigben.jpg
.. figure:: https://github.com/rjw57/foldbeam/raw/master/sample-output/lambert-conformal-conic.jpg


License License
------- -------
Expand Down
5 changes: 4 additions & 1 deletion sample-output/gen_samples.sh
Expand Up @@ -8,7 +8,7 @@ CACHE="${THISDIR}/tilecache"
cd "${THISDIR}" cd "${THISDIR}"


# Generate a world map using equirectangular projection # 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 # Generate a world map using mercator projection
${RENDER} --output world-mercator.tiff -w ${WIDTH} \ ${RENDER} --output world-mercator.tiff -w ${WIDTH} \
-l -20000000 -t 16000000 -r 20000000 -b -14000000 --epsg 3395 --cache-dir "${CACHE}" -l -20000000 -t 16000000 -r 20000000 -b -14000000 --epsg 3395 --cache-dir "${CACHE}"
Expand All @@ -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}" ${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 # 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}" ${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 for i in *.tiff; do convert "$i" "`basename $i tiff`jpg"; done
rm *.tiff rm *.tiff
Binary file added sample-output/lambert-conformal-conic.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sample-output/world-equirectangular.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 11ad9d6

Please sign in to comment.