World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 03-13-2011, 09:01 AM   #1
chow kyo
Member
 
Join Date: Dec 2010
Posts: 71
chow kyo is on a distinguished road
Default GeoServer Geotiff error

I use geoserver published a geotiff file, install bil plugin, but the client sends a request to get the. bil file only get the following code, what is the reason? Is the type of geotiff error?
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE ServiceExceptionReport SYSTEM "http://192.168.0.102:8888/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd"> 
<ServiceExceptionReport version="1.1.1" >   
  <ServiceException>
      BGCOLOR -9999.0 incorrectly specified (0xRRGGBB format expected)
  </ServiceException>
</ServiceExceptionReport>

Last edited by Patrick Hogan; 04-22-2013 at 05:01 PM.
chow kyo is offline   Reply With Quote
Old 03-13-2011, 01:05 PM   #2
what_nick
Worldwind Developer
 
Join Date: Jan 2006
Location: Hobart, Australia
Posts: 754
what_nick is an unknown quantity at this point
Default

That's an error due to a mismatch between how WorldWind expects a WMS to behave and how Geoserver does behave. Here is a hack that fixes it. I will try to modify the plugin to allow -9999.0 as a possible bgcolor.

Cheers,

whatnick.
__________________
Coding This and That in World Wind and helping new people out, as long as they don't pester too much.
Currently blogging at: http://whatnicklife.blogspot.com
Working at:
Aerometrex - http://aerometrex.com.au/blog/
Impact so far:


what_nick is offline   Reply With Quote
Old 06-06-2012, 12:39 PM   #3
Kristina
Guest
 
Posts: n/a
Default

Hi,

i get the same error mentioned above. But I don't see how the *hack* is solving it.
It seems to me like a conflict of geoserver expecting a hex value and world wind expecting a number. Either one results in an error.

I'm using Geoserver 2.2beta with the the dds/bil extenstion (http://docs.geoserver.org/stable/en/...dds/index.html) and World Wind SDK 1.3

Other solutions?

Cheers,
Kristina
  Reply With Quote
Old 06-15-2012, 02:29 PM   #4
xander
Member
 
Join Date: Jul 2009
Posts: 30
xander is on a distinguished road
Default

While it might impose some extra work, you might consider using MapServer to dish up your GeoTIFF as BIL. It happily handles the -9999 value for background, can serve bil in multiple formats (including the 16 bit signed that WW demands). I use it (MapServer) to serve worldwide GMTED and ASTER that are stored as compressed GeoTIFF files.
xander is offline   Reply With Quote
Old 03-13-2013, 02:08 PM   #5
Kristina
Junior Member
 
Join Date: Jun 2012
Location: Münster, Germany
Posts: 18
Kristina is on a distinguished road
Default

Are there any updates concerning that issue? I'm VERY unhappy with mapserver (no GUI sucks) and would like to use geoserver again...
Kristina is offline   Reply With Quote
Old 04-09-2013, 04:44 AM   #6
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
James_In_Utah
Default

Xander, I've been trying to get mapserver to serve up .bils. I don't seem to be able to get it to work. I've got the GMTED2010 geotiffs on my server. The .bil files that I get on the client end are very strange. All of the low bytes have a value, and the high bytes are all zero. It seems to be coming from the mapserver like that. I can pass the URL to the mapserver, and that's what is downloaded. Did you have to do anything special to get MapServer to serve up Int16 .bils?
James_In_Utah is offline   Reply With Quote
Old 04-09-2013, 09:45 PM   #7
Randy Kim
NASA Employee
 
Randy Kim's Avatar
 
Join Date: Aug 2004
Location: Moffett Field, CA
Posts: 116
Randy Kim is an unknown quantity at this point
Default

I'll be giving gmted2010 a look with my mapserver setup in about a week. I've been looking for more elevation examples to test against.
Randy Kim is offline   Reply With Quote
Old 04-10-2013, 03:07 AM   #8
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
James_In_Utah
Default

Hi Randy, I'm using MS4W, latest version, straight out of the box. The gdal in there says it supports Ehdr, so it should be able to serve .bils. I would also like to be able to serve DTED 0, 1 and 2, NED, CTED, and GTOPO30, but first things first.
James_In_Utah is offline   Reply With Quote
Old 04-13-2013, 12:08 AM   #9
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
James_In_Utah
Default

Just to follow up, I took the Crater Lake sample tiff file that comes with the SDK, pointed a map server layer at it, and it worked perfectly. Elevation looked exactly as expected. I'm not sure what's different about the .TIFs for the GMTED2010 data. I also dropped one of those TIFs into the data directory right along side the crater lake file. Changed the importelevation sample java file to point to the GMTED geotif, and it failed to open the file when I tried to run it. I guess I'll spend some time on the USGS EarthExplorer site trying to figure out what's different about their geotifs.

Last edited by Patrick Hogan; 04-13-2013 at 05:37 AM.
James_In_Utah is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error importing Geotiff BrunoSpy Development Help 20 04-18-2011 08:51 AM
Geotiff File error tbrooks Development Help 3 04-06-2011 05:22 PM
built error Unregistered Builds 1 09-13-2009 10:15 AM
Error list: mercury88 Bug Reports 6 04-22-2007 11:03 AM
WorldWind.Log for V1.4Beta James_In_Utah Developers' Corner 1 12-30-2006 12:58 AM


All times are GMT +1. The time now is 07:32 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.