Hi Justin;

I am running into some inconsistences as I document up examples that are 
restricted to SimpleFeature and so forth...

org.geotools.feature.Feature.getPrimaryGeometry(): Geometry
- a geometry that is somehow "preferred" and used as the default when 
rendering. In many cases this is simply the first geometry declaired.

The same concept is represented in super classes ...

org.opengis.feature.Feature.getDefaultGeometry(): GeometryAttribute()
org.opengis.feature.simple.SimpleFeature.getDefaultGeometryValue(): Object
- helper method for getDefaultGeometry().getValue()
- may be type narrowed by an implementation

I would like to remove getPrimaryGeometry(): Geometry and replace it 
with getDefaultGeometryValue() type narrowed to Geometry for two reasons ...
- code completion will let people discouver the new method when they 
start typing getDefaultGeometry
- on less method for people to figure out

What do you think?
Jody

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to