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