Geotools

Geotools is a GIS java library.

see geotools.codehaus.org/

Installation with Ivy

build.xml

  <ivy:settings file="ivysettings.xml"/> 

ivysettings.xml

<ivysettings>
  <settings defaultResolver="chain1" />
  <resolvers>
    <chain name="chain1">
      <filesystem name="libraries">
    <artifact pattern="${ivy.settings.dir}/repository/[artifact]-[revision].[type]" />
      </filesystem>

      <ibiblio name="osgeo" root="http://download.osgeo.org/webdav/geotools/" m2compatible="true" />
      <ibiblio name="java" root="http://download.java.net/maven/2/" m2compatible="true" />
      <ibiblio name="ibiblio" root="http://www.ibiblio.org/maven2/" m2compatible="true" />
      <ibiblio name="central" root="http://repo1.maven.org/maven2/" m2compatible="true" />
    </chain>
  </resolvers>
</ivysettings>

ivy.xml

Dependency to use shapefiles

<ivy-module version="1.0">
    <info module="geotools" organisation="capsis"/>

    <dependencies>
      <dependency org="org.geotools" name="gt-main" rev="latest.integration"/>
      <dependency org="org.geotools" name="gt-shapefile" rev="latest.integration"/>
      <dependency org="org.geotools" name="gt-epsg-hsql" rev="latest.integration"/>
    </dependencies>
</ivy-module>

list of jars

commons-beanutils.jar  gt-api.jar          gt-shapefile.jar  jts.jar
commons-logging.jar    gt-epsg-hsql.jar    hsqldb.jar        junit.jar
commons-pool.jar       gt-main.jar         jai_core.jar      vecmath.jar
geoapi.jar             gt-metadata.jar     jdom.jar
geoapi-pending.jar     gt-referencing.jar  jsr-275.jar