Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 12-RC1
    • Fix Version/s: 16-M0
    • Component/s: wfs-ng
    • Labels:
      None

      Description

      Hello,

      I tested the new wfs-ng module.
      When I select a FeatureType by FeatureTypeName (String) the new module behaves strange. The correct FeatureTypeName I try to read is "medford:hydro".
      But to get this code to work with the new wfs-ng module I have to substitute the colon ":" with an underscore "_".

      ;
      Map< HashMap<>();
      connectionParameters.put(, getCapabilities );

      DataStore dataStore = DataStoreFinder.getDataStore(connectionParameters);
      WFSDataStore wfsDataStore = (WFSDataStore) dataStore;

      ;

      Query query = Query();
      query.setCoordinateSystem(wfsDataStore.getFeatureSource(featureTypeName).getInfo().getCRS());
      query.setMaxFeatures(5);

      SimpleFeatureCollection simpleFeatureCollection = wfsDataStore.getFeatureSource(featureTypeName).getFeatures(query);

      i = 0;
      (SimpleFeatureIterator iterator = simpleFeatureCollection.features()){
      (iterator.hasNext() )

      Unknown macro: { SimpleFeature feature = iterator.next(); + feature); i++; }

      }

      This is the Error I get with the new wfs-ng module, if I use the right FeatureTypeName.

      Aug 29, 2014 3:09:23 PM org.geotools.data.wfs.internal.WFSClient determineCorrectStrategy
      Information: Using WFS Strategy: org.geotools.data.wfs.internal.v1_x.GeoServerPre200Strategy
      Exception in thread "main" java.io.IOException: Schema 'medford:hydro' does not exist.
      at org.geotools.data.store.ContentDataStore.ensureEntry(ContentDataStore.java:611)
      at org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:389)
      at org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:356)
      at de.x.y.z.v.w.t.main(w.java:33)

      With the old wfs module everything works just fine.
      Hope my description hleps you to find the failure.

      Greetings Jonas

        Attachments

          Activity

            People

            • Assignee:
              NielsCharlier Niels Charlier
              Reporter:
              harrison.grundy codehaus (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: