semanticwfs  Version 0.1.0.0
X3DFormatter Class Reference
Inheritance diagram for X3DFormatter:
Collaboration diagram for X3DFormatter:

Public Member Functions

 X3DFormatter ()
 
String formatter (ResultSet results, String startingElement, String featuretype, String propertytype, String typeColumn, Boolean onlyproperty, Boolean onlyhits, String srsName, String indvar, String epsg, List< String > eligiblenamespaces, List< String > noteligiblenamespaces, StyleObject mapstyle, Boolean alternativeFormat, Boolean invertXY, Boolean coverage, Writer out) throws XMLStreamException
 
String formatter (Model results, String startingElement, String featuretype, String propertytype, String typeColumn, Boolean onlyproperty, Boolean onlyhits, String srsName, String indvar, String epsg, List< String > eligiblenamespaces, List< String > noteligiblenamespaces, StyleObject mapstyle, Boolean alternativeFormat, Boolean invertXY, Boolean coverage, Writer out) throws XMLStreamException, IOException
 
Geometry parseVectorLiteral (String literalValue, String literalType, String epsg, String srsName)
 
String parseCoverageLiteral (String literalValue, String literalType, String epsg, String srsName)
 
Object parseLiteral (String literalValue, String literalType, String epsg, String srsName)
 

Static Public Member Functions

static Map< String, Tuple< Boolean, String > > extractObservableColumns (JSONObject geojson)
 
static JSONObject addCovJSONParameterAndRange (JSONObject covjson, String parameterName, String parameterURI, List< Object > values, String dataType)
 
static JSONObject generateCOVJSONForXY (String coverageType)
 
static JSONObject convertLiteralDataToCoverageJSON (String literalValue, String literalType)
 
static ResultFormatter getFormatter (String formatString)
 

Public Attributes

Integer lastQueriedElemCount =0
 
String mimeType ="text/plain"
 
String exposedType ="application/vnd.geojson"
 
String urlformat ="json"
 
String label ="JSON"
 
String definition =""
 
String fileextension ="json"
 
Boolean constructQuery =false
 
Map< String, String > contextMapper =new TreeMap<>()
 
ResultStyleFormatter styleformatter
 
WKTReader wktreader =new WKTReader()
 
WKBReader wkbreader =new WKBReader()
 
KMLReader kmlreader =new KMLReader()
 
GeoJSONReader geojsonreader =new GeoJSONReader()
 

Static Public Attributes

static Map< String, Map< String, Integer > > columnsval
 
static Map< String, ResultFormatterresultMap =new TreeMap<String, ResultFormatter>()
 
static Map< String, String > labelMap =new TreeMap<>()
 
static Set< String > vectorLiteralMap =new TreeSet<>()
 
static Set< String > coverageLiteralMap =new TreeSet<>()
 
static final Integer FLUSHTHRESHOLD =20
 
static final String[] mediatypes
 

Static Package Functions

static void addToMaps (String key, ResultFormatter format)
 
 [static initializer]
 

Constructor & Destructor Documentation

◆ X3DFormatter()

15  {
16  this.mimeType="text/x3d+xml";
17  this.exposedType="text/x3d+xml";
18  this.urlformat="x3d";
19  this.label="X3D";
20  this.fileextension="x3d";
21  this.definition="https://www.web3d.org/standards";
22  }
String mimeType
Definition: ResultFormatter.java:89
String definition
Definition: ResultFormatter.java:97
String fileextension
Definition: ResultFormatter.java:99
String exposedType
Definition: ResultFormatter.java:91
String urlformat
Definition: ResultFormatter.java:93
String label
Definition: ResultFormatter.java:95

References ResultFormatter.definition, ResultFormatter.exposedType, ResultFormatter.fileextension, ResultFormatter.label, ResultFormatter.mimeType, and ResultFormatter.urlformat.

Member Function Documentation

◆ [static initializer]()

[static initializer]
staticpackageinherited

◆ addCovJSONParameterAndRange()

static JSONObject addCovJSONParameterAndRange ( JSONObject  covjson,
String  parameterName,
String  parameterURI,
List< Object >  values,
String  dataType 
)
staticinherited
70  {
71  covjson.getJSONObject("parameters").put(parameterName, new JSONObject());
72  JSONObject param = covjson.getJSONObject("parameters").getJSONObject(parameterName);
73  param.put("type", "Parameter");
74  param.put("description", new JSONObject());
75  param.getJSONObject("description").put("en", parameterName);
76  param.put("observedProperty", new JSONObject());
77  param.getJSONObject("observedProperty").put("id", parameterURI);
78  param.getJSONObject("observedProperty").put("label", new JSONObject());
79  param.getJSONObject("observedProperty").getJSONObject("label").put("en", parameterName);
80  JSONObject range = new JSONObject();
81  covjson.getJSONObject("ranges").put(parameterName, range);
82  range.put("type", "NdArray");
83  range.put("axisNames", new JSONArray());
84  range.getJSONArray("axisNames").put("x");
85  range.getJSONArray("axisNames").put("y");
86  range.put("dataType", dataType);
87  range.put("values", new JSONArray(values));
88  return covjson;
89  }

Referenced by CoverageResultFormatter.convertLiteralDataToCoverageJSON().

◆ addToMaps()

static void addToMaps ( String  key,
ResultFormatter  format 
)
staticpackageinherited
288  {
289  resultMap.put(key, format);
290  labelMap.put(key,format.label);
291  resultMap.put(format.mimeType, format);
292  }
static Map< String, String > labelMap
Definition: ResultFormatter.java:115
static Map< String, ResultFormatter > resultMap
Definition: ResultFormatter.java:85

References ResultFormatter.label, ResultFormatter.labelMap, ResultFormatter.mimeType, and ResultFormatter.resultMap.

◆ convertLiteralDataToCoverageJSON()

static JSONObject convertLiteralDataToCoverageJSON ( String  literalValue,
String  literalType 
)
staticinherited
120  {
121  JSONObject result = new JSONObject();
122  JSONArray xarray, yarray, zarray;
123  String param;
124  String nodata = "";
125  Double cellsize = 1., xllcorner = 1., yllcorner = 1.;
126  Integer nxcols = null, nycols = null;
127  switch (literalType) {
128  case "http://www.opengis.net/ont/geosparql#xyzLiteral":
129  result = generateCOVJSONForXY("Grid");
130  param = "altitude";
131  result = addCovJSONParameterAndRange(result, param, "http://www.opengis.net/ont/geosparql#altitude",
132  new LinkedList<>(), "float");
133  xarray = result.getJSONObject("domain").getJSONObject("axes").getJSONObject("x").getJSONArray("values");
134  yarray = result.getJSONObject("domain").getJSONObject("axes").getJSONObject("y").getJSONArray("values");
135  zarray = result.getJSONObject("ranges").getJSONObject(param).getJSONArray("values");
136  for (String line : literalValue.split(System.lineSeparator())) {
137  String[] coord = line.split(" ");
138  xarray.put(Double.valueOf(coord[0]));
139  yarray.put(Double.valueOf(coord[1]));
140  zarray.put(Double.valueOf(coord[2]));
141  }
142  break;
143  case "http://www.opengis.net/ont/geosparql#gxfLiteral":
144  result = generateCOVJSONForXY("Grid");
145  param = "altitude";
146  result = addCovJSONParameterAndRange(result, param, "http://www.opengis.net/ont/geosparql#altitude",
147  new LinkedList<>(), "float");
148  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("x").remove("values");
149  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("y").remove("values");
150  zarray = result.getJSONObject("ranges").getJSONObject(param).getJSONArray("values");
151  for (String line : literalValue.split(System.lineSeparator())) {
152  if (line.startsWith("ncols")) {
153 
154  }
155  }
156 
157  break;
158  case "http://www.opengis.net/ont/geosparql#ascLiteral":
159  result = generateCOVJSONForXY("Grid");
160  param = "altitude";
161  result = addCovJSONParameterAndRange(result, param, "http://www.opengis.net/ont/geosparql#altitude",
162  new LinkedList<>(), "float");
163  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("x").remove("values");
164  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("y").remove("values");
165  zarray = result.getJSONObject("ranges").getJSONObject(param).getJSONArray("values");
166  for (String line : literalValue.split(System.lineSeparator())) {
167  if (line.startsWith("ncols")) {
168  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("x").put("num",
169  Integer.valueOf(line.replace("ncols", "").trim()));
170  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("y").put("num",
171  Integer.valueOf(line.replace("ncols", "").trim()));
172  nxcols = Integer.valueOf(line.replace("ncols", "").trim());
173  } else if (line.startsWith("xllcorner")) {
174  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("x").put("start",
175  Double.valueOf(line.replace("xllcorner", "").trim()));
176  xllcorner = Double.valueOf(line.replace("xllcorner", "").trim());
177  } else if (line.startsWith("yllcorner")) {
178  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("y").put("start",
179  Double.valueOf(line.replace("yllcorner", "").trim()));
180  yllcorner = Double.valueOf(line.replace("yllcorner", "").trim());
181  } else if (line.startsWith("cellsize")) {
182  cellsize = Double.valueOf(line.replace("cellsize", "").trim());
183  } else if (line.startsWith("nrows")) {
184  nycols = Integer.valueOf(line.replace("nrows", "").trim());
185  continue;
186  } else if (line.startsWith("NODATA_value")) {
187  nodata = line.replace("NODATA_value", "").trim();
188  } else {
189  if (nxcols != null
190  && result.getJSONObject("domain").getJSONObject("axes").getJSONObject("x").has("start"))
191  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("x").put("stop",
192  xllcorner + (cellsize * nxcols));
193  if (nycols != null
194  && result.getJSONObject("domain").getJSONObject("axes").getJSONObject("y").has("start"))
195  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("y").put("stop",
196  yllcorner + (cellsize * nycols));
197  for (String val : line.split(" ")) {
198  if (val.equals(nodata)) {
199  zarray.put(JSONObject.NULL);
200  } else if(!val.trim().isEmpty()) {
201  zarray.put(Double.valueOf(val));
202  }
203  }
204  }
205  }
206 
207  break;
208  }
209  return result;
210  }
static JSONObject addCovJSONParameterAndRange(JSONObject covjson, String parameterName, String parameterURI, List< Object > values, String dataType)
Definition: CoverageResultFormatter.java:69
static JSONObject generateCOVJSONForXY(String coverageType)
Definition: CoverageResultFormatter.java:91

References CoverageResultFormatter.addCovJSONParameterAndRange(), and CoverageResultFormatter.generateCOVJSONForXY().

Referenced by CovJSONFormatter.formatter().

◆ extractObservableColumns()

static Map<String, Tuple<Boolean, String> > extractObservableColumns ( JSONObject  geojson)
staticinherited
22  {
23  CoverageJsonConverterImpl impl;
24 
25  Map<String, Tuple<Boolean, String>> columns = new TreeMap<String, Tuple<Boolean, String>>();
26  columnsval = new TreeMap<String, Map<String, Integer>>();
27  JSONArray features = geojson.getJSONArray("features");
28  for (int i = 0; i < features.length(); i++) {
29  JSONObject feature = geojson.getJSONArray("features").getJSONObject(i);
30  for (String key : feature.getJSONObject("properties").keySet()) {
31  if (!columns.containsKey(key)) {
32  try {
33  Number valuenum = feature.getNumber(key);
34  columns.put(key, new Tuple<>(true, "float"));
35  } catch (Exception e) {
36  try {
37  boolean valuebool = feature.getBoolean(key);
38  columns.put(key, new Tuple<>(true, "bool"));
39  } catch (Exception ex) {
40  if (!columnsval.containsKey(key)) {
41  columnsval.put(key, new TreeMap<>());
42  }
43  if (!columnsval.get(key)
44  .containsKey(feature.getJSONObject("properties").get(key).toString())) {
45  columnsval.get(key).put(feature.getJSONObject("properties").get(key).toString(), 0);
46  }
47  columnsval.get(key).put(key, columnsval.get(key).put(
48  feature.getJSONObject("properties").get(key).toString(),
49  columnsval.get(key).get(feature.getJSONObject("properties").get(key).toString())
50  + 1));
51 
52  }
53  }
54  }
55  }
56  }
57  for (String key : geojson.getJSONArray("features").getJSONObject(0).getJSONObject("properties").keySet()) {
58  if (!columns.containsKey(key)) {
59  if (columnsval.get(key).size() == geojson.getJSONArray("features").length()) {
60  columns.put(key, new Tuple<>(false, null));
61  } else {
62  columns.put(key, new Tuple<>(true, "string"));
63  }
64  }
65  }
66  return columns;
67  }
static Map< String, Map< String, Integer > > columnsval
Definition: CoverageResultFormatter.java:20

References CoverageResultFormatter.columnsval.

Referenced by CovJSONFormatter.formatter().

◆ formatter() [1/2]

String formatter ( Model  results,
String  startingElement,
String  featuretype,
String  propertytype,
String  typeColumn,
Boolean  onlyproperty,
Boolean  onlyhits,
String  srsName,
String  indvar,
String  epsg,
List< String >  eligiblenamespaces,
List< String >  noteligiblenamespaces,
StyleObject  mapstyle,
Boolean  alternativeFormat,
Boolean  invertXY,
Boolean  coverage,
Writer  out 
) throws XMLStreamException, IOException
inherited

◆ formatter() [2/2]

String formatter ( ResultSet  results,
String  startingElement,
String  featuretype,
String  propertytype,
String  typeColumn,
Boolean  onlyproperty,
Boolean  onlyhits,
String  srsName,
String  indvar,
String  epsg,
List< String >  eligiblenamespaces,
List< String >  noteligiblenamespaces,
StyleObject  mapstyle,
Boolean  alternativeFormat,
Boolean  invertXY,
Boolean  coverage,
Writer  out 
) throws XMLStreamException

Reimplemented from ResultFormatter.

28  {
29  return null;
30  /*
31  try {
32  Geometry geom = geometry.getXYGeometry();
33  StringBuilder builder=new StringBuilder();
34  builder.append("<IndexedFaceSet coordIndex=\"");
35  Integer index=0;
36  for(Coordinate coord:geom.getCoordinates()) {
37  builder.append(index.toString());
38  index++;
39  }
40  builder.append("</IndexedFaceSet>");
41  builder.append("<Coordinate point=\"");
42  for(Coordinate coord:geom.getCoordinates()) {
43  builder.append(coord.getX()+" "+coord.getY()+" "+coord.getZ()+" ");
44  }
45  builder.append("\"/>");
46  BigInteger maximaldecimaldigits=v2.getInteger();
47  BigInteger options=v3.getInteger();
48  return NodeValue.makeString(header+builder.toString()+footer);
49  } catch (DatatypeFormatException ex) {
50  throw new ExprEvalException(ex.getMessage(), ex);
51  }*/
52  }

◆ generateCOVJSONForXY()

static JSONObject generateCOVJSONForXY ( String  coverageType)
staticinherited
91  {
92  JSONObject result = new JSONObject();
93  result.put("type", "Coverage");
94  JSONObject domain = new JSONObject();
95  result.put("domain", domain);
96  domain.put("type", "Domain");
97  domain.put("domainType", coverageType);
98  JSONObject axes = new JSONObject();
99  domain.put("axes", axes);
100  axes.put("x", new JSONObject());
101  axes.getJSONObject("x").put("values", new JSONArray());
102  axes.put("y", new JSONObject());
103  axes.getJSONObject("y").put("values", new JSONArray());
104  JSONArray referencing = new JSONArray();
105  domain.put("referencing", referencing);
106  JSONObject ref = new JSONObject();
107  referencing.put(ref);
108  JSONArray coordinates = new JSONArray();
109  ref.put("coordinates", coordinates);
110  coordinates.put("x");
111  coordinates.put("y");
112  ref.put("system", new JSONObject());
113  ref.getJSONObject("system").put("type", "GeographicCRS");
114  ref.getJSONObject("system").put("id", "http://www.opengis.net/def/crs/EPSG/0/4326");
115  result.put("parameters", new JSONObject());
116  result.put("ranges", new JSONObject());
117  return result;
118  }

Referenced by CoverageResultFormatter.convertLiteralDataToCoverageJSON().

◆ getFormatter()

static ResultFormatter getFormatter ( String  formatString)
staticinherited
130  {
131  formatString=formatString.toLowerCase();
132  if(resultMap.containsKey(formatString)) {
133  return resultMap.get(formatString);
134  }
135  if(formatString.contains("geojsonseq")) {
136  return resultMap.get("geojsonseq");
137  }
138  if(formatString.equals("application/vnd.geo+json+ld") || formatString.contains("geojsonld") || formatString.contains("geo+json+ld")) {
139  return resultMap.get("geojsonld");
140  }
141  if(formatString.equals("application/geojson") || formatString.contains("geojson") || formatString.contains("geo+json")) {
142  return resultMap.get("geojson");
143  }
144  if(formatString.contains("gml")) {
145  return resultMap.get("gml");
146  }
147  if(formatString.contains("html")) {
148  return resultMap.get("html");
149  }
150  if(formatString.contains("csv")) {
151  return resultMap.get("csv");
152  }
153  if(formatString.contains("ldapi")) {
154  return resultMap.get("ldapi");
155  }
156  if(formatString.contains("gpx")) {
157  return resultMap.get("gpx");
158  }
159  if(formatString.contains("svg")) {
160  return resultMap.get("svg");
161  }
162  if(formatString.contains("cypher")) {
163  return resultMap.get("cypher");
164  }
165  if(formatString.contains("osmlink")) {
166  return resultMap.get("osmlink");
167  }
168  if(formatString.contains("osm")) {
169  return resultMap.get("osm");
170  }
171  if(formatString.contains("ttl")) {
172  return resultMap.get("ttl");
173  }
174  if(formatString.contains("rdfjson")) {
175  return resultMap.get("rdfjson");
176  }
177  if(formatString.contains("rdf")) {
178  return resultMap.get("rdf");
179  }
180  if(formatString.contains("n3")) {
181  return resultMap.get("n3");
182  }
183  if(formatString.contains("jsonp")) {
184  return resultMap.get("jsonp");
185  }
186  if(formatString.contains("jsonn")) {
187  return resultMap.get("jsonn");
188  }
189  if(formatString.contains("nt")) {
190  return resultMap.get("nt");
191  }
192  if(formatString.contains("olc")) {
193  return resultMap.get("olc");
194  }
195  if(formatString.contains("rt")) {
196  return resultMap.get("rt");
197  }
198  if(formatString.contains("nq")) {
199  return resultMap.get("nq");
200  }
201  if(formatString.contains("trig")) {
202  return resultMap.get("trig");
203  }
204  if(formatString.contains("trix")) {
205  return resultMap.get("trix");
206  }
207  if(formatString.contains("geohash")) {
208  return resultMap.get("geohash");
209  }
210  if(formatString.contains("topojson")) {
211  return resultMap.get("topojson");
212  }
213  if(formatString.contains("covjson")) {
214  return resultMap.get("covjson");
215  }
216  if(formatString.contains("jsonseq")) {
217  return resultMap.get("jsonseq");
218  }
219  if(formatString.contains("jsonld")) {
220  return resultMap.get("jsonld");
221  }
222  if(formatString.contains("json")) {
223  return resultMap.get("geojson");
224  }
225  if(formatString.contains("kml")) {
226  return resultMap.get("kml");
227  }
228  if(formatString.contains("hdt")) {
229  return resultMap.get("hdt");
230  }
231  if(formatString.contains("ewkt")) {
232  return resultMap.get("ewkt");
233  }
234  if(formatString.contains("wkt")) {
235  return resultMap.get("wkt");
236  }
237  if(formatString.contains("mvt")) {
238  return resultMap.get("mvt");
239  }
240  if(formatString.contains("latlon")) {
241  return resultMap.get("latlon");
242  }
243  if(formatString.contains("wkb")) {
244  return resultMap.get("wkb");
245  }
246  if(formatString.contains("geouri")) {
247  return resultMap.get("geouri");
248  }
249  if(formatString.contains("mapml")) {
250  return resultMap.get("mapml");
251  }
252  if(formatString.contains("geohash")) {
253  return resultMap.get("geohash");
254  }
255  if(formatString.contains("geotiff")) {
256  return resultMap.get("geotiff");
257  }
258  if(formatString.contains("xlsx")) {
259  return resultMap.get("xlsx");
260  }
261  if(formatString.contains("xls")) {
262  return resultMap.get("xls");
263  }
264  if(formatString.contains("xyz")) {
265  return resultMap.get("xyz");
266  }
267  if(formatString.contains("gxl")) {
268  return resultMap.get("gxl");
269  }
270  if(formatString.contains("gexf")) {
271  return resultMap.get("gexf");
272  }
273  if(formatString.contains("covjson")) {
274  return resultMap.get("covjson");
275  }
276  if(formatString.contains("tgf")) {
277  return resultMap.get("tgf");
278  }
279  if(formatString.contains("polyshape")) {
280  return resultMap.get("polyshape");
281  }
282  if(formatString.contains("hextuples")) {
283  return resultMap.get("hextuples");
284  }
285  return resultMap.get("html");
286  }

References ResultFormatter.resultMap.

Referenced by WebService.collectionInformation(), WebService.collectionItems(), WebService.collections(), WebService.docCollectionItemJSON(), WebService.docCollectionJSON(), TripleStoreConnector.executeLDAPIQuery(), TripleStoreConnector.executePropertyValueQuery(), TripleStoreConnector.executeQuery(), and WebService.queryables().

◆ parseCoverageLiteral()

String parseCoverageLiteral ( String  literalValue,
String  literalType,
String  epsg,
String  srsName 
)
inherited

Reimplemented in VectorResultFormatter.

413  {
414  if(literalType.contains("wkb")) {
415 
416  }else if(literalType.contains("covjson")) {
417 
418  }else if(literalType.contains("xyz")) {
419  return literalValue;
420  }
421  return null;
422  }

Referenced by CovJSONFormatter.formatter(), and ResultFormatter.parseLiteral().

◆ parseLiteral()

Object parseLiteral ( String  literalValue,
String  literalType,
String  epsg,
String  srsName 
)
inherited
424  {
425  Geometry geom=parseVectorLiteral(literalValue, literalType, epsg, srsName);
426  if(geom!=null) {
427  return geom;
428  }
429  String cov=parseCoverageLiteral(literalValue, literalType, epsg, srsName);
430  if(cov!=null) {
431  return cov;
432  }
433  return null;
434  }
Geometry parseVectorLiteral(String literalValue, String literalType, String epsg, String srsName)
Definition: ResultFormatter.java:368
String parseCoverageLiteral(String literalValue, String literalType, String epsg, String srsName)
Definition: ResultFormatter.java:413

References ResultFormatter.parseCoverageLiteral(), and ResultFormatter.parseVectorLiteral().

Referenced by RasterWKBFormatter.formatter(), XYZASCIIFormatter.formatter(), HexTuplesFormatter.formatter(), and TTLFormatter.formatter().

◆ parseVectorLiteral()

Geometry parseVectorLiteral ( String  literalValue,
String  literalType,
String  epsg,
String  srsName 
)
inherited
368  {
369  Geometry geom=null;
370  if(literalType.toLowerCase().contains("wkt")) {
371  if(literalValue.trim().startsWith("<http")) {
372  try {
373  geom=this.wktreader.read(literalValue.substring(literalValue.lastIndexOf(">")+1));
374  epsg=literalValue.substring(literalValue.indexOf("<")+1,literalValue.lastIndexOf(">"));
375  Integer srid=Integer.valueOf(epsg.substring(epsg.lastIndexOf("/")+1));
376  geom.setSRID(srid);
377  epsg="EPSG:"+srid;
378  } catch (ParseException e) {
379  return null;
380  }
381  }else {
382  try {
383  geom=this.wktreader.read(literalValue);
384  } catch (ParseException e) {
385  return null;
386  }
387  }
388  }
389  else if(literalType.toLowerCase().contains("geojson")) {
390  geom=this.geojsonreader.read(literalValue);
391  }
392  else if(literalType.toLowerCase().contains("kml")) {
393  try {
394  geom=this.kmlreader.read(literalValue);
395  } catch (ParseException e) {
396  // TODO Auto-generated catch block
397  e.printStackTrace();
398  }
399  }
400  else if(literalType.toLowerCase().contains("wkb")) {
401  try {
402  geom=this.wkbreader.read(WKBReader.hexToBytes(literalValue));
403  } catch (ParseException e) {
404  return null;
405  }
406  }
407  if(geom!=null) {
408  geom=ReprojectionUtils.reproject(geom, epsg,srsName);
409  return geom;
410  }
411  return null;
412  }
WKBReader wkbreader
Definition: ResultFormatter.java:109
KMLReader kmlreader
Definition: ResultFormatter.java:111
GeoJSONReader geojsonreader
Definition: ResultFormatter.java:113
WKTReader wktreader
Definition: ResultFormatter.java:107

References ReprojectionUtils.reproject().

Referenced by GeoJSONFormatter.formatJSONObject(), GeoJSONFormatter.formatJSONStreaming(), RasterWKBFormatter.formatter(), XYZASCIIFormatter.formatter(), HexTuplesFormatter.formatter(), TTLFormatter.formatter(), CSVFormatter.formatter(), EWKTFormatter.formatter(), GeoURIFormatter.formatter(), HexWKBFormatter.formatter(), LatLonTextFormatter.formatter(), ODSFormatter.formatter(), OpenLocationCodeFormatter.formatter(), OSMLinkFormatter.formatter(), PostgreSQLFormatter.formatter(), TWKBFormatter.formatter(), WKBFormatter.formatter(), WKTFormatter.formatter(), XLSFormatter.formatter(), XLSXFormatter.formatter(), and ResultFormatter.parseLiteral().

Member Data Documentation

◆ columnsval

Map<String, Map<String, Integer> > columnsval
staticinherited

◆ constructQuery

◆ contextMapper

◆ coverageLiteralMap

Set<String> coverageLiteralMap =new TreeSet<>()
staticinherited

◆ definition

String definition =""
inherited

Referenced by ASCIIGridFormatter.ASCIIGridFormatter(), BSONFormatter.BSONFormatter(), WebService.collectionInformation(), CovJSONFormatter.CovJSONFormatter(), CSVFormatter.CSVFormatter(), CypherFormatter.CypherFormatter(), EWKTFormatter.EWKTFormatter(), GDFFormatter.GDFFormatter(), GeoHashFormatter.GeoHashFormatter(), GeoJSONFormatter.GeoJSONFormatter(), GeoJSONLDFormatter.GeoJSONLDFormatter(), GeoJSONSeqFormatter.GeoJSONSeqFormatter(), GeoRSSFormatter.GeoRSSFormatter(), GeoTIFFFormatter.GeoTIFFFormatter(), GeoURIFormatter.GeoURIFormatter(), GEXFFormatter.GEXFFormatter(), GMLFormatter.GMLFormatter(), GPXFormatter.GPXFormatter(), GraphMLFormatter.GraphMLFormatter(), GXLFormatter.GXLFormatter(), HDTFormatter.HDTFormatter(), HexTuplesFormatter.HexTuplesFormatter(), HexWKBFormatter.HexWKBFormatter(), HTMLFormatter.HTMLFormatter(), JSONLDFormatter.JSONLDFormatter(), JSONPFormatter.JSONPFormatter(), JSONSeqFormatter.JSONSeqFormatter(), KMLFormatter.KMLFormatter(), LDAPIJSONFormatter.LDAPIJSONFormatter(), MapMLFormatter.MapMLFormatter(), MVTFormatter.MVTFormatter(), N3Formatter.N3Formatter(), NQuadsFormatter.NQuadsFormatter(), NTFormatter.NTFormatter(), ODSFormatter.ODSFormatter(), OpenLocationCodeFormatter.OpenLocationCodeFormatter(), OSMFormatter.OSMFormatter(), PostgreSQLFormatter.PostgreSQLFormatter(), RDFEXIFormatter.RDFEXIFormatter(), RDFFormatter.RDFFormatter(), RDFJSONFormatter.RDFJSONFormatter(), RDFThriftFormatter.RDFThriftFormatter(), SVGFormatter.SVGFormatter(), TGFFormatter.TGFFormatter(), TLPFormatter.TLPFormatter(), TopoJSONFormatter.TopoJSONFormatter(), TrigFormatter.TrigFormatter(), TrixFormatter.TrixFormatter(), TTLFormatter.TTLFormatter(), TWKBFormatter.TWKBFormatter(), WKBFormatter.WKBFormatter(), WKTFormatter.WKTFormatter(), X3DFormatter.X3DFormatter(), XLSFormatter.XLSFormatter(), XLSXFormatter.XLSXFormatter(), XYZASCIIFormatter.XYZASCIIFormatter(), and YAMLFormatter.YAMLFormatter().

◆ exposedType

String exposedType ="application/vnd.geojson"
inherited

Referenced by ASCIIGridFormatter.ASCIIGridFormatter(), BSONFormatter.BSONFormatter(), CovJSONFormatter.CovJSONFormatter(), CSVFormatter.CSVFormatter(), CypherFormatter.CypherFormatter(), EWKTFormatter.EWKTFormatter(), GDFFormatter.GDFFormatter(), GeoHashFormatter.GeoHashFormatter(), GeoJSONFormatter.GeoJSONFormatter(), GeoJSONLDFormatter.GeoJSONLDFormatter(), GeoJSONSeqFormatter.GeoJSONSeqFormatter(), GeoRSSFormatter.GeoRSSFormatter(), GeoTIFFFormatter.GeoTIFFFormatter(), GeoURIFormatter.GeoURIFormatter(), GEXFFormatter.GEXFFormatter(), GMLCOVFormatter.GMLCOVFormatter(), GMLFormatter.GMLFormatter(), GPXFormatter.GPXFormatter(), GraphMLFormatter.GraphMLFormatter(), GXFFormatter.GXFFormatter(), GXLFormatter.GXLFormatter(), HDTFormatter.HDTFormatter(), HexRasterWKBFormatter.HexRasterWKBFormatter(), HexTuplesFormatter.HexTuplesFormatter(), HexWKBFormatter.HexWKBFormatter(), HTMLFormatter.HTMLFormatter(), JSONFormatter.JSONFormatter(), JSONLDFormatter.JSONLDFormatter(), JSONPFormatter.JSONPFormatter(), JSONSeqFormatter.JSONSeqFormatter(), KMLFormatter.KMLFormatter(), LatLonTextFormatter.LatLonTextFormatter(), LDAPIJSONFormatter.LDAPIJSONFormatter(), MapMLFormatter.MapMLFormatter(), MVTFormatter.MVTFormatter(), N3Formatter.N3Formatter(), NQuadsFormatter.NQuadsFormatter(), NTFormatter.NTFormatter(), ODSFormatter.ODSFormatter(), OpenLocationCodeFormatter.OpenLocationCodeFormatter(), OSMFormatter.OSMFormatter(), OSMLinkFormatter.OSMLinkFormatter(), PolyshapeFormatter.PolyshapeFormatter(), PostgreSQLFormatter.PostgreSQLFormatter(), RasterWKBFormatter.RasterWKBFormatter(), RDFEXIFormatter.RDFEXIFormatter(), RDFFormatter.RDFFormatter(), RDFJSONFormatter.RDFJSONFormatter(), RDFThriftFormatter.RDFThriftFormatter(), SVGFormatter.SVGFormatter(), TGFFormatter.TGFFormatter(), TLPFormatter.TLPFormatter(), TopoJSONFormatter.TopoJSONFormatter(), TrigFormatter.TrigFormatter(), TrixFormatter.TrixFormatter(), TTLFormatter.TTLFormatter(), TWKBFormatter.TWKBFormatter(), WKBFormatter.WKBFormatter(), WKTFormatter.WKTFormatter(), X3DFormatter.X3DFormatter(), XLSFormatter.XLSFormatter(), XLSXFormatter.XLSXFormatter(), XYZASCIIFormatter.XYZASCIIFormatter(), and YAMLFormatter.YAMLFormatter().

◆ fileextension

String fileextension ="json"
inherited

Referenced by ASCIIGridFormatter.ASCIIGridFormatter(), BSONFormatter.BSONFormatter(), WebService.collectionItems(), CovJSONFormatter.CovJSONFormatter(), CSVFormatter.CSVFormatter(), CypherFormatter.CypherFormatter(), WebService.docCollectionItemJSON(), WebService.docCollectionJSON(), EWKTFormatter.EWKTFormatter(), GDFFormatter.GDFFormatter(), GeoHashFormatter.GeoHashFormatter(), GeoJSONFormatter.GeoJSONFormatter(), GeoJSONLDFormatter.GeoJSONLDFormatter(), GeoJSONSeqFormatter.GeoJSONSeqFormatter(), GeoRSSFormatter.GeoRSSFormatter(), GeoTIFFFormatter.GeoTIFFFormatter(), GeoURIFormatter.GeoURIFormatter(), GEXFFormatter.GEXFFormatter(), GMLCOVFormatter.GMLCOVFormatter(), GMLFormatter.GMLFormatter(), GPXFormatter.GPXFormatter(), GraphMLFormatter.GraphMLFormatter(), GXFFormatter.GXFFormatter(), GXLFormatter.GXLFormatter(), HDTFormatter.HDTFormatter(), HexRasterWKBFormatter.HexRasterWKBFormatter(), HexTuplesFormatter.HexTuplesFormatter(), HexWKBFormatter.HexWKBFormatter(), HTMLFormatter.HTMLFormatter(), JSONFormatter.JSONFormatter(), JSONLDFormatter.JSONLDFormatter(), JSONPFormatter.JSONPFormatter(), JSONSeqFormatter.JSONSeqFormatter(), KMLFormatter.KMLFormatter(), LatLonTextFormatter.LatLonTextFormatter(), LDAPIJSONFormatter.LDAPIJSONFormatter(), MapMLFormatter.MapMLFormatter(), MVTFormatter.MVTFormatter(), N3Formatter.N3Formatter(), NQuadsFormatter.NQuadsFormatter(), NTFormatter.NTFormatter(), ODSFormatter.ODSFormatter(), OpenLocationCodeFormatter.OpenLocationCodeFormatter(), OSMFormatter.OSMFormatter(), OSMLinkFormatter.OSMLinkFormatter(), PolyshapeFormatter.PolyshapeFormatter(), PostgreSQLFormatter.PostgreSQLFormatter(), RasterWKBFormatter.RasterWKBFormatter(), RDFEXIFormatter.RDFEXIFormatter(), RDFFormatter.RDFFormatter(), RDFJSONFormatter.RDFJSONFormatter(), RDFThriftFormatter.RDFThriftFormatter(), SVGFormatter.SVGFormatter(), TGFFormatter.TGFFormatter(), TLPFormatter.TLPFormatter(), TopoJSONFormatter.TopoJSONFormatter(), TrigFormatter.TrigFormatter(), TrixFormatter.TrixFormatter(), TTLFormatter.TTLFormatter(), TWKBFormatter.TWKBFormatter(), WKBFormatter.WKBFormatter(), WKTFormatter.WKTFormatter(), X3DFormatter.X3DFormatter(), XLSFormatter.XLSFormatter(), XLSXFormatter.XLSXFormatter(), XYZASCIIFormatter.XYZASCIIFormatter(), and YAMLFormatter.YAMLFormatter().

◆ FLUSHTHRESHOLD

◆ geojsonreader

GeoJSONReader geojsonreader =new GeoJSONReader()
inherited

◆ kmlreader

KMLReader kmlreader =new KMLReader()
inherited

◆ label

String label ="JSON"
inherited

Referenced by ResultFormatter.addToMaps(), ASCIIGridFormatter.ASCIIGridFormatter(), BSONFormatter.BSONFormatter(), HTMLFormatter.collectColumns(), CovJSONFormatter.CovJSONFormatter(), CSVFormatter.CSVFormatter(), CypherFormatter.CypherFormatter(), EWKTFormatter.EWKTFormatter(), GDFFormatter.GDFFormatter(), GeoHashFormatter.GeoHashFormatter(), GeoJSONFormatter.GeoJSONFormatter(), GeoJSONLDFormatter.GeoJSONLDFormatter(), GeoJSONSeqFormatter.GeoJSONSeqFormatter(), GeoRSSFormatter.GeoRSSFormatter(), GeoTIFFFormatter.GeoTIFFFormatter(), GeoURIFormatter.GeoURIFormatter(), GEXFFormatter.GEXFFormatter(), GMLCOVFormatter.GMLCOVFormatter(), GMLFormatter.GMLFormatter(), GPXFormatter.GPXFormatter(), GraphMLFormatter.GraphMLFormatter(), GXFFormatter.GXFFormatter(), GXLFormatter.GXLFormatter(), HDTFormatter.HDTFormatter(), HexRasterWKBFormatter.HexRasterWKBFormatter(), HexTuplesFormatter.HexTuplesFormatter(), HexWKBFormatter.HexWKBFormatter(), HTMLFormatter.HTMLFormatter(), JSONFormatter.JSONFormatter(), JSONLDFormatter.JSONLDFormatter(), JSONPFormatter.JSONPFormatter(), JSONSeqFormatter.JSONSeqFormatter(), KMLFormatter.KMLFormatter(), LatLonTextFormatter.LatLonTextFormatter(), LDAPIJSONFormatter.LDAPIJSONFormatter(), MapMLFormatter.MapMLFormatter(), MVTFormatter.MVTFormatter(), N3Formatter.N3Formatter(), NQuadsFormatter.NQuadsFormatter(), NTFormatter.NTFormatter(), ODSFormatter.ODSFormatter(), OpenLocationCodeFormatter.OpenLocationCodeFormatter(), OSMFormatter.OSMFormatter(), OSMLinkFormatter.OSMLinkFormatter(), PolyshapeFormatter.PolyshapeFormatter(), PostgreSQLFormatter.PostgreSQLFormatter(), RasterWKBFormatter.RasterWKBFormatter(), RDFEXIFormatter.RDFEXIFormatter(), RDFFormatter.RDFFormatter(), RDFJSONFormatter.RDFJSONFormatter(), RDFThriftFormatter.RDFThriftFormatter(), SVGFormatter.SVGFormatter(), TGFFormatter.TGFFormatter(), TLPFormatter.TLPFormatter(), TopoJSONFormatter.TopoJSONFormatter(), TrigFormatter.TrigFormatter(), TrixFormatter.TrixFormatter(), TTLFormatter.TTLFormatter(), TWKBFormatter.TWKBFormatter(), WKBFormatter.WKBFormatter(), WKTFormatter.WKTFormatter(), X3DFormatter.X3DFormatter(), XLSFormatter.XLSFormatter(), XLSXFormatter.XLSXFormatter(), XYZASCIIFormatter.XYZASCIIFormatter(), and YAMLFormatter.YAMLFormatter().

◆ labelMap

Map<String,String> labelMap =new TreeMap<>()
staticinherited

◆ lastQueriedElemCount

Integer lastQueriedElemCount =0
inherited

Referenced by TripleStoreConnector.executePropertyValueQuery(), TripleStoreConnector.executeQuery(), GeoJSONFormatter.formatJSONObject(), GeoJSONFormatter.formatJSONStreaming(), GeoHashFormatter.formatter(), CovJSONFormatter.formatter(), RasterWKBFormatter.formatter(), XYZASCIIFormatter.formatter(), HTMLFormatter.formatter(), CypherFormatter.formatter(), GDFFormatter.formatter(), GEXFFormatter.formatter(), GraphMLFormatter.formatter(), GXLFormatter.formatter(), HDTFormatter.formatter(), HexTuplesFormatter.formatter(), LDAPIJSONFormatter.formatter(), N3Formatter.formatter(), NQuadsFormatter.formatter(), NTFormatter.formatter(), RDFEXIFormatter.formatter(), RDFFormatter.formatter(), RDFJSONFormatter.formatter(), RDFThriftFormatter.formatter(), TGFFormatter.formatter(), TrigFormatter.formatter(), TrixFormatter.formatter(), TTLFormatter.formatter(), BSONFormatter.formatter(), CSVFormatter.formatter(), EWKTFormatter.formatter(), GeoJSONLDFormatter.formatter(), GeoJSONSeqFormatter.formatter(), GeoURIFormatter.formatter(), GMLFormatter.formatter(), GPXFormatter.formatter(), HexWKBFormatter.formatter(), JSONFormatter.formatter(), JSONLDFormatter.formatter(), JSONPFormatter.formatter(), JSONSeqFormatter.formatter(), KMLFormatter.formatter(), LatLonTextFormatter.formatter(), MapMLFormatter.formatter(), MVTFormatter.formatter(), ODSFormatter.formatter(), OpenLocationCodeFormatter.formatter(), OSMFormatter.formatter(), OSMLinkFormatter.formatter(), PostgreSQLFormatter.formatter(), TWKBFormatter.formatter(), WKBFormatter.formatter(), WKTFormatter.formatter(), XLSFormatter.formatter(), XLSXFormatter.formatter(), YAMLFormatter.formatter(), and SVGFormatter.formatter().

◆ mediatypes

final String [] mediatypes
staticinherited
Initial value:
= {
MediaType.TEXT_PLAIN,
"application/vnd.geo+json+ld",
"text/csv",
}

◆ mimeType

String mimeType ="text/plain"
inherited

Referenced by ResultFormatter.addToMaps(), ASCIIGridFormatter.ASCIIGridFormatter(), BSONFormatter.BSONFormatter(), WebService.collectionItems(), WebService.collections(), CovJSONFormatter.CovJSONFormatter(), CSVFormatter.CSVFormatter(), CypherFormatter.CypherFormatter(), WebService.docCollectionItemJSON(), WebService.docCollectionJSON(), EWKTFormatter.EWKTFormatter(), GDFFormatter.GDFFormatter(), GeoHashFormatter.GeoHashFormatter(), GeoJSONFormatter.GeoJSONFormatter(), GeoJSONLDFormatter.GeoJSONLDFormatter(), GeoJSONSeqFormatter.GeoJSONSeqFormatter(), GeoRSSFormatter.GeoRSSFormatter(), GeoTIFFFormatter.GeoTIFFFormatter(), GeoURIFormatter.GeoURIFormatter(), GEXFFormatter.GEXFFormatter(), GMLCOVFormatter.GMLCOVFormatter(), GMLFormatter.GMLFormatter(), GPXFormatter.GPXFormatter(), GraphMLFormatter.GraphMLFormatter(), GXFFormatter.GXFFormatter(), GXLFormatter.GXLFormatter(), HDTFormatter.HDTFormatter(), HexRasterWKBFormatter.HexRasterWKBFormatter(), HexTuplesFormatter.HexTuplesFormatter(), HexWKBFormatter.HexWKBFormatter(), HTMLFormatter.HTMLFormatter(), JSONFormatter.JSONFormatter(), JSONLDFormatter.JSONLDFormatter(), JSONPFormatter.JSONPFormatter(), JSONSeqFormatter.JSONSeqFormatter(), KMLFormatter.KMLFormatter(), LatLonTextFormatter.LatLonTextFormatter(), LDAPIJSONFormatter.LDAPIJSONFormatter(), MapMLFormatter.MapMLFormatter(), MVTFormatter.MVTFormatter(), N3Formatter.N3Formatter(), NQuadsFormatter.NQuadsFormatter(), NTFormatter.NTFormatter(), ODSFormatter.ODSFormatter(), OpenLocationCodeFormatter.OpenLocationCodeFormatter(), OSMFormatter.OSMFormatter(), OSMLinkFormatter.OSMLinkFormatter(), PolyshapeFormatter.PolyshapeFormatter(), PostgreSQLFormatter.PostgreSQLFormatter(), RasterWKBFormatter.RasterWKBFormatter(), RDFEXIFormatter.RDFEXIFormatter(), RDFFormatter.RDFFormatter(), RDFJSONFormatter.RDFJSONFormatter(), RDFThriftFormatter.RDFThriftFormatter(), SVGFormatter.SVGFormatter(), TGFFormatter.TGFFormatter(), TLPFormatter.TLPFormatter(), TopoJSONFormatter.TopoJSONFormatter(), TrigFormatter.TrigFormatter(), TrixFormatter.TrixFormatter(), TTLFormatter.TTLFormatter(), TWKBFormatter.TWKBFormatter(), WKBFormatter.WKBFormatter(), WKTFormatter.WKTFormatter(), X3DFormatter.X3DFormatter(), XLSFormatter.XLSFormatter(), XLSXFormatter.XLSXFormatter(), XYZASCIIFormatter.XYZASCIIFormatter(), and YAMLFormatter.YAMLFormatter().

◆ resultMap

◆ styleformatter

◆ urlformat

String urlformat ="json"
inherited

Referenced by ASCIIGridFormatter.ASCIIGridFormatter(), BSONFormatter.BSONFormatter(), WebService.collectionInformation(), CovJSONFormatter.CovJSONFormatter(), CSVFormatter.CSVFormatter(), CypherFormatter.CypherFormatter(), EWKTFormatter.EWKTFormatter(), GDFFormatter.GDFFormatter(), GeoHashFormatter.GeoHashFormatter(), GeoJSONFormatter.GeoJSONFormatter(), GeoJSONLDFormatter.GeoJSONLDFormatter(), GeoJSONSeqFormatter.GeoJSONSeqFormatter(), GeoRSSFormatter.GeoRSSFormatter(), GeoTIFFFormatter.GeoTIFFFormatter(), GeoURIFormatter.GeoURIFormatter(), GEXFFormatter.GEXFFormatter(), GMLCOVFormatter.GMLCOVFormatter(), GMLFormatter.GMLFormatter(), GPXFormatter.GPXFormatter(), GraphMLFormatter.GraphMLFormatter(), GXFFormatter.GXFFormatter(), GXLFormatter.GXLFormatter(), HDTFormatter.HDTFormatter(), HexRasterWKBFormatter.HexRasterWKBFormatter(), HexTuplesFormatter.HexTuplesFormatter(), HexWKBFormatter.HexWKBFormatter(), HTMLFormatter.HTMLFormatter(), JSONFormatter.JSONFormatter(), JSONLDFormatter.JSONLDFormatter(), JSONPFormatter.JSONPFormatter(), JSONSeqFormatter.JSONSeqFormatter(), KMLFormatter.KMLFormatter(), LatLonTextFormatter.LatLonTextFormatter(), LDAPIJSONFormatter.LDAPIJSONFormatter(), MapMLFormatter.MapMLFormatter(), MVTFormatter.MVTFormatter(), N3Formatter.N3Formatter(), NQuadsFormatter.NQuadsFormatter(), NTFormatter.NTFormatter(), ODSFormatter.ODSFormatter(), OpenLocationCodeFormatter.OpenLocationCodeFormatter(), OSMFormatter.OSMFormatter(), OSMLinkFormatter.OSMLinkFormatter(), PolyshapeFormatter.PolyshapeFormatter(), PostgreSQLFormatter.PostgreSQLFormatter(), RasterWKBFormatter.RasterWKBFormatter(), RDFEXIFormatter.RDFEXIFormatter(), RDFFormatter.RDFFormatter(), RDFJSONFormatter.RDFJSONFormatter(), RDFThriftFormatter.RDFThriftFormatter(), SVGFormatter.SVGFormatter(), TGFFormatter.TGFFormatter(), TLPFormatter.TLPFormatter(), TopoJSONFormatter.TopoJSONFormatter(), TrigFormatter.TrigFormatter(), TrixFormatter.TrixFormatter(), TTLFormatter.TTLFormatter(), TWKBFormatter.TWKBFormatter(), WKBFormatter.WKBFormatter(), WKTFormatter.WKTFormatter(), X3DFormatter.X3DFormatter(), XLSFormatter.XLSFormatter(), XLSXFormatter.XLSXFormatter(), XYZASCIIFormatter.XYZASCIIFormatter(), and YAMLFormatter.YAMLFormatter().

◆ vectorLiteralMap

Set<String> vectorLiteralMap =new TreeSet<>()
staticinherited

◆ wkbreader

WKBReader wkbreader =new WKBReader()
inherited

◆ wktreader

WKTReader wktreader =new WKTReader()
inherited