![]() |
|
|||||||
| Add-on & Script Development Creating add-ons and scripts for World Wind. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
World Wind Developer
Join Date: Aug 2005
Location: United States
Posts: 351
|
Hi all,
I have improved Mashi's image-overlay plugin so that you can load images with world files (i.e. the georeferencing information). For example, when you try to load a JPG, it will look for a JFW file so that it can place the image correctly on the globe. It will do the same for GIF/GFW, PNG/PGW, and TIF/TFW. All images MUST be in geographic projection (lat/long). I have only tested it with smallish images, which seem to take a while, and keep in mind that there is no progress bar...so you'll just need to wait for the image to appear. Sorry, I couldn't include an image sample, because of the file attachment size... Remember that this and the original plugin save the images in a text file, and when you re-open worldwind, and load the plugin, all of your images are loaded automatically. UPDATE (November 16/2005): - IMAGES NOW DRAPE ON THE TERRAIN UPDATE (November 17/2005): - Corners re-draw at the correct height, when using vertical exaggeration UPDATE (April 21/2006): - The plugin does not seem to work properly with 1.3.4, I'll be looking at this issue soon. <span style="color:red">FOR THE FUTURE:</span> - The ability to save new images, after changing the position/size of the image (and write new world files). - Incorporate Pierrick's code to move corner's independently (to re-shape/resize), Pierrick, can you do this? - Adding support for .map world files - Add support for header world file info, ala GEOTIFF -Progress bar (can anyone help with this?) Just unzip the attachment and run the exe, to install to your WorldWind directory (accept the default location in most cases). Dan |
|
|
|
|
|
#2 |
|
Cosmic Overlord
Join Date: Oct 2004
Location: United Kingdom
Posts: 2,362
|
Cool, now all it needs is a rotate option
![]() |
|
|
|
|
|
#3 |
|
World Wind Developer
Join Date: Aug 2005
Location: United States
Posts: 351
|
Does anyone have any idea how I can drape an image layer on the terrain?..similar to how the WMS images are draped...
thanks, Dan |
|
|
|
|
|
#4 | |
|
Senior Member
Join Date: Oct 2004
Location: Austria
Posts: 342
|
Hello geodan,
Quote:
canosso
__________________
My Plug-ins for World Wind |
|
|
|
|
|
|
#5 | |
|
Guest
Posts: n/a
|
Quote:
Could you tell me if the .jfw file is like the .sdw file that is used in other apps. Also, I have some color photos that I have from the Pa site listed elsewhere on the forum. I had to convert them from the .sid format and I would like to get them into WW one way or another. I figure if I knew the format I could just hand code a small text doc into the correct file needed. |
|
|
|
|
#6 | |
|
World Wind Developer
Join Date: Aug 2005
Location: United States
Posts: 351
|
Quote:
0.000434295612453671670 0.0 0.0 -0.000434295612453671670 -91.436634653313519 14.756679134064553 Dan |
|
|
|
|
|
|
#7 | |
|
Guest
Posts: n/a
|
Quote:
1.000000000000000 0.000000000000000 0.000000000000000 -1.000000000000000 1690000.500000000000000 299999.50000000000000 As you can see it's not so different. I looked on the internet of how to interpret a jfw file but I never understood how the numbers fit with coordinates. |
|
|
|
|
#8 | |
|
World Wind Developer
Join Date: Aug 2005
Location: United States
Posts: 351
|
Quote:
Of course, if you didn't want to project the images...you could always pull up the map projection formula for whatever projection your images are in...and convert the coordinates into geographic...with some code (as an extension of the plugin). For the meantime...if you want to get the images into WorldWind, re-project your images into geographic lat/long projection...and make sure they are gif/jpg/png/ or tif.... Dan |
|
|
|
|
|
|
#9 | |
|
Guest
Posts: n/a
|
Quote:
I noticed that context menus seem to have gone away in 1.3.3.1 (at least mine did) until I put the older 1.3.3 code back into the if test somewhere. I recall that I based my context menu plugin code on Mashi's image overlay ones. Regards, Nigel |
|
|
|
|
#10 | |
|
World Wind Developer
Join Date: Aug 2005
Location: United States
Posts: 351
|
Quote:
|
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Favorites / Bookmarks plugin | Dugrhill | Add-ons & Scripts | 21 | 02-27-2010 05:59 AM |
| stereo viewer plugin | jumpjack | Add-ons & Scripts | 15 | 08-19-2005 09:48 PM |