|
Welcome to the GeoAPI home page. GeoAPI provides a set of interfaces from OpenGISĀ® specifications. |
DownloadGeoAPI 2.0 Release |
NewsYou can Add News at the top of this page, or visit past news entries using Browse Space.
Last changed Sep 13, 2007 13:24 by jgarnett
2.1-M9 has been released into our maven repository. This release includes the results of a review of our "General Feature Model". These interfaces are a compromise between GeoAPI 2.0 and ISO19109. For GeoAPI 2.0 users:
And now over to Justin: Hi all, Time for round2 with geoapi. Based on andreas initial feedback and the thread that resulted I have taken a crack at simplifying the model. Here is a summary of what I have done. JavaDocsJavaDocs are now to the point, and no longer a brain dump from Jody. They should be much more approachable from the normal java programmer point of view, and less in terms of Rob A (sorry Rob Attribute methods pushed up to PropertyAll the "meat" is now on the Property interface. This makes it more much more possible to write code against Property directly, and not have to worry about if its actually an Attribute or an Association. For this reason, there is not longer a real need for the "view" methods. When I say "view method" what i mean is:
Added useful methods to ComplexFeatureBefore, the only access to the properties of a ComplexFeautre were through:
This is a pain, because more often then not you know that you have only Property getProperty( Name ); The javadocs on these methods clearly state that the first property CRS only available on GeometryTypeBefore a CRS was available from the following:
That has been changed so that it is only available on GeometryType and FeatureType. The javadoc for FeatureType.getCRS() clearly states that the crs is derived from the default GeometryType. I found this useful to get out of writing code like this (like i have so many times): CRS crs = ... if ( featureType.getDefaultGeomtry() != null ) { crs = featureType.getDefaultGeometry().getCRS(); } Killed FeatureCollectionOK I did not kill it... but I killed it from the factories. Basically FeatureCollection in geoapi should be ignored. Java Bean ConventionsAll methods follow java bean naming conventions UserDataInstead of rolling our own interface which looks like a half baked
SimpleFeatureI changed the following methods:
to:
(and the corresponding setter methods). Also changed:
to:
Now things get a bit interesting here. Note that these methods return the attribute value, and not the attribute itself. This might be a bit confusing in terms of naming conventions, but it has a few key advantages:
Talking with Jody on this one we are a bit torn. It would be great to have more feedback on this one. And that is it. Let me know what you all think. Let the second round of review begin. -Justin – Justin Deoliveira The Open Planning Project http://topp.openplans.org
Last changed Sep 04, 2007 21:15 by jgarnett
GeoAPI 2.1-M8 has been deployed to the maven repositories for review. The significant change this release is the additional of a valueOf method to each code list implementation (to prevent applications calling the constructor). Bug
Improvement
For more information please visit our issue tracker: This release is the targeted for GeoTools 2.5-M0. |
Quick Links |