- System.err.println("Ignoring sequence coord system " + cs + " ("
- + cs.getContent() + ") for source " + getTitle()
- + "- threw exception when constructing fetcher.\n");
- e.printStackTrace();
+ DasSequenceSource ds;
+ /*
+ * if (css == null || css.length == 0) { // TODO: query das source
+ * directly to identify coordinate system... or // have to make up a
+ * coordinate system css = new DasCoordinateSystem[] { new
+ * DasCoordinateSystem() }; css[0].setName(d1s.getNickname());
+ * css[0].setUniqueId(d1s.getNickname()); } for (int c = 0; c <
+ * css.length; c++) {
+ */
+ try
+ {
+ seqsources.add(ds = new DasSequenceSource(getTitle() + " ("
+ + cs.getAuthority() + " " + cs.getSource()
+ + (cs.getVersion() != null ? " " + cs.getVersion() : "")
+ + ")", cs.getAuthority(), source, v, cs, connprov));
+ if (seqsources.size() > 1)
+ {
+ System.err.println("Added another sequence DB source for "
+ + getTitle() + " (" + ds.getDbName() + ")");
+ }
+ } catch (Exception e)
+ {
+ System.err.println("Ignoring sequence coord system " + cs + " ("
+ + cs.getContent() + ") for source " + getTitle()
+ + "- threw exception when constructing fetcher.\n");
+ e.printStackTrace();
+ }