On 10. 8. 2018 15:00, Andrea Aime wrote:
On Fri, Aug 10, 2018 at 2:50 PM György Tomcsányi <[email protected] <mailto:[email protected]>> wrote:

    Hi Andrea,

    we are preparing the pull request.

    We had a small problem when upgrading Geoserver to the latest
    build to test it. We had existing mosaics in the data dir, and
    Geoserver failed to start because of the JTS version upgrade. File
    <mosaic_dir>/.mosaic/<mosaic_name>.properties contains a reference
    to "com.vividsolutions.jts.geom.Polygon" which needed to be edited
    manually.

    I understand this is probably a work in progress.. but I have not
    found mentions of this in the Upgrade to JTS 1.15 document.


There is no work in progress left, I'm guessing this was overlooked in the upgrade process. Can you please share a sample file so that the people involved in the JTS upgrade work can have a look?

Basically any ImageMosaic that has a "*the_geom:Polygon" attribute in the schema. I have attached an indexer.xml and the generated .mosaic/mosaicname.properties file.


    Is this something that must be done manually after updating
    Geoserver or is there a way to do this automagically?


I hope this happens automatically, that's how we normally handle backwards compatibility (in dire cases having a manual change is the only way, but I don't remember that happening in the past years).

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 di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- /Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail./


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Indexer>
   <domains>
      <domain name="time">
         <attributes><attribute ref="timeCollector">time</attribute></attributes>
      </domain>
   </domains>
   <schemas>
      <schema name="default">
        <attributes>*the_geom:Polygon,location:String,time:java.sql.Timestamp</attributes>
      </schema>
   </schemas>
   <coverages>
      <coverage>
         <name>mosaicname</name>
         <schema ref="default"></schema>
         <domains>
            <domain ref="time"/>
         </domains>
      </coverage>
   </coverages>
   <collectors>
      <collector name="timeCollector">
         <value>regex=(run[0-9]{14}),format='run'yyyyMMddHHmmss,fullPath=true</value>
         <spi>TimestampFileNameExtractorSPI</spi>
         <mapped>time</mapped>
      </collector>
   </collectors>
   <parameters>
        <parameter name="AbsolutePath" value="true" />
        <parameter name="Caching" value="false" />
        <parameter name="CanBeEmpty" value="false" />
        <parameter name="IndexingDirectories" value="/path/to/tiffs/" />
        <parameter name="Name" value="mosaicname" />
        <parameter name="Recursive" value="true" />
        <parameter name="TimeAttribute" value="time" />
    </parameters>
</Indexer>
#Tue Aug 15 13:48:39 GMT 2017
MAPPEDNAME=MOSAICNAME
SCHEMA=the_geom\:com.vividsolutions.jts.geom.Polygon,location\:java.lang.String,time\:java.util.Date
NAME=mosaicname
CRS=GEOGCS["WGS 84", \n  DATUM["World Geodetic System 1984", \n    
SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]], \n    
AUTHORITY["EPSG","6326"]], \n  PRIMEM["Greenwich", 0.0, 
AUTHORITY["EPSG","8901"]], \n  UNIT["degree", 0.017453292519943295], \n  
AXIS["Geodetic longitude", EAST], \n  AXIS["Geodetic latitude", NORTH], \n  
AUTHORITY["EPSG","4326"]]
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to