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