GeoTools

OSGeo

Sunday, September 14, 2014

GeoTools at FOSS4G 2014

Thanks to the local organising committee, volunteers, all the sponsors and over 870 attendees we had a wonderful time at foss4g 2014 in Portland.

GeoTools DataStore Workshop

On the GeoTools front we started off the week with a workshop I have been looking forward to running for some years now ... creating your own custom DataStore. This was an exciting workshop as it relied on participants bringing their own device (and in this context their own IDE).
This workshop is available for general use now:


A big thanks to Eva Shon, Ian Turton for prep assistance on Monday. Thanks to both Ian Turton and Tom Kunicki for holding down the fort, helping attendees with maven and keeping the workshop entertaining. We would of course like to thank our employers Boundless, Envitia, and WSI (a division of The Weather Company).
Demo Time at DataStore Workshop
It was great to hear from teams throughout the week that are already working on porting their custom data access work from AbstractDataStore to ContentDataStore. Everyone else ... you are put on notice - AbstractDataStore has had its time in the sun and it is time to move on.

GeoServer, GeoTools and Friends 2014

GeoTools also enjoyed a bit of air time in GeoServer, GeoTools and Friends 2014.


Thanks to Andrea, Jody and Justin for making the above presentation available.

Java Code Sprint

Finally we enjoyed a one and a half day code sprint, with a wide range of projects. It was a great chance to catch up with teams making great use of GeoTools (and fix a few issues). Thanks to WhereCampPDX and  Boundless for providing creative space.

Monday, August 18, 2014

GeoTools 12-RC1 Released

The GeoTools community is delighted to announce the availability of GeoTools 12-RC1 for testing:
This release is made in conjunction with GeoServer 2.6-RC1 and contains some good bug fixes and improvements since 12-beta. See the change log for details and check out the 12-beta announcement for more information about what's new in the GeoTools 12 series. 

Download the release candidate today and help us by reporting any problems in the bug tracker

Thanks for using GeoTools.

GeoTools 10.8 Released

The GeoTools community is pleased to bring you the last maintenance release for GeoTools 10.
Downloads for GeoTools 10.8 are available now:
The GeoTools 10.8 Release Notes detail a few lonely fixes.
This is the final GeoTools 10 release, please migrate your applications to GeoTools 11.

About the GeoTools 10.x Series

The GeoTools 10.x series:
  • Initial Release: GeoTools 10.0 was initially released in September 2013 at FOSS4G 2013
  • Stable: GeoTools 10.x acted as the recommended stable release series until GeoTools 10.5 in February 2014
  • Maintenance: The life of GeoTools 10.x was extended with an additional maintenance phase ending with todays release of GeoTools 10.8

Friday, July 25, 2014

GeoTools 12-beta Released

The GeoTools community is delighted to announce availability of GeoTools 12-beta for testing:
This release is made in conjunction with GeoServer 2.6-beta.

We will provide a more detailed feature list for the final 12.0 release, for now check out the GeoTools 12-beta Release Notes.

This beta release is provided for integration testing. Earlier this year we slowed down our release cycle for better collaboration. At this time we ask downstream projects to perform a smoke test and highlight any issues found.

Priority should be given to testing the following functionality:

Java 7
We have changed our source compile options to 1.7, you will need to use OpenJDK 7 or Oracle JDK 7 to this release of GeoTools. While upgrading to Java 7 take advantage of the try-with-resource syntax which is compatible many GeoTools constructs. 

try (SimpleFeatureIterator iterator = featureCollection.features()){
   while( iterator.hasNext() ){
     SimpleFeature feature = iterator.next();
     ...
   }
}

You can see the original proposal for details.

Thanks for CSIRO, Boundless and GeoSolutions for updating the build servers so we could make this transition in a responsible fashion.

gt-wfs-ng
The wfs-ng client is now ready for widespread use, acting as a drop-in replacement (making use of the same connection parameters). A great deal of attention has been paid to support axis-order corrections allowing the wfs-ng client to work with all manner of ill-behaved WFS implementations. 

String getCapabilities = "http://localhost:8080/geoserver/wfs?REQUEST=GetCapabilities";
Map connectionParameters = new HashMap();
connectionParameters.put("WFSDataStoreFactory:GET_CAPABILITIES_URL", getCapabilities );
DataStore dataStore = DataStoreFinder.getDataStore( connectionParameters );

In order to make wfs-ng a drop-in replacement (and respond to the same connection parameters) you are limited to only using one of the gt-wfs and gt-wfs-ng plugins in your application at a time.

advanced raster reprojection
A lot of work has been put into improving the raster reprojection story for glitches around the date line and polar regions. To enable these options use the following rendering hints:

rendererParams.put(StreamingRenderer.ADVANCED_PROJECTION_HANDLING_KEY, true);

rendererParams.put(StreamingRenderer.CONTINUOUS_MAP_WRAPPING, true);

We have set these parameters by default for GeoServer 2.6-beta so you are in good company for this test.

circular string
This release of GeoTools include new abilities for the WKTReader2 allowing it to read CIRCULAR string. This is especially exciting as it makes use of series of subclass of JTS LineString. These subclasses will use a tolerance to produce appropriate  coordinates for integration with JTS Geometry operations. As far as JTS is concerned they walk and talk like a LineString, while you can control the implementation by defining control points and a tolerance.

GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory();
CurvedGeometryFactory curvedfactory = new CurvedGeometryFactory(Double.MAX_VALUE);    
WKTReader2 reader = new WKTReader2(curvedfactory);
CircularString arc = (CircularString) reader.read("CIRCULARSTRING(10 14,6 10,14 10)");


For more details check out the geometry documentation.  The original proposal is also online. 
LineString subclasses supporting Arcs
This implementation has been integrated with OracleDataStore (for all those data sets that include circular arcs). We are also interested in feedback on CurvedGeometryFactory as the API is only a few weeks old.

General
We are waiting on documentation for a couple of changes, stay tuned for details on:
  • image mosaic vector foot prints
  • coverage views

About GeoTools 12

GeoTools 12 is scheduled for release in Q2 highlighting the following features:
  • Java 7 is now required
  • wfs-ng client with new GML parsing engine
  • Support for curved strings via CurvedGeometryFactory, WKTReader2 and Oracle

Wednesday, July 23, 2014

GeoTools 11.2 released

The GeoTools community is happy to announce the latest  GeoTools 11.2 download:
This release is also available from our maven repository. This release is made in conjunction with GeoServer 2.5.2.

This is a release of the GeoTools 11 Stable series recommended for production systems. The release schedule now offers 6 months of stable releases followed by six months of maintenance releases.

A few highlights from the GeoTools 11.2-Release Notes:
  • Some image mosaic fixes about performance, granule harvesting, and heterogeneous mosaic management
  • Some fixes in XML encoding, in GML and WPS land
  • Upgraded imageio-ext dependency to 1.1.10
  • Some improvements in Grib and NetCDF formats 
Thanks to Andrea for this release (GeoSolutions).

About GeoTools 11

Summary of the new features for the GeoTools 11 series:
  • The DataStore API has a new removeSchema method to drop feature types. This new optional feature is currently implemented by the JDBCDataStore family (all spatial database backed stores), other stores will likely throw an UnsupportedOperationException
  • JDBCDataStore now exposes facilities to list, create and destroy indexes on database columns.
  • Ability to create and drop databases from the PostgisNGFactory
  • PostGis data store will now call ST_Simplify when the GEOMETRY_SIMPLIFICATION hint is provided, significantly speeding up loading of complex geometries  (the renderer can perform scale based simplification already, but doing it before sending the data speeds up data retrieval significantly)
  • ImageMosaic can now manage vector footprints for its granules, allowing to filter out no-data or corrupted sections of the imagery
  • All properties in a SLD style can now have a local unit of measure, as opposed to specifying the unit of measure per symbolizer. For example, if you need to have a line width to be 10 meters, its value can now be "10m"
  • Improved handling of data with 3D coordinates in JDBC data stores
  • A number of small improvements to the rendering engine, such as improved raster icon placement resulting in cleaner, less blurry output, improved label grouping, better handling of icons at the border of the map and in general much improved estimation of the buffer area needed to include all symbols in a map (for features that sit outside the map, but whose symbols are big enough to enter it).

Thursday, June 19, 2014

GeoTools 10.7 Released

The GeoTools community is pleased to bring you GeoTools 10.7:
Artifacts are also available from our maven repository.
GeoTools 10 has passed into maintenance - offering an extra six months of support. For more information see Changing Tracks on the the GeoTools Release Train.
The GeoTools 10.7 Release Notes detail changes including:
  • Feeling cold? Rendering improvements for the north/south poles
  • In addition to lambert azimuthal (above) rendering for lamber conformal and equidistant conic as improved
  • More labeling fixes (two consecutive newlines and auto-wrap with parentheses)
  • SQL improvements for encoding FeatureId filters
There is one more maintenance release scheduled for August. Plan your upgrade to GeoTools 11 appropriately.

About the GeoTools 10.x Series

Summary of the features for the GeoTools 10.x series:
  • Structured grid coverage readers allow raster data sources that publish composite data products to expose individual rasters (ie granules) for processing, while still providing a seamless experience for rendering. The mosaic and NetCDF modules are the first ones to implement these new interfaces.
  • Efficient support for multiple coverages in GridCoverageReader provides ad-hoc access to raster formats that publish more that one data product. A image mosaic made of NetCDF granules and single file NetCDF sources are the first implementors of these new capabilities
  • new implementation of Shapefile DataStore (based on ContentDataStore superclass). This upgrade should be seamless for all users using DataStoreFactoryFinder. If you explicitly made use of the ShapefileDataStore or IndexedShapefileDataStore class please check the upgrade instructions.
  • The transform module graduated to supported status, providing a seamless way to rename, retype and hide SimpleFeatureSource attributes, as well as creating new ones based on OGC Expression
  • Additional OGC modules for the WCS 2.0 and WCS 2.0 EO models as well as adding XML parsers and encoders
  • Support for fills made with randomized symbols
The 10.x series features a number of research and development activities:
  • NetCDF has been updated to take advantage of the new coverage API introduced above
  • GeoPackage: a sample implementation of the geopackage spec that is currently being developed by the OGC
If you are interested in helping out please introduce yourself on geotools-devel mailing list.
Enjoy,
The GeoTools Community

Tuesday, May 20, 2014

GeoTools 11.1 Released

The GeoTools community is happy to announce the latest  GeoTools 11.1 download:
This release is also available from our maven repositoryThis release is made in conjunction with GeoServer 2.5.1.

This is a release of the GeoTools 11 Stable series recommended for production systems. The release schedule now offers 6 months of stable releases followed by six months of maintenance releases.

A few highlights from the GeoTools 11.1-Release Notes:
  • 2.5D coordinates are available in GML2 (even if the CRS is 2D)
  • Fixes for the ECQL Parser Fid Filter handling
  • FilterToSQL improperly encodes fid filters with multiple fids
  • Fix for multi line labels
  • Fixes for Oracle axis name and spatial index name
  • ImageMosaic support continues to improve with create/delete support and safety checks for heterogeneous resolutions management
Thanks to Andrea and Jody for this release (and GeoSolutions and Boundless respectively).

About GeoTools 11.1

Summary of the new features for the GeoTools 11.1 series:
  • The DataStore API has a new removeSchema method to drop feature types. This new optional feature is currently implemented by the JDBCDataStore family (all spatial database backed stores), other stores will likely throw an UnsupportedOperationException
  • JDBCDataStore now exposes facilities to list, create and destroy indexes on database columns.
  • Ability to create and drop databases from the PostgisNGFactory
  • PostGis data store will now call ST_Simplify when the GEOMETRY_SIMPLIFICATION hint is provided, significantly speeding up loading of complex geometries  (the renderer can perform scale based simplification already, but doing it before sending the data speeds up data retrieval significantly)
  • ImageMosaic can now manage vector footprints for its granules, allowing to filter out no-data or corrupted sections of the imagery
  • All properties in a SLD style can now have a local unit of measure, as opposed to specifying the unit of measure per symbolizer. For example, if you need to have a line width to be 10 meters, its value can now be "10m"
  • Improved handling of data with 3D coordinates in JDBC data stores
  • A number of small improvements to the rendering engine, such as improved raster icon placement resulting in cleaner, less blurry output, improved label grouping, better handling of icons at the border of the map and in general much improved estimation of the buffer area needed to include all symbols in a map (for features that sit outside the map, but whose symbols are big enough to enter it).