Hi Mike,
I think that the only way to investigate into the issue is to debug the
code.
Do you have any chance to open a JIRA for this?
I think you can simply paste the explanations you provided in this email.
Please, also attach the sample zip, containing data (even fake pixels but
proper naming), indexer, and so on, which you have used to do the harvest
as well as the steps you performed to do the creation/harvesting.

Hope this helps.
Regards,
Daniele




==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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.


On Tue, Mar 31, 2015 at 10:04 PM, Mike Grogan <[email protected]>
wrote:

> As I continue to work on REST-based configuration of some Image Mosaic
> stores, I know I will run into some questions, so I thought I would start a
> thread for those here.  I hope that is ok.
>
> My first question here involves the time attribute / dimension for a
> store.  Specifically, I am using the new indexer.xml form of the indexer
> for the image mosaic, but I am using it with geotiffs.  This has worked
> fine in the past, with some pointers from Daniele and others.
>
> If I create a new image mosaic through the web interface and allow it to
> collect my granules at the same time, everything works fine.  The
> auto-generated .properties file for the mosaic contains the TimeAttribute=
> entry as expected, and when I go to publish a layer, the time dimension is
> populated correctly with the value of the TimeAttribute.
>
> However, when I zip up the indexer.xml and datastore.properties files and
> use the REST interface to create an empty mosaic, then use the REST
> interface again to harvest my granules, the auto-generated .properties file
> does not contain the TimeAttribute= entry, and the web interface says the
> time dimension is disabled ("Cannot enable, no attribute of type Date
> found").
>
> Oddly, everything in the database is fine ... the attribute for the time
> is parsed correctly for each file.  If I manually add the TimeAttribute=
> back to the auto-generated .properties file and reload the GeoServer
> configuration, then it works.  It just seems, then, that the attribute
> isn't getting added to properties when I harvest via REST.
>
> I am pasting my indexer.xml file below.  I have dug into the code and have
> tried adding the TimeAttribute to the parameters but it still seems to no
> avail.
>
> I greatly appreciate the help!
>
> - Mike Grogan
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <Indexer>
>    <domains>
>       <domain name="time">
>          <attributes><attribute
> ref="timeCollector">validtime</attribute></attributes>
>       </domain>
>       <domain name="level">
>          <attributes><attribute
> ref="levelCollector">level</attribute></attributes>
>       </domain>
>    </domains>
>    <schemas>
>       <schema name="default">
>
>  
> <attributes>the_geom:Polygon,location:String,validtime:java.util.Date,level:String</attributes>
>       </schema>
>    </schemas>
>    <coverages>
>       <coverage>
>          <name>wind</name>
>          <schema ref="default"></schema>
>          <domains>
>             <domain ref="time"/>
>             <domain ref="level"/>
>          </domains>
>       </coverage>
>    </coverages>
>    <collectors>
>       <collector name="timeCollector">
>          <value>regex=[0-9]{8}T[0-9]{9}Z</value>
>          <spi>TimestampFileNameExtractorSPI</spi>
>          <mapped>validtime</mapped>
>        </collector>
>       <collector name="levelCollector">
>          <value>(?&lt;=Z_)([a-zA-Z0-9]+)</value>   <!-- the lt is for
> symbol -->
>          <spi>StringFileNameExtractorSPI</spi>
>          <mapped>level</mapped>
>        </collector>
>    </collectors>
>    <parameters>
>         <parameter name="Name" value="mywind10"/>
>         <parameter name="TimeAttribute" value="validtime" />
>         <parameter name="AbsolutePath" value="true" />
>         <parameter name="CanBeEmpty" value="true" />
>     </parameters>
> </Indexer>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to