Revision: 4605
          http://sourceforge.net/p/jump-pilot/code/4605
Author:   edso
Date:     2015-12-13 12:54:34 +0000 (Sun, 13 Dec 2015)
Log Message:
-----------
max feature setting is now respected on request

Modified Paths:
--------------
    core/trunk/src/de/latlon/deejump/wfs/data/JUMPFeatureFactory.java
    core/trunk/src/de/latlon/deejump/wfs/ui/WFSOptions.java

Modified: core/trunk/src/de/latlon/deejump/wfs/data/JUMPFeatureFactory.java
===================================================================
--- core/trunk/src/de/latlon/deejump/wfs/data/JUMPFeatureFactory.java   
2015-12-13 11:56:18 UTC (rev 4604)
+++ core/trunk/src/de/latlon/deejump/wfs/data/JUMPFeatureFactory.java   
2015-12-13 12:54:34 UTC (rev 4605)
@@ -12,7 +12,6 @@
 import static org.deegree.model.spatialschema.JTSAdapter.export;
 
 import java.io.IOException;
-import java.io.InputStream;
 import java.io.StringReader;
 import java.net.MalformedURLException;
 import java.net.URI;

Modified: core/trunk/src/de/latlon/deejump/wfs/ui/WFSOptions.java
===================================================================
--- core/trunk/src/de/latlon/deejump/wfs/ui/WFSOptions.java     2015-12-13 
11:56:18 UTC (rev 4604)
+++ core/trunk/src/de/latlon/deejump/wfs/ui/WFSOptions.java     2015-12-13 
12:54:34 UTC (rev 4605)
@@ -8,6 +8,8 @@
  */
 package de.latlon.deejump.wfs.ui;
 
+import de.latlon.deejump.wfs.data.JUMPFeatureFactory;
+
 /**
  * <code>WFSOptions</code>
  * 
@@ -18,8 +20,6 @@
  */
 public class WFSOptions {
 
-    private int maxFeatures;
-
     private String[] outputFormats;
 
     private String selectedOutputFormat;
@@ -43,14 +43,14 @@
      * 
      */
     public WFSOptions() {
-        this( 1000, new String[] { "GML2", "text/xml; subtype=gml/3.1.1" }, 
new String[] { "GET", "POST" } );
+        this( JUMPFeatureFactory.getMaxFeatures(), new String[] { "GML2", 
"text/xml; subtype=gml/3.1.1" }, new String[] { "GET", "POST" } );
     }
 
     /**
      * @return the max features setting to be used in the request
      */
     public int getMaxFeatures() {
-        return maxFeatures;
+        return JUMPFeatureFactory.getMaxFeatures();
     }
 
     /**
@@ -60,7 +60,7 @@
         if ( maxFeatures < 1 ) {
             throw new IllegalArgumentException( "maxFeatures must be a number 
greater than 1." );
         }
-        this.maxFeatures = maxFeatures;
+        JUMPFeatureFactory.setMaxFeatures(maxFeatures);
     }
 
     /**


------------------------------------------------------------------------------
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to