Hello Kevin,
you should define your custom schema adding the attribute having the same
name of the dimension you want to add.
I'm attaching a couple of AUX / indexer file where you can see an example.
The example contains both an explicit schema with attributes (surf_temp) as
well as a schema used by reference (cloud).
Hope this helps.
Please, let us know if you still need clarifications.
Cheers,
Daniele
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
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
-------------------------------------------------------
On Wed, Apr 9, 2014 at 11:30 PM, Weiss, Kevin <[email protected]> wrote:
> Hello all,
>
> I'm curious if there is a way to extract variables other than time &
> elevation from a NetCDF. I followed the example
> here<http://docs.geoserver.org/stable/en/user/rest/examples/curl.html#creating-an-empty-mosaic-and-harvest-granules>to
> create the indexer & auxiliary file and I'm able to insert data via the
> REST interface, but the additional domain I added ends up as NULL in the
> DB. The example indexer pulls time & elevation from the NetCDF file, but
> the other attributes (fileDate & updated) are parsed by data extractors
> that read the filename & filesystem modified time respectively. I need to
> pull an additional dimension from the NetCDF data to be stored in the DB as
> a filterable dimension.
>
>
> I tried listing the dimensions in the same manner as the time & elevation
> dimensions in the indexer.xml and auxiliary file, but that doesn't appear
> to work. Any help or examples would be greatly appreciated.
>
>
>
> Thanks,
>
>
>
> *Kevin M. Weiss*
>
> Software Engineer
>
> *H**A**RRIS IT Services*
>
>
>
>
> ------------------------------------------------------------------------------
> Put Bad Developers to Shame
> Dominate Development with Jenkins Continuous Integration
> Continuously Automate Build, Test & Deployment
> Start a new project now. Try Jenkins in the cloud.
> http://p.sf.net/sfu/13600_Cloudbees
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Indexer>
<schemas>
<schema name="cloud" >
<attributes>the_geom:Polygon,coverage:String,imageindex:Integer,cloud_formations:Integer</attributes>
</schema>
</schemas>
<coverages>
<coverage>
<name>cloud_top_temperature</name>
<schema ref="cloud"></schema>
</coverage>
<coverage>
<name>surface_temperature</name>
<schema name="surf_temp" >
<attributes>the_geom:Polygon,coverage:String,imageindex:Integer,surf_temp:Double</attributes>
</schema>
</coverage>
</coverages>
</Indexer>
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Indexer>
<domains>
<domain name="cloud_formations">
<attributes><attribute>cloud_formations</attribute></attributes>
</domain>
</domains>
<schemas>
<schema name="cloud" >
<attributes>the_geom:Polygon,location:String,imageindex:Integer,cloud_formations:Integer,runtime:String</attributes>
</schema>
</schemas>
<coverages>
<coverage>
<name>cloud_top_temperature</name>
<schema ref="cloud" />
<domains>
<domain ref="cloud_formations" />
</domains>
</coverage>
<coverage>
<name>surface_temperature</name>
<schema name="surf_temp" >
<attributes>the_geom:Polygon,location:String,imageindex:Integer,surf_temp:Double,runtime:String</attributes>
</schema>
<domains>
<domain name="surface_temperatures">
<attributes><attribute>surf_temp</attribute></attributes>
</domain>
</domains>
</coverage>
</coverages>
<collectors>
</collectors>
<parameters>
<parameter name="AuxiliaryFile" value="AUXfile.xml" />
<parameter name="AbsolutePath" value="true" />
</parameters>
</Indexer>------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users