I had never heard of the GeoScript project, so I will check it out.  Thanks
for the tip.  I completely understand about not wanting to cause confusion
with too many languages.  The one argument I would put forward for Groovy
over the others that you mentioned is that there is very little "syntactic
impedance" between it and Java compared to Java and other languages like
Python and Scala.  You can be reading a unit test and not even realize it is
not Java until you see something like this:

void testParseComplexFilter() {
  List srsNames = ["EPSG:4326", "EPSG:4325", "EPSG:99999"]
  srsNames.each { srcName ->
        def xml = """
        
            
                
                
                    SHAPE
                    
                        -85.693359375 -41.585665809419
                        90.087890625 44.203116178454
                    
                
            
        
        """

        def results = FilterEncoder.parse(xml)
        assertTrue(results instanceof Filter)
        ...
  }
}

which shows simple List creation, an iterator closure, and formatted
multi-line strings with template replacement.  You have to admit, it looks a
lot nicer than a lot of String escaping,  concatenating and such.  But
that's just my little plug.  I'll be quiet now. 

Since I already have the main classes I listed converted to Java, I'll
create the Jira issue and attach them to it as Jody suggested.  I'll also
attach the primary unit test as it now stands, and I'll see about converting
it to Java when I get a spare moment.  The test is for the util functions
which exercise a good number of the vistors, so that will give decent
coverage both directly and indirectly.



--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Contribution-of-some-FilterVistors-and-other-utilities-tp6265810p6267342.html
Sent from the geotools-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to