Jody Garnett created GEOT-4008:
----------------------------------

             Summary: Shapefile and Shape Next Generation Sort parameters
                 Key: GEOT-4008
                 URL: https://jira.codehaus.org/browse/GEOT-4008
             Project: GeoTools
          Issue Type: New Feature
          Components: shapefile plugin
    Affects Versions: 8.0-RC1
            Reporter: Jody Garnett
            Assignee: Andrea Aime


I am trying out shapefile and shapefile-ng with respect to sorting.

On email Andrea had the idea of a boolean "sort" parameter; the following patch 
follows this idea with an (optional) sort parameter capable of 'none', 'memory' 
and 'disk'.
{code}

Shapefile DataStore (optional sort parameter: defaults to 'none' ):
{code}
    public static final Param SORT = new Param("sort",
            String.class, "Sort strategy 'none' supported, 'memory' and 'disk' 
not supported", false, "none",
            new KVP(Param.LEVEL, "advanced", Param.OPTIONS,Arrays.asList(new 
String[]{"none","memory"})));
    
{code}

Shapefile NG DataStore (optional sort parameter: defaults to "disk"):
{code}
    public static final Param SORT = new Param("sort",
            String.class, "Sort strategy 'disk' supported, 'memory' and 'none' 
not supported", false, "disk",
            new KVP(Param.LEVEL, "advanced"));
{code}

It is anticipated that this parameter would allow the Shapefile NG work to be 
merged into gt-shapefile.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to