Raw+srtm plugin for elevation maps

Plug-ins, add-ons, skins, icons, templates and other downloads. Contributions are welcome.

Moderators: XnTriq, helmut, xnview

User avatar
cameni
Posts: 4
Joined: Fri Sep 19, 2008 7:41 pm

Raw+srtm plugin for elevation maps

Postby cameni » Fri Sep 19, 2008 8:40 pm

Hi,
I have plugin for reading raw files that contain elevation maps (raw or dem/srtm files) at http://outerra.com/xnview/

Almost works now, but I have one problem - since these are raw files without a header, the plugin displays a dialog window first, allowing user to specify the dimensions, bit depth, various flags about the file (integer/floating point data, signedness, endianness) and rendering options (vertical flip, grayscale, clip ranges). The plugin can also autodetect the image dimensions according to the specified types, using correlation test.

However, herein lies the problem - XnView attempts to prefetch the next image, and if that happens to be a .raw file too, another dialog window is displayed as soon as the first file loads.
I wonder, would it be possible to for example to add something like GFP_NOPREFETCH flag to the support member of gfpGetPluginInfo function, that would turn off the prefetching for files with given extension? Or maybe there is some other solution ..

thanks
Brano Kemen
Last edited by cameni on Wed Jul 22, 2009 8:20 am, edited 1 time in total.

User avatar
xnview
Author of XnView
Posts: 27030
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Raw+srtm plugin for elevation maps

Postby xnview » Sat Sep 20, 2008 7:50 am

Perhaps you can disable 'read ahead'?
Pierre.

User avatar
cameni
Posts: 4
Joined: Fri Sep 19, 2008 7:41 pm

Postby cameni » Sat Sep 20, 2008 11:48 am

Yes I can .. but it affects everything. But I suppose there is no other option unless XnView and its plugin api is modified too :?

User avatar
cameni
Posts: 4
Joined: Fri Sep 19, 2008 7:41 pm

Re: Raw+srtm plugin for elevation maps

Postby cameni » Wed Jul 22, 2009 9:15 am

For anyone interested, correct link to the raw/srtm elevation map reader plugin is now http://outerra.com/xnview (I have also edited the link in the initial post).
There's also updated version with many fixes and some additional functionality, like automatic range detection and custom color mapping.

Brano Kemen
http://outerra.com

User avatar
oops66
XnThusiast
Posts: 1998
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: Raw+srtm plugin for elevation maps

Postby oops66 » Fri Jul 24, 2009 5:19 pm

Thank you for the link
XnViewMP 0.82 Linux X64 - Ubuntu 16.04 LTS - X64

User avatar
cameni
Posts: 4
Joined: Fri Sep 19, 2008 7:41 pm

Re: Raw+srtm plugin for elevation maps

Postby cameni » Fri Mar 25, 2011 10:15 am

Added support for *.hgt extension, removed *.raw that was often conflicting with raw camera formats. Minor fixes.
New version xhgt.zip, description here.

Encountered an interesting problem - XnView refused to load the extension when it was named just "hgt.usr", I had to prefix it with 'x' making it "xhgt.usr", to force loading it.

Eduardo
Posts: 3
Joined: Wed Sep 07, 2011 9:50 am

Re: Raw+srtm plugin for elevation maps

Postby Eduardo » Wed Sep 07, 2011 9:56 am

Seeking for *.hgt extension support. Could u please redirect me to the thread it has been already mentioned? TIA.


Return to “Customization”

Who is online

Users browsing this forum: No registered users and 2 guests