https://github.com/mapnik/hello-world-input-plugin
Hello world input plugin
https://github.com/mapnik/hello-world-input-plugin
Last synced: 11 months ago
JSON representation
Hello world input plugin
- Host: GitHub
- URL: https://github.com/mapnik/hello-world-input-plugin
- Owner: mapnik
- Created: 2015-05-08T00:01:13.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-10-14T16:39:00.000Z (over 4 years ago)
- Last Synced: 2024-03-25T23:29:56.660Z (almost 2 years ago)
- Language: C++
- Size: 176 KB
- Stars: 2
- Watchers: 2
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## hello world plugin
This is a very simple sample plugin. It is designed to help developers
see the skeletal basics needed to achieve a functional datasource plugin.
It is not a model plugin of best practices as much as a model of the bare
minimum you need to have a working plugin that returns a single feature.
Code comments attempt to highlight which code is mandatory, which is
simply recommended, and which is purely fluff used to get the plugin to
actually show some data.
When added to a map it provides a single point geometry representing
the center of any query. This means that it should place a point in
the middle of any map tile and display a "hello world!" label if used like:
```xml
<Rule>
<PointSymbolizer />
<TextSymbolizer name="[key]" face_name="DejaVu Sans Book" size="10" dx="5" dy="5"/>
</Rule>
style
hello
```
Or used in python like:
```
import mapnik
ds = mapnik.Datasource(type="hello")
```