Devon,

I must be missing something. This is what I tried.

I downloaded todays build of Geoserver, the Grib, NETCDF, and image-mosaic 
plugins. I installed the plugin jars to webapp/geoserver/WEB-INF/lib.

I confirmed my geoserver is running the new version :

Build Information
·         GeoServer Version2.10-SNAPSHOT
·         Git Revisione33ceabf81b7a225db263dede3ea6a567aa6d240
·         Build Date15-Aug-2016 08:01
·         GeoTools Version16-SNAPSHOT (rev 
12844adebde2e5820f7f97f21c2dbd5b95f087f8)
·         GeoWebCache Version1.10-SNAPSHOT (rev 
8ee448d1b6766c6577bca25084496debb50271e5/8ee448d1b6766c6577bca25084496debb50271e5)


I downloaded the latest GRIB file via

http://nomads.ncep.noaa.gov/cgi-bin/filter_hiresconus.pl?file=hiresw.t00z.arw_5km.f00.conus.grib2&lev_surface=on&var_TMP=on&leftlon=0&rightlon=360&toplat=90&bottomlat=-90&dir=%2Fhiresw.20160815

I added a Raster Data Source of Type ImageMosaic and selected the directory 
where the above file was saved.
In that directory I had 3 files,

   indexer.xml
_auxiliary.xml
datastore.properties

all here at this gist : 
https://gist.github.com/anonymous/8648c5e81d981c43095663108e5095e1

I publish the layer Temperature_surface enabling the time dimension. 
Presentation List, Use smallest domain value.

When I preview the layer, the WMS service raises the exception :

java.lang.IllegalStateException: Unable to compute extrema 
value:TIME_DOMAIN_MINIMUM
Unable to compute extrema value:TIME_DOMAIN_MINIMUM


How does this differ if at all from what you tried?

Thanks!

Steve Ferguson


From: Devon Tucker [mailto:devonrtuc...@gmail.com]
Sent: Monday, August 15, 2016 1:46 PM
To: Ferguson, Steve -FS <sfergu...@fs.fed.us>
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Working Grib2 data source does not work as image 
mosaic

Hi again Steve,

I'm able to get the grib file you posted rendering. I didn't use PostGIS, since 
I don't have time to add a custom projection right now (I assume you have a 
custom projection added), but I did try to add it to PostGIS to see what the 
results would be on the insert and it seems that Time does get correctly added:

15 Aug 13:32:08 DEBUG [geotools.jdbc] - Inserting new feature: INSERT INTO 
"public"."Temperature_surface" ( "the_geom","location","imageindex","time" ) 
VALUES ( ST_GeomFromText('POLYGON ((-4228647.898383763 -835237.3149693012, 
-4228647.898383763 4370737.742215395, 3252718.9433056377 4370737.742215395, 
3252718.9433056377 -835237.3149693012, -4228647.898383763 
-835237.3149693012))', 
999004),'/Users/devon/Data/grib-postgres/hiresw.t00z.arw_5km.f00.conus.grib2',0,'2016-08-11
 17:00:00.0')

I did get it rendering using the H2 data store however:


(Looks kind of ugly cause I didn't bother changing the style)

A couple questions:

- Did you make sure to enable the time dimension in the layer publishing config?
- Which versions of GeoTools/GeoServer are you running? I'm only testing 
against master right now, I can maybe check it out in older versions later when 
I have more time. I know Ben has fixed some bugs in this area lately.

Here are the configs I used:

https://gist.github.com/dvntucker/9824309a09a86a28f76e9d6ef117221f

Cheers

Devon Tucker
Software Engineer
Boundless Spatial

On Mon, Aug 15, 2016 at 11:23 AM, Ferguson, Steve -FS 
<sfergu...@fs.fed.us<mailto:sfergu...@fs.fed.us>> wrote:
Devon,


Thanks for your help. The table is created for me by the plugin when I provide 
configuration for my postgres datastore in datastore.properties. The create 
table it issues ends up looking like this.

  DEBUG [geotools.jdbc] - Create schema: CREATE TABLE "Temperature_surface" ( 
"fid" int AUTO_INCREMENT(1) PRIMARY KEY, "the_geom" BYTEA COMMENT 'POLYGON', 
"location" VARCHAR(255), "imageindex" INTEGER, "time" TIMESTAMP )

I do have GEOTOOLS_DEVELOPER logging turned on but nothing jumps out at me why 
the time column is not populated in the first place. I can see in the insert 
statement it is passed as null but there is no mention as to why it is null.


After creating the store and layer, when I first try to preview the layer I get 
an exception from the WMS server :

Unable to compute extrema value:TIME_DOMAIN_MINIMUM

which I assume is related to the time column being null.

When I populate the time column with a value, then there appears to be no data, 
and blank tiles returning from the layer.

Thanks in advance for any help.

Steve

From: Devon Tucker 
[mailto:devonrtuc...@gmail.com<mailto:devonrtuc...@gmail.com>]
Sent: Monday, August 15, 2016 9:36 AM
To: Ferguson, Steve -FS <sfergu...@fs.fed.us<mailto:sfergu...@fs.fed.us>>
Cc: 
geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] Working Grib2 data source does not work as image 
mosaic

Hi Steve,

I'm not an expert in serving GRIB in image mosaic, but would it be possible to 
post your table schema? Possibly as a CREATE TABLE script for testing?

Also, trying to check off some of the obvious stuff, have you tried turning on 
the GEOTOOLS_DEVELOPER logging profile and checking the logs?

On Fri, Aug 12, 2016 at 12:23 PM, Ferguson, Steve -FS 
<sfergu...@fs.fed.us<mailto:sfergu...@fs.fed.us>> wrote:
Greetings,

I am attempting to make a time series using an image mosaic over data from 
Nomads. The grib2 files I get from Nomads work perfectly as a grib2 data 
source. However, when I attempt to create an image mosaic on top of the grib2 
files all I end up with is blank tiles, and requests for data against the 
exposed layer return no data, as though each point on the mosaic has no value. 
I’ve created a datastore.properties, with valid postgres connection 
information. I see the layer is represented in the postgres database, but a 
couple of things are amiss. First the time column on the layer is null. Second 
so is the imageindex column. The time column being null makes it impossible to 
create a layer from the mosaic. If I populate the time column with a value I am 
able to create a layer, but it is completely blank.

This is the grib file : 
http://nomads.ncep.noaa.gov/cgi-bin/filter_hiresconus.pl?file=hiresw.t00z.arw_5km.f00.conus.grib2&lev_surface=on&var_TMP=on&leftlon=0&rightlon=360&toplat=90&bottomlat=-90&dir=%2Fhiresw.20160812


This is my indexer.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Indexer>
  <domains>
    <domain name="time">
      <attributes><attribute>time</attribute></attributes>
    </domain>
  </domains>

    <coverages>
        <coverage>
            <schema name="Temperature_surface">
                
<attributes>the_geom:Polygon,location:String,imageindex:Integer,time:java.util.Date</attributes>
            </schema>
      <domains>
        <domain ref="time" />
      </domains>

            <origName>Temperature_surface</origName>
            <name>Temperature_surface</name>
        </coverage>
    </coverages>
  <parameters>
    <parameter name="AuxiliaryFile" 
value="/gdata/grib/nomads_img/_auxiliary.xml" />


    <parameter name="AbsolutePath" value="true" />
  </parameters>

</Indexer>


This is my _auxiliary.xml

<?xml version="1.0" encoding="UTF-8"?><Indexer>
  <coverages>
    <coverage>
      <schema name="Temperature_surface">
        
<attributes>the_geom:Polygon,location:String,imageindex:Integer,time:java.util.Date</attributes>
      </schema>
      <origName>Temperature_surface</origName>
      <name>Temperature_surface</name>
    </coverage>
  </coverages>
</Indexer>



Any pointers would be greatly appreciated on how to get this grib2 data 
functioning properly as an image mosaic. Many thanks!



[cid:image001.jpg@01D16575.4DC28DF0]

Steve Ferguson
Senior Software Systems Engineer

Forest Service Contractor
Digital Visions Enterprise Team

p: 919-999-4930<tel:919-999-4930> (PST)
sfergu...@fs.fed.us<mailto:sfergu...@fs.fed.us>
[cid:image002.png@01D16575.4DC28DF0]<http://usda.gov/>[cid:image003.png@01D16575.4DC28DF0]<https://twitter.com/forestservice>[cid:image004.png@01D16575.4DC28DF0]<http://facebook.com/USDA>


Caring for the land and serving people










This electronic message contains information generated by the USDA solely for 
the intended recipients. Any unauthorized interception of this message or the 
use or disclosure of the information it contains may violate the law and 
subject the violator to civil or criminal penalties. If you believe you have 
received this message in error, please notify the sender and delete the email 
immediately.

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users


------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to