Hello Chris and Joe

Le 15/12/12 14:14, Mattmann, Chris A (388J) a écrit :
Could you point Joe and I at the GeoTK stuff that you're porting? Anything
I could help port?

Thanks for the proposal :-). I started to port the code in this package:

https://builds.apache.org/job/sis-jdk7/site/apidocs/org/apache/sis/geometry/package-summary.html

I think there is good chances that I finish GeneralEnvelope by Monday.

As for the dependency from Tika to SIS, actually there is a choice. The GeneralEnvelope to be committed is an implementation of the following interface, which is derived from ISO 19107:

http://www.geoapi.org/snapshot/javadoc/org/opengis/geometry/Envelope.html

Ideally, I think that Tika should use only the Envelope interface as much as possible and avoid direct dependency to SIS. The Envelope interface is available through this Maven artifact:

    <dependency>
      <groupId>org.opengis</groupId>
      <artifactId>geoapi</artifactId>
      <version>3.0.0</version>
    </dependency>

At some point, an implementation of this interface is needed, but hopefully could be localized in only a small part of the code, in order to keep Tika easy to port to different GeoAPI implementations. For the implementation, there is two possibilities. Tika could depends on SIS with this Maven artefact:

    <dependency>
      <groupId>org.apache.sis</groupId>
      <artifactId>sis-referencing</artifactId>
      <version>0.2-SNAPSHOT</version>
    </dependency>

(Note: I suggest to use the trunk, not the JDK6 or JDK7 branch, because the trunk is nailed down on the official GeoAPI release while the branches are developed on top of milestones). However the Apache SIS referencing module is likely to become a 1 Mb dependency in a few months. Whether this is desirable or not for Tika depends on whether advanced services like map projections and connection to the EPSG database are useful to Tika or not.

If Tika needs only an Envelope implementation and a few other simple classes, then sis-referencing may be an overkill. In such case, Tika could instead bundles its own Envelope implementation. There is some simple GeoAPI implementation available in the public domain here (so anyone can put a copy under Apache license):

    http://www.geoapi.org/geoapi-examples/apidocs/index.html

I just realized that a SimpleEnvelope is missing in the above examples, but I could easily add one in the next few days (since I will be on SIS envelopes anyway).

    Martin

Reply via email to