[Geotools-devel] [JIRA] (GEOT-5729) SchemaCache autoconfiguration fails for empty GeoServer data directory

2017-05-15 Thread Ben Caradoc-Davies [Administrator] (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ben Caradoc-Davies [Administrator] created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 GeoTools /  GEOT-5729  
 
 
  SchemaCache autoconfiguration fails for empty GeoServer data directory   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Affects Versions: 
 18-beta, 17.1, 16.4  
 
 
Assignee: 
 Ben Caradoc-Davies [Administrator]  
 
 
Components: 
 xml  
 
 
Created: 
 16/May/17 4:26 AM  
 
 
Priority: 
  Medium  
 
 
Reporter: 
 Ben Caradoc-Davies [Administrator]  
 

  
 
 
 
 

 
 SchemaCache.buildAutomaticallyConfiguredUsingFileUrl fails when used on an empty GeoServer data directory because the heuristic in isSuitableDirectoryToContainCache is too strict. Only the workspaces directory is present when GeoServer is started with an empty directory (except the workspaces directory required to define the app-schema data store). A warning should be logged if unable to build a cache and automaticConfigurationEnabled is true.  
 

  
 
 
  
 

 
 
 

 
 
 Add Comment  
 

  
  

[Geotools-devel] Reminder: GeoTools / GeoServer Meeting at 19:30 UTC on Tuesday

2017-05-15 Thread Ben Caradoc-Davies
GeoTools / GeoServer committee meeting on Skype at 19:30 UTC on Tuesday:
http://www.timeanddate.com/worldclock/fixedtime.html?msg=GeoTools+%2F+GeoServer+Meeting=2017=5=16=19=30=0=1

-- 
Ben Caradoc-Davies 
Director
Transient Software Limited 
New Zealand

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel


[Geotools-devel] [JIRA] (GEOT-5728) [WFS] Support sending "viewparams" parameter for non-stored queries

2017-05-15 Thread Damiano Albani (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Damiano Albani created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 GeoTools /  GEOT-5728  
 
 
  [WFS] Support sending "viewparams" parameter for non-stored queries   
 

  
 
 
 
 

 
Issue Type: 
  Improvement  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 wfs-ng  
 
 
Created: 
 15/May/17 4:27 PM  
 
 
Priority: 
  Medium  
 
 
Reporter: 
 Damiano Albani  
 

  
 
 
 
 

 
 The WFS-NG client currently supports the VIRTUAL_TABLE_PARAMETERS hint in combination with a stored query — and only with StrictWFS_2_0_Strategy AFAIK. It would be nice if this hint was honored for "standard" queries as well, giving the ability to add a "=..." query parameter for example. My understanding is that it could implemented in StrictWFS_2_0_Strategy#buildGetFeatureParametersForGET() roughly like: 

 
...
// Very crude
if (query.getMaxFeatures() != null) {
String count = kvp.remove("MAXFEATURES");
kvp.put("COUNT", count);
}

Map viewParams = null;
if (query.getHints() != null) {
viewParams = (Map)query.getHints()
.get(Hints.VIRTUAL_TABLE_PARAMETERS);
Map finalKvp = kvp;
viewParams.entrySet().stream().forEach(entry -> finalKvp.put(entry.getKey(), entry.getValue()));
}
...
 

 And then used as: 

 
Query query = new Query(...);
Map vparams = new HashMap();
vparams.put("viewparams", "param1:abc;param2:def");
Hints hints = new Hints(Hints.VIRTUAL_TABLE_PARAMETERS, vparams);