Hi,
Here are some example commands which suit well for preparing aerial photos for
Mapserver. Recipe looks about the same as in the presentation
http://demo.geo-solutions.it/share/foss4g2011/gs_steroids_sgiannec_foss4g2011.pdf
Uncompressed tiff with uncompressed overviews. Overviews (or pyramid layers)
which mean speed in far zoom situation and +30% bigger file size
gdal_translate -of GTiff -a_srs epsg:3067 -co tiled=yes input.png output.tif
gdaladdo -r average output.tif 2 4 8 16 32 64
Use your own projection code as a_srs parameter. A_srs stands for "assign
spatial reference system"
By using JPEG compression inside tiff the file size gets 90% or even 95%
smaller.
gdal_translate -of GTiff -a_srs epsg:3067 -co tiled=yes -co compress=jpeg -co
photometric=YCBCR input.png output.tif
gdaladdo -r average --config COMPRESS_OVERVIEW JPEG --config
PHOTOMETRIC_OVERVIEW YCBCR output.tif 2 4 8 16 32 64
For raster maps -co compress=deflate is better alternative because it does not
smudge the texts. There are more to read about using gdal_translate and
gdaladdo in the internet. I would start from the GDAL utility program pages.
-Jukka Rahkonen-
Ronak Patel wrote:
Sounds good I'll convert to GeoTiff...is it okay for me to use EPSG:32662 with
invalid bounds with Geoserver?
Or, are you aware of what could be going wrong with EPSG:404000 support?
________________________________
From: Andrea Aime
<andrea.a...@geo-solutions.it<mailto:andrea.a...@geo-solutions.it>>
To: Ronak Patel <ronak2...@yahoo.com<mailto:ronak2...@yahoo.com>>
Cc:
"geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>"
<geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>>
Sent: Wednesday, September 26, 2012 9:57 AM
Subject: Re: [Geoserver-users] uploading large PNGs to Geoserver from
RestConfig crashes JVM
On Wed, Sep 26, 2012 at 3:40 PM, Ronak Patel
<ronak2...@yahoo.com<mailto:ronak2...@yahoo.com>> wrote:
These files are not geospatially enabled though.
Geospatial or not, at some point they will have to be uncompressed, a 100MB PNG
file will become 10 times bigger in memory,
there is no surprise you have problems.
If you want to use large rasters you have to swith to TIFF (not necessarily
georeferenced)
Cheers
Andrea
--
==
Our support, Your Success! Visit
http://opensdi.geo-solutions.it<http://opensdi.geo-solutions.it/> for more
information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it<http://www.geo-solutions.it/>
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users