Re: [Geoserver-users] Working Grib2 data source does not work as image mosaic

2016-09-05 Thread Ferguson, Steve -FS
Hi Devon,

I am still stuck on this one. I checked in the database and both the TIME and 
IMAGEINDEX columns are null, so they are not being populated when the grib2 
file is processed. Any help getting passed this would be greatly appreciated. 
It is likely that I will be using several data files from NOMADS for my project.

Thanks!

Steve

From: Devon Tucker [mailto:devonrtuc...@gmail.com]
Sent: Saturday, September 03, 2016 6:41 AM
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 Steve,

Sorry for the delay, was out of town for a conference. Are you still having 
issues with this? If I had to guess based on looking at the code I'd say that 
somehow the TIME wasn't being indexed properly when creating the mosaic index. 
Maybe it's a bug, or the mosaic isn't able to extract the time properly. My 
first thought would be to check the datastore to see if the TIME column was 
getting populated correctly.

Cheers,
Devon

On Tue, Aug 23, 2016 at 1:29 PM, Ferguson, Steve -FS 
<sfergu...@fs.fed.us<mailto:sfergu...@fs.fed.us>> wrote:
Hi Devon,

I spent some time trying to figure this one out. I did a brand new install with 
the latest build. I used the data directory that comes with geoserver by 
default. I installed the grib and image mosaic plugins to the geoserver 
WEB-INF/lib. I added my custom projection to the epsg.properties and 
netcdf.projections.properties, I placed the indexer.xml, _auxiliary.xml, and 
datastore.properties in a directory with today’s grib file from nomads. I add 
the store and layer as we have discussed already. In all cases, on a couple 
different machines I get the exception :

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

What do you think I am missing here? The grib file when viewed as a grib store 
works just fine. Any help getting this working would be greatly appreciated. I 
had the same result when installing and testing with a clean install of 2.9.1 
as well.

Thanks,

Steve Ferguson


From: Ferguson, Steve -FS
Sent: Wednesday, August 17, 2016 9:15 AM
To: 'Devon Tucker' <devonrtuc...@gmail.com<mailto:devonrtuc...@gmail.com>>
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

Devon,

I had added a custom projection but gave it a different # in the properties 
file. Something seems to be messed up with my workspace. I pointed geoserver at 
a new data directory and added the custom projection with the number you 
provided, I was then able to view the image mosaic. Thanks for your help. If I 
figure out what it was that was causing my workspace not to work I will report 
back.

Steve Ferguson

From: Devon Tucker [mailto:devonrtuc...@gmail.com]
Sent: Monday, August 15, 2016 4:56 PM
To: Ferguson, Steve -FS <sfergu...@fs.fed.us<mailto:sfergu...@fs.fed.us>>

Subject: Re: [Geoserver-users] Working Grib2 data source does not work as image 
mosaic

Steve,

Yeah, downloading exactly what you posted seems to work for me, and AFAICT my 
versions are the same. This is the result I get in the layer preview:

https://www.dropbox.com/s/xszfdwhrb5s1ar7/Screen%20Shot%202016-08-15%20at%204.52.30%20PM.png?dl=0

Maybe the missing piece is the custom projection I added, perhaps there's a 
difference there. I added this to my user_projections/epsg.properties:

103=PROJCS["lambert_conformal_conic_1SP", GEOGCS["unknown", 
DATUM["unknown", SPHEROID["unknown", 6371229.0, 0.0]], PRIMEM["Greenwich", 
0.0], UNIT["degree", 0.017453292519943295], AXIS["Geodetic longitude", EAST], 
AXIS["Geodetic latitude", NORTH]], PROJECTION["Lambert_Conformal_Conic_1SP"], 
PARAMETER["central_meridian", -95.0], PARAMETER["latitude_of_origin", 25.0], 
PARAMETER["scale_factor", 1.0], PARAMETER["false_easting", 0.0], 
PARAMETER["false_northing", 0.0], UNIT["m", 1.0], AXIS["Easting", EAST], 
AXIS["Northing", NORTH], AUTHORITY["EPSG","103"]]

Do you have a custom projection added for this data?

Cheers,
Devon

On Mon, Aug 15, 2016 at 4:22 PM, Ferguson, Steve -FS 
<sfergu...@fs.fed.us<mailto:sfergu...@fs.fed.us>> wrote:
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:0

Re: [Geoserver-users] Working Grib2 data source does not work as image mosaic

2016-08-23 Thread Ferguson, Steve -FS
Hi Devon,

I spent some time trying to figure this one out. I did a brand new install with 
the latest build. I used the data directory that comes with geoserver by 
default. I installed the grib and image mosaic plugins to the geoserver 
WEB-INF/lib. I added my custom projection to the epsg.properties and 
netcdf.projections.properties, I placed the indexer.xml, _auxiliary.xml, and 
datastore.properties in a directory with today’s grib file from nomads. I add 
the store and layer as we have discussed already. In all cases, on a couple 
different machines I get the exception :

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

What do you think I am missing here? The grib file when viewed as a grib store 
works just fine. Any help getting this working would be greatly appreciated. I 
had the same result when installing and testing with a clean install of 2.9.1 
as well.

Thanks,

Steve Ferguson


From: Ferguson, Steve -FS
Sent: Wednesday, August 17, 2016 9:15 AM
To: 'Devon Tucker' <devonrtuc...@gmail.com>
Cc: geoserver-users@lists.sourceforge.net
Subject: RE: [Geoserver-users] Working Grib2 data source does not work as image 
mosaic

Devon,

I had added a custom projection but gave it a different # in the properties 
file. Something seems to be messed up with my workspace. I pointed geoserver at 
a new data directory and added the custom projection with the number you 
provided, I was then able to view the image mosaic. Thanks for your help. If I 
figure out what it was that was causing my workspace not to work I will report 
back.

Steve Ferguson

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

Steve,

Yeah, downloading exactly what you posted seems to work for me, and AFAICT my 
versions are the same. This is the result I get in the layer preview:

https://www.dropbox.com/s/xszfdwhrb5s1ar7/Screen%20Shot%202016-08-15%20at%204.52.30%20PM.png?dl=0

Maybe the missing piece is the custom projection I added, perhaps there's a 
difference there. I added this to my user_projections/epsg.properties:

103=PROJCS["lambert_conformal_conic_1SP", GEOGCS["unknown", 
DATUM["unknown", SPHEROID["unknown", 6371229.0, 0.0]], PRIMEM["Greenwich", 
0.0], UNIT["degree", 0.017453292519943295], AXIS["Geodetic longitude", EAST], 
AXIS["Geodetic latitude", NORTH]], PROJECTION["Lambert_Conformal_Conic_1SP"], 
PARAMETER["central_meridian", -95.0], PARAMETER["latitude_of_origin", 25.0], 
PARAMETER["scale_factor", 1.0], PARAMETER["false_easting", 0.0], 
PARAMETER["false_northing", 0.0], UNIT["m", 1.0], AXIS["Easting", EAST], 
AXIS["Northing", NORTH], AUTHORITY["EPSG","103"]]

Do you have a custom projection added for this data?

Cheers,
Devon

On Mon, Aug 15, 2016 at 4:22 PM, Ferguson, Steve -FS 
<sfergu...@fs.fed.us<mailto:sfergu...@fs.fed.us>> wrote:
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_surface=on_TMP=on=0=360=90=-90=%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<mailto:devonrtuc...@gmail.com>]
Sent: Monday, August 15, 2016 1:46 PM
To: Ferguson, Steve -FS <sfergu...@fs.fed.us<

Re: [Geoserver-users] Working Grib2 data source does not work as image mosaic

2016-08-15 Thread Ferguson, Steve -FS
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_surface=on_TMP=on=0=360=90=-90=%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, 

Re: [Geoserver-users] Working Grib2 data source does not work as image mosaic

2016-08-15 Thread Ferguson, Steve -FS
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]
Sent: Monday, August 15, 2016 9:36 AM
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 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_surface=on_TMP=on=0=360=90=-90=%2Fhiresw.20160812


This is my indexer.xml



  

  time

  





the_geom:Polygon,location:String,imageindex:Integer,time:java.util.Date

  

  

Temperature_surface
Temperature_surface


  




  




This is my _auxiliary.xml


  

  

the_geom:Polygon,location:String,imageindex:Integer,time:java.util.Date
  
  Temperature_surface
  Temperature_surface

  




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 (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-use

[Geoserver-users] Working Grib2 data source does not work as image mosaic

2016-08-12 Thread Ferguson, Steve -FS
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_surface=on_TMP=on=0=360=90=-90=%2Fhiresw.20160812


This is my indexer.xml



  

  time

  





the_geom:Polygon,location:String,imageindex:Integer,time:java.util.Date

  

  

Temperature_surface
Temperature_surface


  




  




This is my _auxiliary.xml


  

  

the_geom:Polygon,location:String,imageindex:Integer,time:java.util.Date
  
  Temperature_surface
  Temperature_surface

  




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 (PST)
sfergu...@fs.fed.us
[cid:image002.png@01D16575.4DC28DF0][cid:image003.png@01D16575.4DC28DF0][cid:image004.png@01D16575.4DC28DF0]


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
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Trouble with simple setup of Image Mosaic over a working GRIB2 file

2016-08-09 Thread Ferguson, Steve -FS
Ben, that worked! Thank you so much! 

Steve 

-Original Message-
From: Ben Caradoc-Davies [mailto:b...@transient.nz] 
Sent: Tuesday, August 09, 2016 3:45 PM
To: Ferguson, Steve -FS <sfergu...@fs.fed.us>; 
geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Trouble with simple setup of Image Mosaic over a 
working GRIB2 file

Steve,

I found that omitting location:String from the schema resulted in failure with 
an exception message similar to that you report:

java.lang.IllegalArgumentException: Invalid mosaic schema SimpleFeatureTypeImpl 
Pressure_surface identified extends 
Feature(the_geom:the_geom,imageindex:imageindex,time:time), it should have a 
geometry and a location property of name null

I found that it was necessary to use a schema like this:

the_geom:Polygon,location:String,imageindex:Integer,time:java.util.Date

See:
https://github.com/bencaradocdavies/geoserver/wiki/RAP-Native-Grid-ImageMosaic

Kind regards,
Ben.

On 10/08/16 09:52, Ferguson, Steve -FS wrote:
> Greetings,
>
> I am attempting to setup a time based image mosaic over a series of GRIB2 
> files. Setup of a GRIB store with the file succeeds with no issues, and 
> allows me to visualize the contents in geoserver. When I put the same GRIB in 
> a directory, and attempt to create an image mosaic from it, it fails. I've 
> tried just pointing image mosaic at the directory where the GRIB sits with no 
> additional files, and it fails. I've tried also with a datastore.properties, 
> indexer.xml, and _auxiliary.xml and this also fails. I am at my wits end 
> trying to get this going with image mosaic.
>
>
> This is the file I am attempting :
>
> http://nomads.ncep.noaa.gov/cgi-bin/filter_hiresconus.pl?file=hiresw.t
> 00z.arw_5km.f00.conus.grib2_lev=on_TMP=on=0=3
> 60=90=-90=%2Fhiresw.20160809
>
> my indexer.xml looks like this :
>
>  
>   
> 
>   time
> 
>   
>
> 
> 
> 
> 
> the_geom:Polygon,imageindex:Integer,time:java.util.Date
> 
>   
> 
>   
>
> Temperature_surface
> Temperature_surface
> 
> 
>   
>  value="/gdata/grib/nomads_img/_auxiliary.xml" />
>
>
> 
>   
>
> 
>
>
> My _auxiliary.xml looks like :
>
> 
>   
> 
>   
> 
> the_geom:Polygon,imageindex:Integer,time:java.util.Date
>   
>   Temperature_surface
>   Temperature_surface
> 
>   
> 
>
>
> My datastore.properties contains details to connect to postgres, this has 
> worked fine with other stores so I trust it.
>
>
> The latest error I get is :
>
>
> 09 Aug 21:34:10 ERROR [imagemosaic.Utils] - Invalid mosaic schema 
> SimpleFeatureTypeImpl Temperature_surface identified extends 
> Feature(the_geom:the_geom,imageindex:imageindex,time:time), it should 
> have a geometry and a location property of name null
> java.lang.IllegalArgumentException: Invalid mosaic schema 
> SimpleFeatureTypeImpl Temperature_surface identified extends 
> Feature(the_geom:the_geom,imageindex:imageindex,time:time), it should have a 
> geometry and a location property of name null
> at 
> org.geotools.gce.imagemosaic.catalog.GTDataStoreGranuleCatalog.checkMosaicSchema(GTDataStoreGranuleCatalog.java:284)
> at 
> org.geotools.gce.imagemosaic.catalog.GTDataStoreGranuleCatalog.createType(GTDataStoreGranuleCatalog.java:617)
> at 
> org.geotools.gce.imagemosaic.catalog.CachingDataStoreGranuleCatalog.createType(CachingDataStoreGranuleCatalog.java:104)
> at 
> org.geotools.gce.imagemosaic.RasterManager.createStore(RasterManager.java:1283)
> at 
> org.geotools.gce.imagemosaic.ImageMosaicReader.createCoverage(ImageMosaicReader.java:1129)
> at 
> org.geotools.gce.imagemosaic.ImageMosaicConfigHandler.updateConfiguration(ImageMosaicConfigHandler.java:880)
> at 
> org.geotools.gce.imagemosaic.ImageMosaicWalker.handleFile(ImageMosaicWalker.java:210)
> at 
> org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker$MosaicDirectoryWalker.handleFile(ImageMosaicDirectoryWalker.java:98)
> at 
> org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:367)
> at 
> org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:335)
> at 
> org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker$MosaicDirectoryWalker.(ImageMosaicDirectoryWalker.java:114)
> at 
> org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker.run(ImageMosaicDirectoryWalker.java:196)
> at 
> org.geotools.gce.imagemosaic.Utils.createMosaic(Utils.java:363)
>
>
>
> Any help or advice would be greatly appreciated, I am 

[Geoserver-users] Trouble with simple setup of Image Mosaic over a working GRIB2 file

2016-08-09 Thread Ferguson, Steve -FS
Greetings,

I am attempting to setup a time based image mosaic over a series of GRIB2 
files. Setup of a GRIB store with the file succeeds with no issues, and allows 
me to visualize the contents in geoserver. When I put the same GRIB in a 
directory, and attempt to create an image mosaic from it, it fails. I've tried 
just pointing image mosaic at the directory where the GRIB sits with no 
additional files, and it fails. I've tried also with a datastore.properties, 
indexer.xml, and _auxiliary.xml and this also fails. I am at my wits end trying 
to get this going with image mosaic.


This is the file I am attempting :

http://nomads.ncep.noaa.gov/cgi-bin/filter_hiresconus.pl?file=hiresw.t00z.arw_5km.f00.conus.grib2_lev=on_TMP=on=0=360=90=-90=%2Fhiresw.20160809

my indexer.xml looks like this :



  

  time

  





the_geom:Polygon,imageindex:Integer,time:java.util.Date

  

  

Temperature_surface
Temperature_surface


  




  




My _auxiliary.xml looks like :


  

  

the_geom:Polygon,imageindex:Integer,time:java.util.Date
  
  Temperature_surface
  Temperature_surface

  



My datastore.properties contains details to connect to postgres, this has 
worked fine with other stores so I trust it.


The latest error I get is :


09 Aug 21:34:10 ERROR [imagemosaic.Utils] - Invalid mosaic schema 
SimpleFeatureTypeImpl Temperature_surface identified extends 
Feature(the_geom:the_geom,imageindex:imageindex,time:time), it should have a 
geometry and a location property of name null
java.lang.IllegalArgumentException: Invalid mosaic schema SimpleFeatureTypeImpl 
Temperature_surface identified extends 
Feature(the_geom:the_geom,imageindex:imageindex,time:time), it should have a 
geometry and a location property of name null
at 
org.geotools.gce.imagemosaic.catalog.GTDataStoreGranuleCatalog.checkMosaicSchema(GTDataStoreGranuleCatalog.java:284)
at 
org.geotools.gce.imagemosaic.catalog.GTDataStoreGranuleCatalog.createType(GTDataStoreGranuleCatalog.java:617)
at 
org.geotools.gce.imagemosaic.catalog.CachingDataStoreGranuleCatalog.createType(CachingDataStoreGranuleCatalog.java:104)
at 
org.geotools.gce.imagemosaic.RasterManager.createStore(RasterManager.java:1283)
at 
org.geotools.gce.imagemosaic.ImageMosaicReader.createCoverage(ImageMosaicReader.java:1129)
at 
org.geotools.gce.imagemosaic.ImageMosaicConfigHandler.updateConfiguration(ImageMosaicConfigHandler.java:880)
at 
org.geotools.gce.imagemosaic.ImageMosaicWalker.handleFile(ImageMosaicWalker.java:210)
at 
org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker$MosaicDirectoryWalker.handleFile(ImageMosaicDirectoryWalker.java:98)
at org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:367)
at org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:335)
at 
org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker$MosaicDirectoryWalker.(ImageMosaicDirectoryWalker.java:114)
at 
org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker.run(ImageMosaicDirectoryWalker.java:196)
at org.geotools.gce.imagemosaic.Utils.createMosaic(Utils.java:363)



Any help or advice would be greatly appreciated, I am uncertain how to resolve 
this.


Thanks!

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

Steve Ferguson
Senior Software Systems Engineer

Forest Service Contractor
Digital Visions Enterprise Team

p: 919-999-4930 (PST)
sfergu...@fs.fed.us
[cid:image002.png@01D16575.4DC28DF0][cid:image003.png@01D16575.4DC28DF0][cid:image004.png@01D16575.4DC28DF0]


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
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] H2 for NETCDF stores suddenly no longer functional : Exception opening port H2 TCP Server (tcp://localhost:50683) (port may be in use), cause: timeout [90061-119]

2016-01-11 Thread Ferguson, Steve -FS
Daniele,

I was able to resolve this, it turned out to be an issue with amazon EC2 not 
properly setting the hostname of my virtual instance. Even though H2 was 
configured with localhost, since the hostname of my EC2 instance could not be 
resolved, all H2 connections would timeout and fail. Fixing the hostname issue 
made H2 and the rest of Geoserver work again.

Steve

From: dany.geoto...@gmail.com [mailto:dany.geoto...@gmail.com] On Behalf Of 
Daniele Romagnoli
Sent: Monday, January 11, 2016 3:34 AM
To: Ferguson, Steve -FS <sfergu...@fs.fed.us>
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] H2 for NETCDF stores suddenly no longer 
functional : Exception opening port H2 TCP Server (tcp://localhost:50683) (port 
may be in use), cause: timeout [90061-119]

Hi Steve,
I'll take a look at the code you mentioned in your logs.
Is there any way to replicate the problem so I can do some debug?
Do you also have a chance to repeat your test with higher logging level?

Please, let us know.
Best Regards,
Daniele


On Mon, Jan 4, 2016 at 8:03 PM, Ferguson, Steve -FS 
<sfergu...@fs.fed.us<mailto:sfergu...@fs.fed.us>> wrote:
All,

I am working with the latest version of geoserver and have been having pretty 
good success with NETCDF stores and image mosaics backed by NETCDF  – until 
last week. All of a sudden, any operation involving NETCDF stores results in 
the following error. The port number seems to change with each restart, and 
prior to startup the port number it says is in use is NOT in use, so it is 
geoserver itself which is using the port. I am hosting my server in amazon EC2 
and some security updates were recently applied, but I am can imagine why that 
would have an impact on localhost tcp connections. Any advice would be greatly 
appreciated.

04 Jan 18:07:41 WARN [netcdf.NetCDFFormat] - Unable to connect
org.geotools.data.DataSourceException: Unable to connect
at 
org.geotools.coverage.io.netcdf.NetCDFReader.(NetCDFReader.java:159)
at 
org.geotools.coverage.io.netcdf.NetCDFFormat.getReader(NetCDFFormat.java:95)
at 
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1441)

…

Caused by: org.geotools.data.DataSourceException: java.io.IOException: 
java.lang.IllegalArgumentException: java.lang.RuntimeException: Unable to 
obtain connection: Cannot create PoolableConnectionFactory (Exception opening 
port H2 TCP Server (tcp://localhost:50683) (port may be in use), cause: timeout 
[90061-119])
at 
org.geotools.coverage.io.netcdf.NetCDFAccess.(NetCDFAccess.java:126)
at 
org.geotools.coverage.io.netcdf.NetCDFDriver.connect(NetCDFDriver.java:92)
at 
org.geotools.coverage.io.impl.DefaultFileDriver.process(DefaultFileDriver.java:216)
at 
org.geotools.coverage.io.netcdf.NetCDFReader.(NetCDFReader.java:157)
... 123 more
Caused by: java.lang.RuntimeException: java.io.IOException: 
java.lang.IllegalArgumentException: java.lang.RuntimeException: Unable to 
obtain connection: Cannot create PoolableConnectionFactory (Exception opening 
port H2 TCP Server (tcp://localhost:50683) (port may be in use), cause: timeout 
[90061-119])
at 
org.geotools.imageio.netcdf.NetCDFImageReader.setInput(NetCDFImageReader.java:266)
at javax.imageio.ImageReader.setInput(ImageReader.java:380)
at 
org.geotools.coverage.io.netcdf.NetCDFAccess.(NetCDFAccess.java:115)
... 126 more
Caused by: java.io.IOException: java.lang.IllegalArgumentException: 
java.lang.RuntimeException: Unable to obtain connection: Cannot create 
PoolableConnectionFactory (Exception opening port H2 TCP Server 
(tcp://localhost:50683) (port may be in use), cause: timeout [90061-119])
at 
org.geotools.imageio.netcdf.NetCDFImageReader.initIndex(NetCDFImageReader.java:365)
at 
org.geotools.imageio.netcdf.NetCDFImageReader.init(NetCDFImageReader.java:472)
at 
org.geotools.imageio.netcdf.NetCDFImageReader.setInput(NetCDFImageReader.java:264)
... 128 more
Caused by: java.lang.IllegalArgumentException: java.lang.RuntimeException: 
Unable to obtain connection: Cannot create PoolableConnectionFactory (Exception 
opening port H2 TCP Server (tcp://localhost:50683) (port may be in use), cause: 
timeout [90061-119])
at 
org.geotools.coverage.io.catalog.CoverageSlicesCatalog.(CoverageSlicesCatalog.java:231)
at 
org.geotools.imageio.GeoSpatialImageReader.initCatalog(GeoSpatialImageReader.java:205)
at 
org.geotools.imageio.netcdf.NetCDFImageReader.initIndex(NetCDFImageReader.java:285)
... 130 more
Caused by: java.lang.RuntimeException: Unable to obtain connection: Cannot 
create PoolableConnectionFactory (Exception opening port H2 TCP Server 
(tcp://localhost:50683) (port may be in use), cause: timeout [90061-119])
at 
org.geotools.jdbc.JDBCDataStore.createConnection(JDBCDataStore.java:1986)
at 
org.geotools.jdbc.JDBCDataStore.createTypeNames(JDBC

[Geoserver-users] Exposing NETCDF files as Image Mosaic accross a time index

2015-11-18 Thread Ferguson, Steve -FS
Greetings,


I have been attempting to create an image mosaic for NETCDF files like this one 
(http://54.183.9.182/wff_153080300.nc) that I want to index by the time 
dimension in order to add additional forecast files as they become available. I 
am using the 2.9 SNAPSHOT version from 11/17 for all components.

I have tried to simply specify the directory within which this file sits as an 
image mosaic store, but this results in the following error :

19 Nov 01:01:54 WARN [netcdf.NetCDFGeoreferenceManager] - Unsupported axis: 
double lat(y=299, x=399);
  :units = "degrees_north";
  :long_name = "latitude";
  :standard_name = "latitude";
  :_CoordinateAxisType = "Lat";
in input: /gdata2/netcf/wff/wff_153080300.nc has been found
19 Nov 01:01:54 WARN [netcdf.NetCDFGeoreferenceManager] - Unsupported axis: 
double lon(y=299, x=399);
  :units = "degrees_east";
  :long_name = "longitude";
  :standard_name = "longitude";
  :_CoordinateAxisType = "Lon";
in input: /gdata2/netcf/wff/wff_153080300.nc has been found
19 Nov 01:03:28 ERROR [imagemosaic.Utils] -
java.lang.NullPointerException
19 Nov 01:03:28 WARN [gce.imagemosaic] - Failure occurred while collecting the 
granules
org.apache.commons.io.DirectoryWalker$CancelException: Operation Cancelled
at 
org.apache.commons.io.DirectoryWalker.checkIfCancelled(DirectoryWalker.java:395)
at org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:368)
at org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:335)
at 
org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker$MosaicDirectoryWalker.(ImageMosaicDirectoryWalker.java:114)
at 
org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker.run(ImageMosaicDirectoryWalker.java:196)
at org.geotools.gce.imagemosaic.Utils.createMosaic(Utils.java:360)
at org.geotools.gce.imagemosaic.Utils.checkSource(Utils.java:1250)
at 
org.geotools.gce.imagemosaic.ImageMosaicReader.initReaderFromURL(ImageMosaicReader.java:519)
at 
org.geotools.gce.imagemosaic.ImageMosaicReader.(ImageMosaicReader.java:471)
at 
org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:483)
at 
org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:103)
at 
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1441)
at 
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1369)
at 
org.geoserver.catalog.impl.CoverageStoreInfoImpl.getGridCoverageReader(CoverageStoreInfoImpl.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.geoserver.catalog.impl.ModificationProxy.invoke(ModificationProxy.java:146)
at com.sun.proxy.$Proxy53.getGridCoverageReader(Unknown Source)
at 
org.geoserver.web.data.layer.NewLayerPageProvider.getItemsInternal(NewLayerPageProvider.java:90)
at 
org.geoserver.web.data.layer.NewLayerPageProvider.getItems(NewLayerPageProvider.java:59)
at 
org.geoserver.web.wicket.GeoServerDataProvider.fullSize(GeoServerDataProvider.java:245)



I have tried to specify properties to the indexer in indexer.properties as 
outlined here 
(http://geoserver.geo-solutions.it/multidim/en/imagemosaic/index.html) but that 
produces the following error:

19 Nov 01:12:16 WARN [netcdf.NetCDFGeoreferenceManager] - Unsupported axis: 
double lat(y=299, x=399);
  :units = "degrees_north";
  :long_name = "latitude";
  :standard_name = "latitude";
  :_CoordinateAxisType = "Lat";
in input: /gdata2/netcf/wff/wff_153080300.nc has been found
19 Nov 01:12:16 WARN [netcdf.NetCDFGeoreferenceManager] - Unsupported axis: 
double lon(y=299, x=399);
  :units = "degrees_east";
  :long_name = "longitude";
  :standard_name = "longitude";
  :_CoordinateAxisType = "Lon";
in input: /gdata2/netcf/wff/wff_153080300.nc has been found
19 Nov 01:12:18 WARN [imagemosaic.catalog] - This granule catalog was not 
properly dispose as it still points to:ServiceInfo
description=Features from ShapefileDataStore
19 Nov 01:13:49 ERROR [imagemosaic.Utils] - Invalid mosaic schema 
SimpleFeatureTypeImpl cloud identified extends 
Feature(x:x,y:y,lat:lat,lon:lon,surface_temperature:surface_temperature,surface_dewpoint:surface_dewpoint,surface_rh:surface_rh,surface_wind_speed:surface_wind_speed,surface_wind_direction:surface_wind_direction,mixing_height:mixing_height,lifted_index:lifted_index,haines_middle:haines_middle,haines_high:haines_high,ventilation_index:ventilation_index,cloud:cloud,precipitation:precipitation,z:z,height:height,temperature:temperature,relative_humidity:relative_humidity,wind_speed:wind_speed,wind_direction:wind_direction,time:time),
 it should have a geometry 

Re: [Geoserver-users] Troubleshooting NETCDF Z index load errors

2015-11-10 Thread Ferguson, Steve -FS
I’ve created Jira issue GEOS-7307. Thanks for your help!

From: dany.geoto...@gmail.com [mailto:dany.geoto...@gmail.com] On Behalf Of 
Daniele Romagnoli
Sent: Tuesday, November 10, 2015 8:08 AM
To: Ferguson, Steve -FS
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Troubleshooting NETCDF Z index load errors

Hi Steve,
do you have any chance to open a JIRA and attach the sample (or a reference if 
that source isn't temporary) to the JIRA?
I did a quick check of your sample data and I think I have found the issue.
I would like to investigate and solve it in the next days.

Best Regards,
Daniele


On Fri, Nov 6, 2015 at 8:50 PM, Ferguson, Steve -FS 
<sfergu...@fs.fed.us<mailto:sfergu...@fs.fed.us>> wrote:
I am attempting to expose a layer (height) from this netcdf file : 
http://54.183.9.182/wrf.nc that has a Z index as well as a time dimension. I am 
able to load and view this layer in the netcdf tools UI grid viewer, but when I 
attempt to expose it in GeoServer, I get an exception. Any advice on resolving 
this would be greatly appreciated. Thanks in advance.

The stack trace is :

Caused by: java.io.IOException
at 
org.geotools.coverage.io.catalog.CoverageSlicesCatalog.getGranules(CoverageSlicesCatalog.java:442)
at 
org.geotools.imageio.GeoSpatialImageReader.getImageIndex(GeoSpatialImageReader.java:151)
at 
org.geotools.coverage.io.netcdf.NetCDFResponse.processRequest(NetCDFResponse.java:252)
at 
org.geotools.coverage.io.netcdf.NetCDFResponse.createResponse(NetCDFResponse.java:146)
at 
org.geotools.coverage.io.netcdf.NetCDFSource.read(NetCDFSource.java:65)
at 
org.geotools.coverage.io.netcdf.NetCDFReader.read(NetCDFReader.java:486)
at 
org.geoserver.catalog.SingleGridCoverage2DReader.read(SingleGridCoverage2DReader.java:143)
at 
org.geoserver.catalog.CatalogBuilder.buildCoverage(CatalogBuilder.java:974)
at 
org.geoserver.catalog.CatalogBuilder.buildCoverage(CatalogBuilder.java:855)
at 
org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:346)
... 98 more
Caused by: java.lang.NullPointerException
at 
org.geotools.coverage.io.catalog.CoverageSlicesCatalog.getGranules(CoverageSlicesCatalog.java:433)



Steve Ferguson


--

___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users



--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:  +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

---

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i 
file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo 
è consentito esclusivamente al destinatario del messaggio, per le finalità 
indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne 
il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di 
procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro 
sistema. Conservare il messaggio stesso, divulgarlo anche in parte, 
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, 
costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for the 
attention and use of the named addressee(s) and may be confidential or 
proprietary in nature or covered by the provisions of privacy act (Legislative 
Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in 
accord with its purpose, any disclosure, reproduction, copying, distribution, 
or either dissemination, either whole or partial, is strictly forbidden except 
previous formal approval of the named addressee(s). If you are not the intended 
recipient, please contact immediately the sender by telephone, fax or e-mail 
and delete the information in this message that has been received in error. The 
sender does not give any warranty or accept liability as the content, accuracy 
or completeness of sent messages and accepts no responsibility  for changes 
made after they were sent or for other risks which arise as a result of e-mail 
transmission, viruses, etc.

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


[Geoserver-users] Troubleshooting NETCDF Z index load errors

2015-11-06 Thread Ferguson, Steve -FS
I am attempting to expose a layer (height) from this netcdf file : 
http://54.183.9.182/wrf.nc that has a Z index as well as a time dimension. I am 
able to load and view this layer in the netcdf tools UI grid viewer, but when I 
attempt to expose it in GeoServer, I get an exception. Any advice on resolving 
this would be greatly appreciated. Thanks in advance.

The stack trace is :

Caused by: java.io.IOException
at 
org.geotools.coverage.io.catalog.CoverageSlicesCatalog.getGranules(CoverageSlicesCatalog.java:442)
at 
org.geotools.imageio.GeoSpatialImageReader.getImageIndex(GeoSpatialImageReader.java:151)
at 
org.geotools.coverage.io.netcdf.NetCDFResponse.processRequest(NetCDFResponse.java:252)
at 
org.geotools.coverage.io.netcdf.NetCDFResponse.createResponse(NetCDFResponse.java:146)
at 
org.geotools.coverage.io.netcdf.NetCDFSource.read(NetCDFSource.java:65)
at 
org.geotools.coverage.io.netcdf.NetCDFReader.read(NetCDFReader.java:486)
at 
org.geoserver.catalog.SingleGridCoverage2DReader.read(SingleGridCoverage2DReader.java:143)
at 
org.geoserver.catalog.CatalogBuilder.buildCoverage(CatalogBuilder.java:974)
at 
org.geoserver.catalog.CatalogBuilder.buildCoverage(CatalogBuilder.java:855)
at 
org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:346)
... 98 more
Caused by: java.lang.NullPointerException
at 
org.geotools.coverage.io.catalog.CoverageSlicesCatalog.getGranules(CoverageSlicesCatalog.java:433)



Steve Ferguson


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


Re: [Geoserver-users] MapRequest filters for range of values on raster coverage stores

2015-10-30 Thread Ferguson, Steve -FS
Daniele,

Thanks for the response. I am talking about simple rendering. I have been using 
a ramp color map with just a few ColorMapEntry s with nice results. To do 
something like you suggest I suppose I would have to create many more 
ColorMapEntry items each with an ENV based opacity, which I think might become 
cumbersome, particularly for values with a broad range. Is there a way to use a 
CQL_FILTER that will only render values that are in range?

Thanks!

Steve


From: dany.geoto...@gmail.com [mailto:dany.geoto...@gmail.com] On Behalf Of 
Daniele Romagnoli
Sent: Friday, October 30, 2015 3:20 AM
To: Ferguson, Steve -FS
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] MapRequest filters for range of values on raster 
coverage stores

Hi Steve,
are you talking about simple rendering or do you also need this to be respected 
by a getFeatureInfo call?
In the first case a solution can be setting up an a SLD with a colorMap, 
setting opacity = 0 for values outside your range.

http://docs.geoserver.org/latest/en/user/styling/sld-reference/rastersymbolizer.html#colormap

Let's if other devs chime in with additional feedbacks.
Cheers,
Daniele



On Thu, Oct 29, 2015 at 9:35 PM, Ferguson, Steve -FS 
<sfergu...@fs.fed.us<mailto:sfergu...@fs.fed.us>> wrote:
I have a requirement to set thresholds on values to display on a map request to 
a NETCDF backed coverage store. For example, I have a layer for surface 
temperature, and they want to be able to only display areas on the map that are 
between 25 and 30 centigrade. Is there a way to achieve this with Geoserver? 
I’ve attempted to use CQL_FILTER but this only results in errors like “Error 
rendering coverage on the fast path” so I think that must not be the correct 
manner to produce filtered results. Any advice on how to achieve this 
requirement would be greatly appreciated.

Thanks!

Steve Ferguson


--

___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users



--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:  +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

---

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i 
file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo 
è consentito esclusivamente al destinatario del messaggio, per le finalità 
indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne 
il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di 
procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro 
sistema. Conservare il messaggio stesso, divulgarlo anche in parte, 
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, 
costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for the 
attention and use of the named addressee(s) and may be confidential or 
proprietary in nature or covered by the provisions of privacy act (Legislative 
Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in 
accord with its purpose, any disclosure, reproduction, copying, distribution, 
or either dissemination, either whole or partial, is strictly forbidden except 
previous formal approval of the named addressee(s). If you are not the intended 
recipient, please contact immediately the sender by telephone, fax or e-mail 
and delete the information in this message that has been received in error. The 
sender does not give any warranty or accept liability as the content, accuracy 
or completeness of sent messages and accepts no responsibility  for changes 
made after they were sent or for other risks which arise as a result of e-mail 
transmission, viruses, etc.

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


[Geoserver-users] MapRequest filters for range of values on raster coverage stores

2015-10-29 Thread Ferguson, Steve -FS
I have a requirement to set thresholds on values to display on a map request to 
a NETCDF backed coverage store. For example, I have a layer for surface 
temperature, and they want to be able to only display areas on the map that are 
between 25 and 30 centigrade. Is there a way to achieve this with Geoserver? 
I've attempted to use CQL_FILTER but this only results in errors like "Error 
rendering coverage on the fast path" so I think that must not be the correct 
manner to produce filtered results. Any advice on how to achieve this 
requirement would be greatly appreciated.

Thanks!

Steve Ferguson


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


[Geoserver-users] Geoserver NETCDF file store updates

2015-10-26 Thread Ferguson, Steve -FS
I am looking for a general approach to "refreshing" a NETCDF store using the 
REST API. I have a NETCDF file that is generated every 24 hours. I need to 
update the file, but would prefer not having to recreate each layer, as there 
are many. I thought perhaps I could rename the coverage store and replace the 
backing file, then name it back to the original coverage store name, but I am 
unsure if that will trigger geoserver to reprocess the contained information. 
What is the best approach to achieve a refresh of a NETCDF coverage store?

Thanks!

Steve Ferguson

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


Re: [Geoserver-users] Transparent GetLegendGraphic WMS request?

2015-10-20 Thread Ferguson, Steve -FS
Thanks for the response. Yes, I have tried this. The image remains 
non-transparent with a white background.

http://server/geoserver/workspace/wms?SERVICE=WMS=1.3.0=GetLegendGraphic=layer=image/png=true


Thank you for any other suggestions.

Steve



From: andrea.a...@gmail.com [mailto:andrea.a...@gmail.com] On Behalf Of Andrea 
Aime
Sent: Tuesday, October 20, 2015 5:23 AM
To: Ferguson, Steve -FS
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Transparent GetLegendGraphic WMS request?

On Mon, Oct 19, 2015 at 8:30 PM, Ferguson, Steve -FS 
<sfergu...@fs.fed.us<mailto:sfergu...@fs.fed.us>> wrote:
Is it possible to somehow get a WMS GetLegendGraphic back that has some 
transparency?

Have you tried requesting it in PNG format, and adding =true to the 
request?

Cheers
Andrea

--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i 
file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo 
è consentito esclusivamente al destinatario del messaggio, per le finalità 
indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne 
il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di 
procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro 
sistema. Conservare il messaggio stesso, divulgarlo anche in parte, 
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, 
costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for the 
attention and use of the named addressee(s) and may be confidential or 
proprietary in nature or covered by the provisions of privacy act (Legislative 
Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in 
accord with its purpose, any disclosure, reproduction, copying, distribution, 
or either dissemination, either whole or partial, is strictly forbidden except 
previous formal approval of the named addressee(s). If you are not the intended 
recipient, please contact immediately the sender by telephone, fax or e-mail 
and delete the information in this message that has been received in error. The 
sender does not give any warranty or accept liability as the content, accuracy 
or completeness of sent messages and accepts no responsibility  for changes 
made after they were sent or for other risks which arise as a result of e-mail 
transmission, viruses, etc.

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


[Geoserver-users] Transparent GetLegendGraphic WMS request?

2015-10-19 Thread Ferguson, Steve -FS
Is it possible to somehow get a WMS GetLegendGraphic back that has some 
transparency?

Thanks!

Steve Ferguson
--
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Unsupported axis: double lon(y=449, x=599);

2015-09-18 Thread Ferguson, Steve -FS
I am attempting to load a netcdf file in geoserver-2.8-RC1 
(http://mtnweather.info/download/wrf_works.nc). With the same file loaded into 
netcdf-toolsUI I am able to view grids, so I would think the netcdf file might 
also be valid in geoserver. Upon attempting to add the store, I receive the 
error : Could not list layers for this store, an error occurred retrieving 
them.  Any help in understanding and resolving this error would be greatly 
appreciated.

The detailed error message reported on the console is :


WARN [netcdf.NetCDFGeoreferenceManager] - Unsupported axis: double lat(y=449, 
x=599);
  :axis = "Y";
  :units = "degrees_north";
  :long_name = "latitude";
  :standard_name = "latitude";
  :_CoordinateAxisType = "Lat";
in input: C:/projects/firewx/wrf_works.nc has been found
WARN [netcdf.NetCDFGeoreferenceManager] - Unsupported axis: double lon(y=449, 
x=599);
  :axis = "X";
  :units = "degrees_east";
  :long_name = "longitude";
  :standard_name = "longitude";
  :_CoordinateAxisType = "Lon";
in input: C:/projects/firewx/wrf_works.nc has been found
18 Sep 06:08:17 WARN [netcdf.NetCDFFormat] - Unable to connect
org.geotools.data.DataSourceException: Unable to connect
at 
org.geotools.coverage.io.netcdf.NetCDFReader.(NetCDFReader.java:158)
at 
org.geotools.coverage.io.netcdf.NetCDFFormat.getReader(NetCDFFormat.java:95)
at 
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1441)
at 
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1369)



Caused by: java.lang.NullPointerException
at 
org.geotools.coverage.io.netcdf.crs.ProjectionBuilder.createEllipsoid(ProjectionBuilder.java:255)
at 
org.geotools.coverage.io.netcdf.crs.NetCDFProjection.buildEllipsoid(NetCDFProjection.java:453)
at 
org.geotools.coverage.io.netcdf.crs.NetCDFProjection.parseProjection(NetCDFProjection.java:323)
at 
org.geotools.coverage.io.netcdf.crs.NetCDFProjection.lookForVariableCRS(NetCDFProjection.java:532)
at 
org.geotools.imageio.netcdf.NetCDFGeoreferenceManager.extractBBOX(NetCDFGeoreferenceManager.java:261)
at 
org.geotools.imageio.netcdf.NetCDFGeoreferenceManager.(NetCDFGeoreferenceManager.java:155)
at 
org.geotools.imageio.netcdf.NetCDFImageReader.init(NetCDFImageReader.java:443)
at 
org.geotools.imageio.netcdf.NetCDFImageReader.setInput(NetCDFImageReader.java:258)


When I look at the code for this error in geotools, it looks like this :

public static Ellipsoid createEllipsoid(String name, Map 
ellipsoidParams) {
Number semiMajor = null;
Number semiMinor = null;
Number inverseFlattening = Double.NEGATIVE_INFINITY;
if (ellipsoidParams.containsKey(NetCDFUtilities.SEMI_MAJOR)) {
semiMajor = ellipsoidParams.get(NetCDFUtilities.SEMI_MAJOR);
}
if (ellipsoidParams.containsKey(NetCDFUtilities.SEMI_MINOR)) {
semiMinor = ellipsoidParams.get(NetCDFUtilities.SEMI_MINOR);
}
if (ellipsoidParams.containsKey(NetCDFUtilities.INVERSE_FLATTENING)) {
inverseFlattening = 
ellipsoidParams.get(NetCDFUtilities.INVERSE_FLATTENING);
}
if (semiMinor != null) {
return DefaultEllipsoid.createEllipsoid(name, 
semiMajor.doubleValue(),
semiMinor.doubleValue(), SI.METER);
} else {
return DefaultEllipsoid.createFlattenedSphere(name, 
semiMajor.doubleValue(), /// --- NPE HERE semiMajor remains null.
inverseFlattening.doubleValue(), SI.METER);
}
}

Thanks!



Steve Ferguson
Application Developer

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.

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


Re: [Geoserver-users] NETCDF Plugin for geoserver-2.8-RC1

2015-09-17 Thread Ferguson, Steve -FS
Daniele,

Thanks for the response. Much appreciated. I’ve been trying off and on for 
quite a while now to work with the NETCDF plugin, several versions, always 
matching the version of geoserver, and can’t seem to make it work on the file I 
need to consume. When I try to load the file, I get an Exception that simply 
says :

Could not list layers for this store, an error occurred 
retrieving them


My question is how can I get information about what the NETCDF plugin thinks is 
wrong with this file? I have some control over how the file is created and can 
change things if need be, but I haven’t a clue what to fix/change. The file has 
similar form to examples contained in the geotools source distribution, but 
will not load.

The file is in the EPSG:3666 and has bands that represent different time series 
and I would like to be able to “play” the different point in time images, but I 
can’t seem to get the file loaded to be able to go to the next step.

The file is located at : http://mtnweather.info/download/wrf.nc. Any help or 
pointers would be greatly appreciated.

With geoserver-2.8-RC1 and the 2015-09-11 NETCDF plugin, the detailed exception 
is :

java.lang.RuntimeException: Could not list layers for this 
store, an error occur
red retrieving them: Failed to create reader from file://C:\projects\firewx\wrf.
nc and hints null
at 
org.geoserver.web.data.layer.NewLayerPageProvider.getItemsInternal(NewLayerPageProvider.java:151)
at 
org.geoserver.web.data.layer.NewLayerPageProvider.getItems(NewLayerPageProvider.java:59)
at 
org.geoserver.web.wicket.GeoServerDataProvider.fullSize(GeoServerDataProvider.java:242)
at 
org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.updateMatched(GeoServerTablePanel.java:566)
at 
org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.(GeoServerTablePanel.java:559)
at 
org.geoserver.web.wicket.GeoServerTablePanel.(GeoServerTablePanel.java:171)
at 
org.geoserver.web.wicket.GeoServerTablePanel.(GeoServerTablePanel.java:96)
at 
org.geoserver.web.data.layer.NewLayerPage$1.(NewLayerPage.java:106)
at 
org.geoserver.web.data.layer.NewLayerPage.(NewLayerPage.java:106)
at 
org.geoserver.web.data.store.CoverageStoreNewPage.onSuccessfulSave(CoverageStoreNewPage.java:79)
at 
org.geoserver.web.data.store.CoverageStoreNewPage.onSave(CoverageStoreNewPage.java:70)
at 
org.geoserver.web.data.store.AbstractCoverageStorePage$1.onSubmit(AbstractCoverageStorePage.java:116)

…

Caused by: java.io.IOException: Failed to create reader from file://C:\projects\
firewx\wrf.nc and hints null
at 
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1443)
at 
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1369)
at 
org.geoserver.catalog.impl.CoverageStoreInfoImpl.getGridCoverageReader(CoverageStoreInfoImpl.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at 
org.geoserver.catalog.impl.ModificationProxy.invoke(ModificationProxy.java:146)
at com.sun.proxy.$Proxy9.getGridCoverageReader(Unknown Source)
at 
org.geoserver.web.data.layer.NewLayerPageProvider.getItemsInternal(NewLayerPageProvider.java:90)
... 108 more





From: dany.geoto...@gmail.com [mailto:dany.geoto...@gmail.com] On Behalf Of 
Daniele Romagnoli
Sent: Thursday, September 17, 2015 3:14 AM
To: Ferguson, Steve -FS
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] NETCDF Plugin for geoserver-2.8-RC1

Dear Steve,
the NetCDF plugin is a community module.
2.8-RC1 has been recently released so I think there is some temporary 
misalignments between versions and downloads.
(I have sent an email to GeoServer devel, asking for details on this)

I can see the netcdf community module for 2.9.x (the incoming master):
http://ares.boundlessgeo.com/geoserver/master/community-latest/

as well as the latest for 2.8.x (the previous master before the RC1).
http://ares.boundlessgeo.com/geoserver/master/community-2015-09-11/

In the meantime you can consider using the 2015-09-11 one (I guess it will be 
automatically deleted tomorrow since a nightly build is preserved 1 week before 
being deleted in favor of more recent ones).
That plugin doesn't require special installation instruction: just unzip the 
zip in geoserver/WEB-INF/lib (in order to deploy its jars beside the other 
GeoServer jars) and restart GeoServer.

Finally, you can take a look to the GeoServer NetCDF documentation.
http://docs.geoserver.org/latest/en/user/community/netcdf/netcdf.html
Hope this helps.
Daniele




On Wed, Sep 16, 2015 at 6

[Geoserver-users] NETCDF Plugin for geoserver-2.8-RC1

2015-09-16 Thread Ferguson, Steve -FS
Hi all,

Can someone point me in the right direction to download the correct netcdf 
plugin to match geoserver-2.8-RC1? I don't see anything that looks right on 
boundlessgeo.  Also, I can't seem to find any specific installation 
instructions for this plugin, any help would be greatly appreciated.

Thanks very much.

Steve Ferguson
Application Developer

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.

--
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991=/4140___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Unable to consume NETCDF data : Couldn't determine time units from unit string 'secs'

2015-06-11 Thread Ferguson, Steve -FS
Simone,

I have tried with 2.7.0 and 2.7.1. I was able to check out and run with the 
latest geotools source code and reproduce the problem there as well. In looking 
at their source code they will only accept second or seconds and not secs 
so that was the problem. Thanks for getting back to me. I'll talk to the person 
who produces our NETCDF to see if they have any control over the format of the 
time in our file. 


Steve Ferguson 

-Original Message-
From: simbo...@gmail.com [mailto:simbo...@gmail.com] On Behalf Of Simone 
Giannecchini
Sent: Thursday, June 11, 2015 11:23 AM
To: Ferguson, Steve -FS
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Unable to consume NETCDF data : Couldn't 
determine time units from unit string 'secs'

Dear Steve,
I'll ping one of the devs about this problem, to me it looks like we are unable 
to recognize the units for the time dimension as secs
does not look CF compliant to me.

Just for the records, which version of GeoServer are you using?

Regards,
Simone Giannecchini
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
==
Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob:   +39  333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

---
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i 
file/s allegato/i sono da considerarsi strettamente riservate.
Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per 
le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio 
senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via 
e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal 
Vostro sistema.
Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad 
altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce 
comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the 
attention and use of the named addressee(s) and may be confidential or 
proprietary in nature or covered by the provisions of privacy act (Legislative 
Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in 
accord with its purpose, any disclosure, reproduction, copying, distribution, 
or either dissemination, either whole or partial, is strictly forbidden except 
previous formal approval of the named addressee(s). If you are not the intended 
recipient, please contact immediately the sender by telephone, fax or e-mail 
and delete the information in this message that has been received in error. The 
sender does not give any warranty or accept liability as the content, accuracy 
or completeness of sent messages and accepts no responsibility  for changes 
made after they were sent or for other risks which arise as a result of e-mail 
transmission, viruses, etc.


On Mon, Jun 1, 2015 at 9:41 PM, Ferguson, Steve -FS sfergu...@fs.fed.us wrote:
 I am attempting to consume this NETCDF file 
 http://www.mtnweather.info/download/wrfout_d01_2015-05-14_15:00:00.gz 
 (I unzip it before attempting to create a store). Upon doing so I 
 receive an exception shown below (somewhat abbreviated). My question 
 is, is there any way to overcome this exception allowing creation of a store 
 from this file?
 Maybe through configuration, or hints?



 01 Jun 10:42:23 WARN [org.geotools.coverage.io.netcdf.NetCDFFormat] - 
 Unable to connect

 org.geotools.data.DataSourceException: Unable to connect

 at
 org.geotools.coverage.io.netcdf.NetCDFReader.init(NetCDFReader.java:
 158)

 at
 org.geotools.coverage.io.netcdf.NetCDFFormat.getReader(NetCDFFormat.ja
 va:95)

 at
 org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.
 java:1436)

 at
 org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.
 java:1364)

 at
 org.geoserver.catalog.impl.CoverageStoreInfoImpl.getGridCoverageReader
 (CoverageStoreInfoImpl.java:59)

 …



 Caused by: org.geotools.data.DataSourceException:
 java.lang.IllegalArgumentException: Couldn't determine time units from 
 unit string 'secs'

 at
 org.geotools.coverage.io.netcdf.NetCDFAccess.init(NetCDFAccess.java:
 131)

 at
 org.geotools.coverage.io.netcdf.NetCDFDriver.connect(NetCDFDriver.java
 :92)

 at
 org.geotools.coverage.io.impl.DefaultFileDriver.process(DefaultFileDri
 ver.java:216)

 at
 org.geotools.coverage.io.netcdf.NetCDFReader.init(NetCDFReader.java:
 156)

 ... 118 more

 Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException:
 Couldn't determine time units from unit string 'secs

[Geoserver-users] Unable to consume NETCDF data : Couldn't determine time units from unit string 'secs'

2015-06-01 Thread Ferguson, Steve -FS
I am attempting to consume this NETCDF file 
http://www.mtnweather.info/download/wrfout_d01_2015-05-14_15:00:00.gz (I unzip 
it before attempting to create a store). Upon doing so I receive an exception 
shown below (somewhat abbreviated). My question is, is there any way to 
overcome this exception allowing creation of a store from this file? Maybe 
through configuration, or hints?

01 Jun 10:42:23 WARN [org.geotools.coverage.io.netcdf.NetCDFFormat] - Unable to 
connect
org.geotools.data.DataSourceException: Unable to connect
at 
org.geotools.coverage.io.netcdf.NetCDFReader.init(NetCDFReader.java:158)
at 
org.geotools.coverage.io.netcdf.NetCDFFormat.getReader(NetCDFFormat.java:95)
at 
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1436)
at 
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1364)
at 
org.geoserver.catalog.impl.CoverageStoreInfoImpl.getGridCoverageReader(CoverageStoreInfoImpl.java:59)
...

Caused by: org.geotools.data.DataSourceException: 
java.lang.IllegalArgumentException: Couldn't determine time units from unit 
string 'secs'
at 
org.geotools.coverage.io.netcdf.NetCDFAccess.init(NetCDFAccess.java:131)
at 
org.geotools.coverage.io.netcdf.NetCDFDriver.connect(NetCDFDriver.java:92)
at 
org.geotools.coverage.io.impl.DefaultFileDriver.process(DefaultFileDriver.java:216)
at 
org.geotools.coverage.io.netcdf.NetCDFReader.init(NetCDFReader.java:156)
... 118 more
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: 
Couldn't determine time units from unit string 'secs'
at 
org.geotools.imageio.netcdf.NetCDFImageReader.setInput(NetCDFImageReader.java:266)
at javax.imageio.ImageReader.setInput(ImageReader.java:380)
at 
org.geotools.coverage.io.netcdf.NetCDFAccess.init(NetCDFAccess.java:120)
... 121 more
Caused by: java.lang.IllegalArgumentException: Couldn't determine time units 
from unit string 'secs'
at 
org.geotools.imageio.netcdf.cv.TimeCoordinateVariable$TimeBuilder.init(TimeCoordinateVariable.java:79)
at 
org.geotools.imageio.netcdf.cv.TimeCoordinateVariable.init(TimeCoordinateVariable.java:131)
at 
org.geotools.imageio.netcdf.cv.CoordinateVariable.create(CoordinateVariable.java:117)
at 
org.geotools.imageio.netcdf.NetCDFImageReader.extractCoordinatesVariable(NetCDFImageReader.java:444)
at 
org.geotools.imageio.netcdf.NetCDFImageReader.init(NetCDFImageReader.java:510)
at 
org.geotools.imageio.netcdf.NetCDFImageReader.setInput(NetCDFImageReader.java:264)
... 123 more
01 Jun 10:42:23 INFO [org.geoserver.web] - Getting list of coverages for saved 
store file:netcdf/mtnweather/wrfout_d01_2015-05-14_15:00:00.nc
java.lang.RuntimeException: Could not list layers for this store, an error 
occurred retrieving them: Failed to create reader from 
file:netcdf/mtnweather/wrfout_d01_2015-05-14_15:00:00.nc and hints null
at 
org.geoserver.web.data.layer.NewLayerPageProvider.getItemsInternal(NewLayerPageProvider.java:151)
at 
org.geoserver.web.data.layer.NewLayerPageProvider.getItems(NewLayerPageProvider.java:59)
at 
org.geoserver.web.wicket.GeoServerDataProvider.fullSize(GeoServerDataProvider.java:242)

Caused by: java.io.IOException: Failed to create reader from 
file:netcdf/mtnweather/wrfout_d01_2015-05-14_15:00:00.nc and hints null
at 
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1438)
at 
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1364)
at 
org.geoserver.catalog.impl.CoverageStoreInfoImpl.getGridCoverageReader(CoverageStoreInfoImpl.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.geoserver.catalog.impl.ModificationProxy.invoke(ModificationProxy.java:146)
at com.sun.proxy.$Proxy14.getGridCoverageReader(Unknown Source)
at 
org.geoserver.web.data.layer.NewLayerPageProvider.getItemsInternal(NewLayerPageProvider.java:90)


Thanks!
Steve Ferguson

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


[Geoserver-users] Issue with GRIB input data

2015-04-22 Thread Ferguson, Steve -FS
Hi all,

I am relatively new to geoserver so bear with me. I have installed geoserver 
2.7.0. I've installed the grib plugin from 2.7.X. I can successfully create a 
store from this grib file :

http://nomads.ncep.noaa.gov/pub/data/nccf/com/nam/prod/nam.20150417/nam.t00z.firewxnest.hiresf00.tm00.grib2


But when I attempt to add any of the layers from this store, I receive the 
following Exception.


ERROR [wicket.RequestCycle] - Error occurred while building the resources for 
the configuration page
java.lang.RuntimeException: Error occurred while building the resources for the 
configuration page
at 
org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:356)
at 
org.geoserver.web.data.layer.NewLayerPage$8.onClick(NewLayerPage.java:281)
at 
org.geoserver.web.wicket.SimpleAjaxLink$1.onClick(SimpleAjaxLink.java:46)
at 
org.apache.wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLink.java:68)
at 
org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
at 
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:300)
at 
org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484)
at 
org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:138)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at 
org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:159)
at 
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at 
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at 
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at 
org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:28)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at 
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:75)
at 
org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:71)
at 
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:71)
at 
org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:46)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at 
org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:50)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
at 
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
at 
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
at 
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at 
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
at 
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at