Geo::OSM::Render::Renderer - Render OpenStreetMap data encaspulated via Geo::OSM::Primitive, possibly stored in a Geo::OSM::DBI database.
SYNOPSIS
OVERVIEW
…
METHODS
new
my $proj = Geo::OSM::Render::Projection->new(); # Use derived class!
my $vp = Geo::OSM::Render::Viewport ->new(); # Use derived class!
my $osm_renderer = Geo::OSM::Render::Renderer->new(
$proj,
$vp
);
render_node
$osm_svg_renderer->render_node($node);
Renders $node>> which must be a Geo::OSM::Primitive::Node (or derived from it)i.
render_way
$osm_svg_renderer->render_way($way);
Renders $way>> which must be a Geo::OSM::Primitive::Way (or derived from it)i.
lat_lon_to_map_coordinates
my ($map_x, $map_y) = $osm_svg_renderer->lat_lon_to_map_coordinates($lat, $lon);
Convert the lattitude/longitude pair <$lat
> and <$lon
> to map coordinates and return them.
node_to_map_coordinates
my ($map_x, $map_y) = $osm_svg_renderer->node_to_map_coordinates($node);
AUTHOR
René Nyffenegger <rene.nyffenegger@adp-gmbh.ch>
COPYRIGHT AND LICENSE
Copyright © 2017 René Nyffenegger, Switzerland. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). You may obtain a copy of the full license at: http://www.perlfoundation.org/artistic_license_2_0
Source Code
The source code is on github. Meaningful pull requests are welcome.
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 89:
Unterminated C< ... > sequence
- Around line 109:
Unterminated C< ... > sequence