Changeset 33129 in osm for applications/editors/josm/plugins/pointInfo/src/org/openstreetmap
- Timestamp:
- 2017-01-26T22:11:52+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pointInfo/src/org/openstreetmap/josm/plugins/pointinfo/ruian/RuianRecord.java
r32956 r33129 634 634 635 635 String icon_ext_link = "<img src=" +getClass().getResource( 636 "/images/dialogs/open-external-link.png")+" border=0 alt=\"Zobrazit na externích stránkách\"/>"; 637 String icon_ext_link_ruian = "<img src=" +getClass().getResource( 636 638 "/images/dialogs/open-external-link.png")+" border=0 alt=\"Zobrazit na stránkách RUIAN\"/>"; 639 String icon_ext_link_kn = "<img src=" +getClass().getResource( 640 "/images/dialogs/open-external-link-kn.png")+" border=0 alt=\"Zobrazit na stránkách katastru nemovitostí\"/>"; 637 641 String icon_copy_tags = "<img src=" +getClass().getResource( 638 "/images/dialogs/copy-tags.png")+" border=0 alt=\" Zobrazit na stránkách RUIAN\"/>";642 "/images/dialogs/copy-tags.png")+" border=0 alt=\"Kopírovat tagy\"/>"; 639 643 String icon_create_addr = "<img src=" +getClass().getResource( 640 "/images/dialogs/create-addr.png")+" border=0 alt=\" Zobrazit na stránkách RUIAN\"/>";644 "/images/dialogs/create-addr.png")+" border=0 alt=\"Vytvořit adresní bod\"/>"; 641 645 String icon_create_addr_ruian = "<img src=" +getClass().getResource( 642 "/images/dialogs/create-addr-ruian.png")+" border=0 alt=\" Zobrazit na stránkách RUIAN\"/>";646 "/images/dialogs/create-addr-ruian.png")+" border=0 alt=\"Vytvořit adresní bod dle RUIANu\"/>"; 643 647 String icon_ruian_error = "<img src=" +getClass().getResource( 644 648 "/images/dialogs/create-bug-report.png")+" border=0 alt=\"Nahlásit problém v datech\"/>"; … … 656 660 String url_okres = "http://vdp.cuzk.cz/vdp/ruian/okresy/"; 657 661 String url_kraj = "http://vdp.cuzk.cz/vdp/ruian/vusc/"; 662 String url_vlastnici = "http://vdp.cuzk.cz/vdp/ruian/vlastnici?typ="; 658 663 659 664 String url_ruian_error = "http://ruian.poloha.net/building.php?kod="; … … 673 678 r.append("<i><u>Informace o budově</u></i><br/>") 674 679 .append("<b>RUIAN id: </b>"+ m_objekt_ruian_id +" <a href="+ url_stavebni_objekt + m_objekt_ruian_id +">" 675 + icon_ext_link + "</a>") 680 + icon_ext_link_ruian + "</a>") 681 .append(" <a href="+ url_vlastnici + "so&id=" + m_objekt_ruian_id + ">"+ icon_ext_link_kn +"</a>") 676 682 .append(" <a href=file://tags.copy/building>"+ icon_copy_tags +"</a>") 677 683 .append(" <a href=" + url_ruian_error + m_objekt_ruian_id + ">"+ icon_ruian_error +"</a><br/>"); … … 693 699 + m_adresni_mista.get(i).getCisloDomovni() + "<br/>") 694 700 .append("<b>Část obce: </b>" + m_adresni_mista.get(i).getCastObce()) 695 .append(" <a href="+ url_mistni_cast + m_adresni_mista.get(i).getCastObceID() +">" + icon_ext_link + "</a><br/>");701 .append(" <a href="+ url_mistni_cast + m_adresni_mista.get(i).getCastObceID() +">" + icon_ext_link_ruian + "</a><br/>"); 696 702 if (m_adresni_mista.get(i).getMestskaCast().length() > 0) { 697 703 r.append("<b>Městská část: </b>" + m_adresni_mista.get(i).getMestskaCast()) 698 704 .append(" <a href="+ url_mestska_cast + m_adresni_mista.get(i).getMestskaCastID() +">" 699 + icon_ext_link + "</a><br/>");705 + icon_ext_link_ruian + "</a><br/>"); 700 706 } 701 707 r.append("<b>Obec: </b>" + m_adresni_mista.get(i).getObec()) 702 .append(" <a href="+ url_obec + m_adresni_mista.get(i).getObecID() +">" + icon_ext_link + "</a><br/>")708 .append(" <a href="+ url_obec + m_adresni_mista.get(i).getObecID() +">" + icon_ext_link_ruian + "</a><br/>") 703 709 .append("<b>Okres: </b>" + m_adresni_mista.get(i).getOkres()) 704 .append(" <a href="+ url_okres + m_adresni_mista.get(i).getOkresID() +">" + icon_ext_link + "</a><br/>")710 .append(" <a href="+ url_okres + m_adresni_mista.get(i).getOkresID() +">" + icon_ext_link_ruian + "</a><br/>") 705 711 .append("<b>Kraj: </b>" + m_adresni_mista.get(i).getKraj()) 706 .append(" <a href="+ url_kraj + m_adresni_mista.get(i).getKrajID() +">" + icon_ext_link + "</a><br/>");712 .append(" <a href="+ url_kraj + m_adresni_mista.get(i).getKrajID() +">" + icon_ext_link_ruian + "</a><br/>"); 707 713 708 714 } else if (m_adresni_mista.size() == 1 … … 716 722 r.append("<b>Městská část: </b>" + m_adresni_mista.get(i).getMestskaCast()) 717 723 .append(" <a href="+ url_mestska_cast + m_adresni_mista.get(i).getMestskaCastID() +">" 718 + icon_ext_link + "</a><br/>");724 + icon_ext_link_ruian + "</a><br/>"); 719 725 } 720 726 r.append("<b>Obec: </b>" + m_adresni_mista.get(i).getObec()) 721 .append(" <a href="+ url_obec + m_adresni_mista.get(i).getObecID() +">" + icon_ext_link + "</a><br/>")727 .append(" <a href="+ url_obec + m_adresni_mista.get(i).getObecID() +">" + icon_ext_link_ruian + "</a><br/>") 722 728 .append("<b>Okres: </b>" + m_adresni_mista.get(i).getOkres()) 723 .append(" <a href="+ url_okres + m_adresni_mista.get(i).getOkresID() +">" + icon_ext_link + "</a><br/>")729 .append(" <a href="+ url_okres + m_adresni_mista.get(i).getOkresID() +">" + icon_ext_link_ruian + "</a><br/>") 724 730 .append("<b>Kraj: </b>" + m_adresni_mista.get(i).getKraj()) 725 .append(" <a href="+ url_kraj + m_adresni_mista.get(i).getKrajID() +">" + icon_ext_link + "</a><br/>");731 .append(" <a href="+ url_kraj + m_adresni_mista.get(i).getKrajID() +">" + icon_ext_link_ruian + "</a><br/>"); 726 732 727 733 } else if (m_adresni_mista.size() == 1) { … … 737 743 .append("<i><u>Informace o adrese</u></i><br/>") 738 744 .append("<b>RUIAN id: </b>"+ m_adresni_mista.get(i).getRuianID() +" <a href="+ url_adresni_misto 739 + m_adresni_mista.get(i).getRuianID() +">" + icon_ext_link + "</a>")745 + m_adresni_mista.get(i).getRuianID() +">" + icon_ext_link_ruian + "</a>") 740 746 .append(" <a href=file://tags.copy/address:"+i+">"+ icon_copy_tags +"</a>") 741 747 .append(" <a href=file://tags.create/address:"+i+">"+ icon_create_addr +"</a>") … … 745 751 if (!m_adresni_mista.get(i).getUlice().isEmpty()) { 746 752 r.append("<b>Ulice: </b>" + m_adresni_mista.get(i).getUlice()) 747 .append(" <a href="+ url_ulice + m_adresni_mista.get(i).getUliceID() +">" + icon_ext_link + "</a><br/>");753 .append(" <a href="+ url_ulice + m_adresni_mista.get(i).getUliceID() +">" + icon_ext_link_ruian + "</a><br/>"); 748 754 } 749 755 r.append("<b>Část obce: </b>" + m_adresni_mista.get(i).getCastObce()) 750 .append(" <a href="+ url_mistni_cast + m_adresni_mista.get(i).getCastObceID() +">" + icon_ext_link + "</a><br/>");756 .append(" <a href="+ url_mistni_cast + m_adresni_mista.get(i).getCastObceID() +">" + icon_ext_link_ruian + "</a><br/>"); 751 757 if (m_adresni_mista.get(i).getMestskaCast().length() > 0) { 752 758 r.append("<b>Městská část: </b>" + m_adresni_mista.get(i).getMestskaCast()) 753 759 .append(" <a href="+ url_mestska_cast + m_adresni_mista.get(i).getMestskaCastID() +">" 754 + icon_ext_link + "</a><br/>");760 + icon_ext_link_ruian + "</a><br/>"); 755 761 } 756 762 r.append("<b>Obec: </b>" + m_adresni_mista.get(i).getObec()) 757 .append(" <a href="+ url_obec + m_adresni_mista.get(i).getObecID() +">" + icon_ext_link + "</a><br/>")763 .append(" <a href="+ url_obec + m_adresni_mista.get(i).getObecID() +">" + icon_ext_link_ruian + "</a><br/>") 758 764 .append("<b>Okres: </b>" + m_adresni_mista.get(i).getOkres()) 759 .append(" <a href="+ url_okres + m_adresni_mista.get(i).getOkresID() +">" + icon_ext_link + "</a><br/>")765 .append(" <a href="+ url_okres + m_adresni_mista.get(i).getOkresID() +">" + icon_ext_link_ruian + "</a><br/>") 760 766 .append("<b>Kraj: </b>" + m_adresni_mista.get(i).getKraj()) 761 .append(" <a href="+ url_kraj + m_adresni_mista.get(i).getKrajID() +">" + icon_ext_link + "</a><br/>")767 .append(" <a href="+ url_kraj + m_adresni_mista.get(i).getKrajID() +">" + icon_ext_link_ruian + "</a><br/>") 762 768 .append("<b>PSČ: </b>" + m_adresni_mista.get(i).getPsc()) 763 .append(" <a href="+ url_cpost + m_adresni_mista.get(i).getPsc() +">" + icon_ext_link + "</a><br/>");769 .append(" <a href="+ url_cpost + m_adresni_mista.get(i).getPsc() +">" + icon_ext_link_ruian + "</a><br/>"); 764 770 765 771 } … … 796 802 r.append("/" + m_adresni_mista.get(i).getCisloOrientacni()); 797 803 } 798 r.append(" <a href="+ url_adresni_misto + m_adresni_mista.get(i).getRuianID() + ">"+ icon_ext_link +"</a> ")804 r.append(" <a href="+ url_adresni_misto + m_adresni_mista.get(i).getRuianID() + ">"+ icon_ext_link_ruian +"</a> ") 799 805 .append(" <a href=file://tags.copy/address:"+i+">"+ icon_copy_tags +"</a>") 800 806 .append(" <a href=file://tags.create/address:"+i+">"+ icon_create_addr +"</a>") … … 810 816 .append("<br/>") 811 817 .append("<b>RUIAN id: </b>"+ m_parcela_ruian_id +" <a href="+ url_parcela + m_parcela_ruian_id +">" 812 + icon_ext_link + "</a><br/>") 818 + icon_ext_link_ruian + "</a>") 819 .append(" <a href="+ url_vlastnici + "pa&id=" + m_parcela_ruian_id + ">"+ icon_ext_link_kn +"</a><br/>") 813 820 // .append(" <a href=file://tags.copy/parcel>"+ icon_copy_tags +"</a>") 814 821 .append("<b>Druh pozemku: </b>" + m_parcela_druh_pozemku +"<br/>"); … … 821 828 if (m_ulice_ruian_id > 0) { 822 829 r.append("<i><u>Informace o ulici</u></i><br/>") 823 .append("<b>RUIAN id: </b>"+ m_ulice_ruian_id +" <a href="+ url_ulice + m_ulice_ruian_id +">" + icon_ext_link + "</a>")830 .append("<b>RUIAN id: </b>"+ m_ulice_ruian_id +" <a href="+ url_ulice + m_ulice_ruian_id +">" + icon_ext_link_ruian + "</a>") 824 831 .append(" <a href=file://tags.copy/street>"+ icon_copy_tags +"</a><br/>") 825 832 .append("<b>Jméno: </b>" + m_ulice_jmeno +"<br/>") … … 830 837 if (m_katastr_ruian_id > 0) { 831 838 r.append("<b>Katastrální území: </b>" + m_katastr_nazev) 832 .append(" <a href="+ url_katastralni_uzemi + m_katastr_ruian_id +">" + icon_ext_link + "</a><br/>")839 .append(" <a href="+ url_katastralni_uzemi + m_katastr_ruian_id +">" + icon_ext_link_ruian + "</a><br/>") 833 840 .append("<b>Obec: </b>" + m_katastr_obec) 834 .append(" <a href="+ url_obec + m_katastr_obec_kod +">" + icon_ext_link + "</a><br/>")841 .append(" <a href="+ url_obec + m_katastr_obec_kod +">" + icon_ext_link_ruian + "</a><br/>") 835 842 .append("<b>Okres: </b>" + m_katastr_okres) 836 .append(" <a href="+ url_okres + m_katastr_okres_kod +">" + icon_ext_link + "</a><br/>")843 .append(" <a href="+ url_okres + m_katastr_okres_kod +">" + icon_ext_link_ruian + "</a><br/>") 837 844 .append("<b>Kraj: </b>" + m_katastr_kraj) 838 .append(" <a href="+url_kraj + m_katastr_kraj_kod +">" + icon_ext_link + "</a><br/>")845 .append(" <a href="+url_kraj + m_katastr_kraj_kod +">" + icon_ext_link_ruian + "</a><br/>") 839 846 .append("<br/>"); 840 847 } … … 863 870 .append("<br/><u>" + m_adresni_mista.get(i).getObec() + "</u>") 864 871 .append("</td><td valign=\"top\" bgcolor=#e5e5ff>") 865 .append("<a href="+ url_adresni_misto + m_adresni_mista.get(i).getRuianID() + ">"+ icon_ext_link +"</a>")872 .append("<a href="+ url_adresni_misto + m_adresni_mista.get(i).getRuianID() + ">"+ icon_ext_link_ruian +"</a>") 866 873 .append(" <a href=file://tags.copy/address:"+i+">"+ icon_copy_tags +"</a>") 867 874 .append(" <a href=file://tags.create/address:"+i+">"+ icon_create_addr +"</a>") … … 875 882 } 876 883 r.append("</td><td valign=\"top\" bgcolor=#e5e5ff>") 877 .append("<a href="+ url_adresni_misto + m_adresni_mista.get(i).getRuianID() + ">"+ icon_ext_link +"</a>")884 .append("<a href="+ url_adresni_misto + m_adresni_mista.get(i).getRuianID() + ">"+ icon_ext_link_ruian +"</a>") 878 885 .append(" <a href=file://tags.copy/address:"+i+">"+ icon_copy_tags +"</a>") 879 886 .append(" <a href=file://tags.create/address:"+i+">"+ icon_create_addr +"</a>") … … 897 904 } 898 905 r.append("</td><td valign=\"top\" bgcolor=#e5e5ff>") 899 .append(" <a href="+ url_stavebni_objekt + m_so_bez_geometrie.get(i).getRuianID() + ">"+ icon_ext_link +"</a> ")906 .append(" <a href="+ url_stavebni_objekt + m_so_bez_geometrie.get(i).getRuianID() + ">"+ icon_ext_link_ruian +"</a> ") 900 907 .append(" <a href=file://tags.copy/ghost:"+i+">"+ icon_copy_tags +"</a></br>") 901 908 .append("</td></tr>");
Note:
See TracChangeset
for help on using the changeset viewer.