source: subversion/applications/editors/josm/plugins/pointInfo/README.md @ 34216

Last change on this file since 34216 was 34216, checked in by mkyral, 16 months ago

PointInfo?: Adds a link to photo metadata in Catastro module.

Patch by Javier Sánchez Portero.

File size: 2.6 KB
Line 
1![](http://www.kyralovi.cz/tmp/josm/pointInfo_20170128.png)
2
3---
4
5# PointInfo plugin
6
7This plugin shows all available information for clicked point from external database.
8Only Czech RUIAN and Spanish Cadastre Web Services modules are available at this moment.
9
10Plugin could be easy extend to show another data source.
11
12## Author
13
14 * Marián Kyral <mkyral@email.cz>
15
16## Contributors
17
18  * Javier Sánchez Portero <javiersanp@gmail.com> (Spanish Cadastre Web Services module)
19
20## Websites
21
22 * [OSM wiki](https://wiki.openstreetmap.org/wiki/JOSM/Plugins/pointinfo)
23 * [JOSM svn](https://trac.openstreetmap.org/browser/subversion/applications/editors/josm/plugins/pointInfo)
24 * [Github](https://github.com/mkyral/josm-pointInfo)
25
26## Licence:
27
28 * GPL v2 or later
29
30---
31### The RUIAN module
32
33 * Shows data about building, addresses, streets,  parcels and cadastral area from Czech RUIAN registry (https://wiki.openstreetmap.org/wiki/RUIAN)
34
35 * Additional actions are available :
36    * [![](https://raw.githubusercontent.com/mkyral/josm-pointInfo/master/images/dialogs/open-external-link.png)] Open external site
37    * [![](https://raw.githubusercontent.com/mkyral/josm-pointInfo/master/images/dialogs/open-external-link-kn.png)] Open external site (Katastr nemovitostí)
38    * [![](https://raw.githubusercontent.com/mkyral/josm-pointInfo/master/images/dialogs/copy-tags.png)] Copy tags to clipboard
39    * [![](https://raw.githubusercontent.com/mkyral/josm-pointInfo/master/images/dialogs/create-addr.png)] Create an address point on position where was clicked
40    * [![](https://raw.githubusercontent.com/mkyral/josm-pointInfo/master/images/dialogs/create-addr-ruian.png)] Create an address point on position defined in RUIAN
41    * [![](https://raw.githubusercontent.com/mkyral/josm-pointInfo/master/images/dialogs/create-bug-report.png)] Report an issue with building
42
43### The Spanish Cadastre Web Services module
44
45  * Easy access the Spanish Cadastre Web Services (only Cadastre photographs at the moment).
46
47---
48### The interface:
49
50- Input is position, output html string that is shown on message.
51- Optionally you can define special links (file://...) that will be sent back to the module to the performAction method
52
53```java
54
55    /**
56     * Get a information about given position from external database.
57     * @param pos Position on the map
58     */
59    public void prepareData(LatLon pos) {
60    }
61
62    /**
63     * Return Html text representation
64     * @return String htmlText
65     */
66    public String getHtml() {
67    }
68
69    /**
70     * Perform given action
71     *  e.g.: copy tags to clipboard
72     * @param act Action to be performed
73     */
74    public void performAction(String act) {
75    }
76
77```
Note: See TracBrowser for help on using the repository browser.