[Geotools-devel] [JIRA] (GEOT-5704) Color literal encoding for CQL

2017-04-17 Thread Jody Garnett [Administrator] (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jody Garnett [Administrator] created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 GeoTools /  GEOT-5704  
 
 
  Color literal encoding for CQL   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Affects Versions: 
 17.0  
 
 
Assignee: 
 Jody Garnett [Administrator]  
 
 
Components: 
 cql  
 
 
Created: 
 18/Apr/17 6:46 AM  
 
 
Priority: 
  Medium  
 
 
Reporter: 
 Jody Garnett [Administrator]  
 

  
 
 
 
 

 
 CQL and ECQL can parse color values of the form "#FF" into a literal that can be used as a Color. However if you make a literal programatically using ff.literal( Color.RED ) it will not be coverted to a valid CQL representations. This causes problems for YSLD when encoding CQL expressions that list a Color.  
 

  
 
 
  
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 

[Geotools-devel] [JIRA] (GEOT-5703) A potential bug by a code smell

2017-04-17 Thread JC Nam (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 JC Nam created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 GeoTools /  GEOT-5703  
 
 
  A potential bug by a code smell   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 xml  
 
 
Created: 
 17/Apr/17 11:25 PM  
 
 
Priority: 
  Lowest  
 
 
Reporter: 
 JC Nam  
 

  
 
 
 
 

 
 Hi In a recent snapshot, there is a suspicious condition that may lead to a bug in modules/library/xml/src/main/java/org/geotools/xml/handlers/xsi/ElementTypeHandler.java 

 

292 if ((ref != null) || "".equalsIgnoreCase(ref)) {
293 if (!(((name == null) || "".equalsIgnoreCase(name))
294 && ((type == null) || "".equalsIgnoreCase(type {
295 throw new SAXException(
296 "Elements cannot have both a 'ref' and a 'name' + 'type' attribute");
297 }
298 
299 name = type = ref;
300 }
 

 In Line 292, when ref is null, the second condition will be always false. If ref will not be an empty string by a certain contract, this will not be an issue but just a code smell ("if (ref != null)" would be fine?). However, if Line 299 should not be executed when ref is an empty string, it should be (ref != null) && !"".equalsIgnoreCase(ref)? There would be other possible cases. This might be a trivial issue like minor code smell but wanted to report just in case. Thanks!  
 

  
 
 
  
 

 
 

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

2017-04-17 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=4=18=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] IDE settings

2017-04-17 Thread Nuno Oliveira
Hi,

I have created and uploaded a first version of settings to InteliJ:
https://osgeo-org.atlassian.net/browse/GEOT-5689

The settings include all existing eclipse settings.

I added a specific header template for GeoTools and increased the number 
of imports to 100 to force import with *.

Can anyone give it a try ? I made this with InteliJ community edition 
2016.2.2.

Can someone thing about anything else that can be added \ improved ? The 
only thing I can thing of is force static imports for JUnit and Hamcrest 
methods but not sure everyone agree with this.

Cheers,

Nuno Oliveira

-- 
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
==
Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:   +39 0584 1660272
mob:   +39  333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

---

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i 
file/s allegato/i sono
da considerarsi strettamente riservate. Il loro utilizzo è consentito 
esclusivamente al destinatario del messaggio, per le finalità indicate
nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il 
destinatario, Vi preghiamo cortesemente di darcene notizia via e
-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal 
Vostro sistema. Conservare il messaggio stesso, divulgarlo
anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per 
finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.
  
The information in this message and/or attachments, is intended solely for the 
attention and use of
the named addressee(s) and may be confidential or proprietary in nature or 
covered by the provisions of privacy act (Legislative Decree
June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord 
with its purpose, any disclosure, reproduction, copying,
distribution, or either dissemination, either whole or partial, is strictly 
forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact immediately 
the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender does 
not give any warranty or accept liability as the content,
accuracy or completeness of sent messages and accepts no responsibility  for 
changes made after they were sent or for other risks which
arise as a result of e-mail transmission, viruses, etc.


--
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-5702) NetCDF support two-dimensional variable

2017-04-17 Thread Niels Charlier (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Niels Charlier created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 GeoTools /  GEOT-5702  
 
 
  NetCDF support two-dimensional variable   
 

  
 
 
 
 

 
Issue Type: 
  Improvement  
 
 
Assignee: 
 Niels Charlier  
 
 
Components: 
 netcdf  
 
 
Created: 
 17/Apr/17 12:33 PM  
 
 
Priority: 
  Medium  
 
 
Reporter: 
 Niels Charlier  
 

  
 
 
 
 

 
 We would like to provide some support for 2D coordinate variables in NetCDF, in particular in aggregations. An example use case: NC files with different time values being aggregated over runtime. The idea is not to provide support for 2D coordinates in geotools, but to expose the 2D coordinate as a regular coordinate to geotools/geoserver. Some of the expected behaviour (using the example of a 2D time over runtime):  In the GetCapabilities, all possible time values are listed (no value is mentioned twice of course, so a unique flat list is composed from the 2D value table). The user may of course specify a valid combination of a time and a runtime in a WMS/WCS request to get the appropriate data. An invalid combination returns no data. NetCDF can be configured to retrieve the maximum or minimum runtime RELATIVE to a provided time in the request. This requires geoserver to configure the runtime dimension default value as "built-in". In addition, we want to support an auxiliary WFS store that exposes the index in order to list all possible time/runtime combinations, since this cannot be retrieved from the GetCapabilities.