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&all_lev=on&var_TMP=on&leftlon=0&rightlon=360&toplat=90&bottomlat=-90&dir=%2Fhiresw.20160809

my indexer.xml looks like this :

<?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,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>


My _auxiliary.xml looks like :

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


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

Reply via email to