Ignore:
Timestamp:
2014-11-30T23:32:03+01:00 (10 years ago)
Author:
mkyral
Message:

PointInfo: Add an initial support for Ruian error reporting.

Location:
applications/editors/josm/plugins/pointInfo/src/org/openstreetmap/josm/plugins/pointinfo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pointInfo/src/org/openstreetmap/josm/plugins/pointinfo/PointInfoAction.java

    r30466 r30831  
    111111
    112112                    // Show result
     113                    System.out.println("htmlText: " + htmlText);
    113114                    JEditorPane msgLabel = new JEditorPane("text/html", htmlText);
    114115                    msgLabel.setEditable(false);
  • applications/editors/josm/plugins/pointInfo/src/org/openstreetmap/josm/plugins/pointinfo/ruianModule.java

    r30470 r30831  
    906906      String icon_create_addr_ruian = "<img src=" +getClass().getResource("/images/dialogs/create-addr-ruian.png")+" border=0 alt=\"Zobrazit na stránkách RUIAN\"/>";
    907907
     908      String icon_ruian_error = "<img src=" +getClass().getResource("/images/dialogs/create-bug-report.png")+" border=0 alt=\"Nahlásit problém v datech\"/>";
     909
    908910      String url_cpost = "http://www.postaonline.cz/vyhledani-psc?p_p_id=psc_WAR_pcpvpp&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_psc_WAR_pcpvpp_struts.portlet.action=%2Fview%2FdetailPost&_psc_WAR_pcpvpp_struts.portlet.mode=view&_psc_WAR_pcpvpp_zipCode=";
    909911      String url_stavebni_objekt = "http://vdp.cuzk.cz/vdp/ruian/stavebniobjekty/";
     
    918920      String url_kraj = "http://vdp.cuzk.cz/vdp/ruian/vusc/";
    919921
     922      String url_ruian_error = "http://ruian.poloha.net/building.php?kod=";
     923
    920924      StringBuilder r = new StringBuilder();
    921925
     
    927931        return "";
    928932
    929       r.append("<html>");
     933      r.append("<html><body bgcolor=\"white\" color=\"black\" topmargin=\"2\" leftmargin=\"2\" >");
    930934      r.append("<br/>");
    931935      if (m_objekt_ruian_id > 0) {
    932936        r.append("<i><u>Informace o budově</u></i><br/>");
    933937        r.append("<b>RUIAN id: </b>"+ m_objekt_ruian_id +"&nbsp;&nbsp;<a href="+ url_stavebni_objekt + m_objekt_ruian_id +">" + icon_ext_link + "</a>");
    934         r.append("&nbsp;&nbsp;<a href=file://tags.copy/building>"+ icon_copy_tags +"</a><br/>");
     938        r.append("&nbsp;&nbsp;<a href=file://tags.copy/building>"+ icon_copy_tags +"</a>");
     939        r.append("&nbsp;&nbsp;<a href=" + url_ruian_error + m_objekt_ruian_id + ">"+ icon_ruian_error +"</a><br/>");
    935940        if (m_adresni_mista.size() == 0 ) r.append("<b>Budova: </b> bez č.p./č.e<br/>");
    936941        else if (m_adresni_mista.get(0).getCisloTyp().equals("Číslo popisné")) r.append("<b>Budova: </b>s číslem popisným<br/>");
     
    11371142      r.append("<hr/>");
    11381143      r.append("<center><i><small>Zdroj: <a href=\"http://www.ruian.cz/\">" + m_source + "</a></small></i></center>");
    1139       r.append("</html>");
     1144      r.append("</body></html>");
    11401145
    11411146      return r.toString();
Note: See TracChangeset for help on using the changeset viewer.