Strabon

changeset 1475:18539fd83f33

Testing KML writer because it is not working as intended after version 3.2.9
author George Stamoulis <gstam@di.uoa.gr>
date Wed Feb 11 11:09:54 2015 +0200 (2015-02-11)
parents b38cf95e071d
children 958de01ce662
files resultio-spatial/sparqlkml/src/main/java/org/openrdf/query/resultio/sparqlkml/stSPARQLResultsKMLWriter.java
line diff
     1.1 --- a/resultio-spatial/sparqlkml/src/main/java/org/openrdf/query/resultio/sparqlkml/stSPARQLResultsKMLWriter.java	Tue Feb 10 12:43:49 2015 +0200
     1.2 +++ b/resultio-spatial/sparqlkml/src/main/java/org/openrdf/query/resultio/sparqlkml/stSPARQLResultsKMLWriter.java	Wed Feb 11 11:09:54 2015 +0200
     1.3 @@ -163,6 +163,8 @@
     1.4  		try {
     1.5  			// keep the order of binding names
     1.6  			this.bindingNames = bindingNames;
     1.7 +			System.out.println("ALL BINDING NAMES: " + this.bindingNames.toString());
     1.8 +			
     1.9  			xmlWriter.startDocument();
    1.10  			xmlWriter.setAttribute("xmlns", NAMESPACE);
    1.11  			xmlWriter.startTag(ROOT_TAG);
    1.12 @@ -219,13 +221,17 @@
    1.13  			
    1.14  			// parse binding set
    1.15  			for (String bindingName : bindingNames) {
    1.16 +				System.out.println("@@ Current binding name: " + bindingName);
    1.17  				
    1.18  				Binding binding = bindingSet.getBinding(bindingName);
    1.19 +				System.out.println("New Binding: " + binding.getName() + "\n value: " + binding.getValue().stringValue());
    1.20 +				
    1.21  				if(binding != null) {
    1.22  					Value value = binding.getValue();
    1.23  					
    1.24  					// check for geometry value
    1.25  					if (XMLGSDatatypeUtil.isGeometryValue(value)) {
    1.26 +						System.out.println("geometry FOUND");
    1.27  						hasGeometry=true;
    1.28  	
    1.29  						if (logger.isDebugEnabled()) {
    1.30 @@ -235,7 +241,7 @@
    1.31  						xmlWriter.unescapedText(getKML(value));
    1.32  						
    1.33  					} else { // URI, BlankNode, or Literal other than spatial literal
    1.34 -						
    1.35 +						System.out.println("URI, BlankNode, or Literal other than spatial literal FOUND");
    1.36  						if (logger.isDebugEnabled()) {
    1.37  							logger.debug("[Strabon.KMLWriter] Found URI/BlankNode/Literal ({}): {}", value.getClass(), value);
    1.38  						}