Class: Gpx2png::Ump

Inherits:
Osm show all
Defined in:
lib/gpx2png/ump.rb

Constant Summary

Constants inherited from Osm

Osm::DEFAULT_RENDERER

Constants inherited from OsmBase

OsmBase::TILE_HEIGHT, OsmBase::TILE_WIDTH

Constants included from Calculations::OsmClassMethods

Calculations::OsmClassMethods::TILE_HEIGHT, Calculations::OsmClassMethods::TILE_WIDTH

Constants included from Calculations::OsmInstanceMethods

Calculations::OsmInstanceMethods::TILE_HEIGHT, Calculations::OsmInstanceMethods::TILE_WIDTH

Instance Attribute Summary

Attributes inherited from Osm

#renderer, #renderer_options

Attributes included from Calculations::OsmInstanceMethods

#bitmap_point_x_max, #bitmap_point_x_min, #bitmap_point_y_max, #bitmap_point_y_min, #lat_max, #lat_min, #lon_max, #lon_min, #tile_x_distance, #tile_y_distance

Attributes inherited from Base

#layers, #simulate_download

Class Method Summary collapse

Methods inherited from Osm

#add_marker, #initialize, #render, #save, #setup_renderer, #to_png

Methods inherited from OsmBase

url_convert

Methods included from Calculations::OsmClassMethods

#calc_zoom, #convert, #point_on_absolute_image, #point_on_image, #reverse_convert

Methods included from Calculations::OsmInstanceMethods

#auto_zoom_for, #calculate_for_crop, #calculate_for_crop_with_auto_zoom, #download_and_join_tiles, #expand_map, #initial_calculations

Methods inherited from Base

#add, #add_layer, #color, #coords=, #destroy, #fixed_size, #initialize, logger, logger=, simulate_download=, #simulate_download?, #zoom, #zoom=

Methods included from Calculations::BaseClassMethods

#deg2rad, #rad2deg

Methods included from Calculations::BaseInstanceMethods

#calculate_minmax_latlon, #enlarge_border_coords

Constructor Details

This class inherits a constructor from Gpx2png::Osm

Class Method Details

.licence_stringObject



14
15
16
# File 'lib/gpx2png/ump.rb', line 14

def self.licence_string
  "Data by UMP-pcPL+SRTM"
end

.url(zoom, coord, server = '3.') ⇒ Object

Convert OSM/UMP tile coords to url



8
9
10
11
12
# File 'lib/gpx2png/ump.rb', line 8

def self.url(zoom, coord, server = '3.')
  x, y = coord
  url = "http://#{server}tiles.ump.waw.pl/ump_tiles/#{zoom}/#{x}/#{y}.png"
  return url
end