//set all the QueryParameter items up here
List<Feature> finalFeatures = new LinkedList<Feature>();
ListenableFuture<FeatureQueryResult> future = featureTableToQuery.queryFeaturesAsync(query, queryField);
try {
FeatureQueryResults features = future.get();
for (Feature feature : features) {
finalFeatures.add(feature);
}
} catch (Exception e) {
e.printStackTrace();
}
return finalFeatures;
File jsonFile = new File(filepath);
if (jsonFile.exists()) {
Path jsonPath = Path.of(filepath);
String json = Files.readString(jsonPath);
FeatureCollection collect = FeatureCollection.fromJson(json);
List<FeatureCollectionTable> featureTables = collect.getTables();
List<Feature> allFeatures = new LinkedList<Feature>();
for (FeatureCollectionTable ft : featureTables) {
Iterator<Feature> features = ft.iterator();
while (features.hasNext()) {
allFeatures.add(features.next());
}
}
System.out.println(allFeatures.size() + " number of features");
}
@JaredFaulk we are continuing to look at this issue for you. Work on your support issue has not stopped.
Thanks Mark. I recieved an email last Friday saying support has closed my case for the Union issue. Though the memory seemed high with Union, support was not able to reproduce a crash with it. Since removing Union and still receiving OOM issues, there is something else going on. I will start a new case with Support, if you think that makes sense.
Yes do open a new case with support; they know the situation. In the meantime as I say, we're not ignoring this, its an ongoing investigation.
Will do. Glad it is being investigated. Thanks for the response Mark.