dealing with 2GB MrSID files
#1
Posted 03 February 2010 - 02:12 PM
I normally use Graphic Converter to do such things, but version 5.7 says it can't open a file larger than 2 GB. Ideas for either Mac or Windows?
#2
Posted 03 February 2010 - 03:07 PM
Several possible ideas though none of which are definite solutions.
GDAL library via FWTools with or scripting through python might be the way to go. It would allow you to get information about the file for simple cropping of edges to reduce to 2 gb to open in program used in your work flow. Also you could re-sample or convert with GDAL to different format through GDAL to let you get into the image and see what areas you need.
Another possibility might be to use MrSidDecode which was discussed on a discussion board (http://forum.manifold.net/forum/t35971) for someone having a similar problem. I have no experience with this utility but might be an avenue to try.
Good luck and be well
#3
Posted 03 February 2010 - 03:21 PM
I've been sent an aerial photo composite of an entire New Mexico county. In MrSID format, it's 2.6 GB. I need to go in and crop out a few snippets to update a street map, but I'm not sure how to work with such a monster file.
I normally use Graphic Converter to do such things, but version 5.7 says it can't open a file larger than 2 GB. Ideas for either Mac or Windows?
The solution I use for this scenario is to either uncompress the whole SID into a GeoTIFF using a GDAL installation that supports BigTiff (tiffs over 4GB), or I use the gdal_translate program to just clip out a small subsection directly to into a tiff. The latter is certainly more optimal, given that you can figure out the right bounding coordinates to pass to gdal_translate's '-'projwin' flag, which can be tricky to know ahead of time.
If you are willing to dive into command line usage of gdal_translate then here is a small guide:
http://trac.osgeo.or...ectionofaraster
Otherwise, I would recommend trying to open the MrSID file in QGIS, installing the 'Raster Tools' qgis plugin, and then using that to clip out a small subsection. This should work but I've personally only used the command line route previously.
#4
Posted 03 February 2010 - 04:06 PM
As suggested, gdal_translate should work:I've been sent an aerial photo composite of an entire New Mexico county. In MrSID format, it's 2.6 GB. I need to go in and crop out a few snippets to update a street map, but I'm not sure how to work with such a monster file.
I normally use Graphic Converter to do such things, but version 5.7 says it can't open a file larger than 2 GB. Ideas for either Mac or Windows?
gdal_translate -of GTiff -srcwin 600 600 400 400 in.sid out.tif
Where 600 and 600 is the pixel coordinate for the top left corner of the area you want to extract and the 400 and 400 is the size of the required extract, also in pixels.
gdalinfo in.sid
Will give you the information you need to work out the pixel coordinate for the top left corner of the extract you want. As proof of concept, just run the command above as it is. It works here
Regards, N.
#5
Posted 03 February 2010 - 04:32 PM
HiI've been sent an aerial photo composite of an entire New Mexico county. In MrSID format, it's 2.6 GB. I need to go in and crop out a few snippets to update a street map, but I'm not sure how to work with such a monster file.
I normally use Graphic Converter to do such things, but version 5.7 says it can't open a file larger than 2 GB. Ideas for either Mac or Windows?
You could try to use Geographic Imager plug-in for Adobe Photoshop from Avenza Systems Inc. It provides a function called "Geocrop Import" which allows you crop the image before opening it into Adobe Photoshop, so it can handle pretty big files.
I wouldn't try to open the full 2.6 Gb file directly though, you really need to do GeoCrop on import.
You can download a 14 day evaluation version here: http://www.avenza.com/download
It works on mac and windows.
In the current version (2.5), you have to know the coordinates of the snippets to do the crop (pixel or world coordinates in the image coordinate system). With the up-coming version 3.0 there will be a preview which is much nicer to do the cropping on import.
If you contact Avenza Systems, we can probably provide you with a beta version of 3.0. (sales@avenza.com) if you need the preview functionality.
Avenza Systems Inc.
Applications Specialist
#6
Posted 03 February 2010 - 08:39 PM
Cheers,
David
#7
Posted 03 February 2010 - 11:19 PM
#8
Posted 03 February 2010 - 11:51 PM
Microdem is freeware and I use it frequently to open countywide MrSID images, with few problems. You will need to get 2 plug-ins from Lizardtech, and the county image will open at a usual initial resolution of 64 or 32 meters per pixel. The window has a "SID" button that lets you subset the county image to cover just your area of interest at your choice of scale to 1 meter. The image can then be saved in TIF, BMP, or PNG format for use by other software.
Steve Richardson
www.2i3D.com
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users


Sign In
Create Account

United States
Back to top
United Kingdom
France









