libgd-gis 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +78 -31
  3. data/examples/{a-world_peaks.rb → america-peaks.rb} +4 -4
  4. data/examples/asia-peaks.rb +42 -0
  5. data/examples/av_ramirez.rb +34 -0
  6. data/examples/europe-peaks.rb +42 -0
  7. data/examples/heladerias.json +47 -0
  8. data/examples/heladerias.rb +40 -0
  9. data/examples/ice-cream.jpg +0 -0
  10. data/examples/ice-cream.png +0 -0
  11. data/examples/output/america.png +0 -0
  12. data/examples/output/asia.png +0 -0
  13. data/examples/output/europe.png +0 -0
  14. data/examples/output/heladerias_parana.png +0 -0
  15. data/examples/output/museos_parana.png +0 -0
  16. data/examples/output/world_peaks-s.png +0 -0
  17. data/examples/parana_museos.rb +49 -0
  18. data/examples/street/1.osm +207517 -0
  19. data/examples/street/av-ramirez.osm +207517 -0
  20. data/examples/street/av-ramirez.png +0 -0
  21. data/examples/street/av_ramirez-0.1346843780815251.png +0 -0
  22. data/examples/street/av_ramirez-3.png +0 -0
  23. data/examples/street/av_ramirez.png +0 -0
  24. data/examples/street/av_ramirez.rb +46 -0
  25. data/examples/street/avramirez.geojson +9 -0
  26. data/examples/street/dot.png +0 -0
  27. data/examples/street/download.sh +18 -0
  28. data/examples/street/draw.rb +46 -0
  29. data/examples/street/map.osm +9158 -0
  30. data/examples/street/mark.png +0 -0
  31. data/examples/street/parana.json +100 -0
  32. data/examples/street/parana.rb +30 -0
  33. data/examples/street/parana_areas.png +0 -0
  34. data/examples/street/query.overpass +8 -0
  35. data/examples/street/ramirez.geojson +355 -0
  36. data/examples/street/ramirez_big.geojson +9959 -0
  37. data/examples/street/ramirez_full.geojson +76 -0
  38. data/examples/street/ramirez_full.png +0 -0
  39. data/examples/street/ramirez_gis.png +0 -0
  40. data/examples/street/ramirez_osm.png +0 -0
  41. data/examples/street/ramirez_osm_full.png +0 -0
  42. data/examples/street/ramirez_polyline.png +0 -0
  43. data/examples/street/ramirez_road.png +0 -0
  44. data/examples/street/test_carto_dark.png +0 -0
  45. data/examples/street/test_osm_fr.png +0 -0
  46. data/examples/street/test_polygon.png +0 -0
  47. data/examples/street/tmp/tiles/carto_dark_15_10874_19433.png +0 -0
  48. data/examples/street/tmp/tiles/carto_dark_15_10874_19434.png +0 -0
  49. data/examples/street/tmp/tiles/carto_dark_15_10874_19435.png +0 -0
  50. data/examples/street/tmp/tiles/carto_dark_15_10874_19436.png +0 -0
  51. data/examples/street/tmp/tiles/carto_dark_15_10875_19433.png +0 -0
  52. data/examples/street/tmp/tiles/carto_dark_15_10875_19434.png +0 -0
  53. data/examples/street/tmp/tiles/carto_dark_15_10875_19435.png +0 -0
  54. data/examples/street/tmp/tiles/carto_dark_15_10875_19436.png +0 -0
  55. data/examples/street/tmp/tiles/carto_dark_15_10876_19433.png +0 -0
  56. data/examples/street/tmp/tiles/carto_dark_15_10876_19434.png +0 -0
  57. data/examples/street/tmp/tiles/carto_dark_15_10876_19435.png +0 -0
  58. data/examples/street/tmp/tiles/carto_dark_15_10876_19436.png +0 -0
  59. data/examples/street/tmp/tiles/esri_satellite_15_10874_19433.jpg +0 -0
  60. data/examples/street/tmp/tiles/esri_satellite_15_10874_19434.jpg +0 -0
  61. data/examples/street/tmp/tiles/esri_satellite_15_10874_19435.jpg +0 -0
  62. data/examples/street/tmp/tiles/esri_satellite_15_10874_19436.jpg +0 -0
  63. data/examples/street/tmp/tiles/esri_satellite_15_10875_19433.jpg +0 -0
  64. data/examples/street/tmp/tiles/esri_satellite_15_10875_19434.jpg +0 -0
  65. data/examples/street/tmp/tiles/esri_satellite_15_10875_19435.jpg +0 -0
  66. data/examples/street/tmp/tiles/esri_satellite_15_10875_19436.jpg +0 -0
  67. data/examples/street/tmp/tiles/esri_satellite_15_10876_19433.jpg +0 -0
  68. data/examples/street/tmp/tiles/esri_satellite_15_10876_19434.jpg +0 -0
  69. data/examples/street/tmp/tiles/esri_satellite_15_10876_19435.jpg +0 -0
  70. data/examples/street/tmp/tiles/esri_satellite_15_10876_19436.jpg +0 -0
  71. data/examples/street/tmp/tiles/osm_fr_15_10874_19433.png +0 -0
  72. data/examples/street/tmp/tiles/osm_fr_15_10874_19434.png +0 -0
  73. data/examples/street/tmp/tiles/osm_fr_15_10874_19435.png +0 -0
  74. data/examples/street/tmp/tiles/osm_fr_15_10874_19436.png +0 -0
  75. data/examples/street/tmp/tiles/osm_fr_15_10875_19433.png +0 -0
  76. data/examples/street/tmp/tiles/osm_fr_15_10875_19434.png +0 -0
  77. data/examples/street/tmp/tiles/osm_fr_15_10875_19435.png +0 -0
  78. data/examples/street/tmp/tiles/osm_fr_15_10875_19436.png +0 -0
  79. data/examples/street/tmp/tiles/osm_fr_15_10876_19433.png +0 -0
  80. data/examples/street/tmp/tiles/osm_fr_15_10876_19434.png +0 -0
  81. data/examples/street/tmp/tiles/osm_fr_15_10876_19435.png +0 -0
  82. data/examples/street/tmp/tiles/osm_fr_15_10876_19436.png +0 -0
  83. data/examples/tmp/tiles/15_10871_19430.png +0 -0
  84. data/examples/tmp/tiles/15_10871_19431.png +0 -0
  85. data/examples/tmp/tiles/15_10871_19432.png +0 -0
  86. data/examples/tmp/tiles/15_10871_19433.png +0 -0
  87. data/examples/tmp/tiles/15_10871_19434.png +0 -0
  88. data/examples/tmp/tiles/15_10871_19435.png +0 -0
  89. data/examples/tmp/tiles/15_10872_19430.png +0 -0
  90. data/examples/tmp/tiles/15_10872_19431.png +0 -0
  91. data/examples/tmp/tiles/15_10872_19432.png +0 -0
  92. data/examples/tmp/tiles/15_10872_19433.png +0 -0
  93. data/examples/tmp/tiles/15_10872_19434.png +0 -0
  94. data/examples/tmp/tiles/15_10872_19435.png +0 -0
  95. data/examples/tmp/tiles/15_10873_19430.png +0 -0
  96. data/examples/tmp/tiles/15_10873_19431.png +0 -0
  97. data/examples/tmp/tiles/15_10873_19432.png +0 -0
  98. data/examples/tmp/tiles/15_10873_19433.png +0 -0
  99. data/examples/tmp/tiles/15_10873_19434.png +0 -0
  100. data/examples/tmp/tiles/15_10873_19435.png +0 -0
  101. data/examples/tmp/tiles/15_10874_19430.png +0 -0
  102. data/examples/tmp/tiles/15_10874_19431.png +0 -0
  103. data/examples/tmp/tiles/15_10874_19432.png +0 -0
  104. data/examples/tmp/tiles/15_10874_19433.png +0 -0
  105. data/examples/tmp/tiles/15_10874_19434.png +0 -0
  106. data/examples/tmp/tiles/15_10874_19435.png +0 -0
  107. data/examples/tmp/tiles/15_10875_19430.png +0 -0
  108. data/examples/tmp/tiles/15_10875_19431.png +0 -0
  109. data/examples/tmp/tiles/15_10875_19432.png +0 -0
  110. data/examples/tmp/tiles/15_10875_19433.png +0 -0
  111. data/examples/tmp/tiles/15_10875_19434.png +0 -0
  112. data/examples/tmp/tiles/15_10875_19435.png +0 -0
  113. data/examples/tmp/tiles/15_10876_19430.png +0 -0
  114. data/examples/tmp/tiles/15_10876_19431.png +0 -0
  115. data/examples/tmp/tiles/15_10876_19432.png +0 -0
  116. data/examples/tmp/tiles/15_10876_19433.png +0 -0
  117. data/examples/tmp/tiles/15_10876_19434.png +0 -0
  118. data/examples/tmp/tiles/15_10876_19435.png +0 -0
  119. data/examples/tmp/tiles/15_10877_19430.png +0 -0
  120. data/examples/tmp/tiles/15_10877_19431.png +0 -0
  121. data/examples/tmp/tiles/15_10877_19432.png +0 -0
  122. data/examples/tmp/tiles/15_10877_19433.png +0 -0
  123. data/examples/tmp/tiles/15_10877_19434.png +0 -0
  124. data/examples/tmp/tiles/15_10877_19435.png +0 -0
  125. data/examples/tmp/tiles/7_27_43.png +0 -0
  126. data/examples/tmp/tiles/7_27_44.png +0 -0
  127. data/examples/tmp/tiles/7_27_45.png +0 -0
  128. data/examples/tmp/tiles/7_27_46.png +0 -0
  129. data/examples/tmp/tiles/7_27_47.png +0 -0
  130. data/examples/tmp/tiles/7_27_48.png +0 -0
  131. data/examples/tmp/tiles/7_27_49.png +0 -0
  132. data/examples/tmp/tiles/7_27_50.png +0 -0
  133. data/examples/tmp/tiles/7_28_43.png +0 -0
  134. data/examples/tmp/tiles/7_28_44.png +0 -0
  135. data/examples/tmp/tiles/7_28_45.png +0 -0
  136. data/examples/tmp/tiles/7_28_46.png +0 -0
  137. data/examples/tmp/tiles/7_28_47.png +0 -0
  138. data/examples/tmp/tiles/7_28_48.png +0 -0
  139. data/examples/tmp/tiles/7_28_49.png +0 -0
  140. data/examples/tmp/tiles/7_28_50.png +0 -0
  141. data/examples/tmp/tiles/7_29_43.png +0 -0
  142. data/examples/tmp/tiles/7_29_44.png +0 -0
  143. data/examples/tmp/tiles/7_29_45.png +0 -0
  144. data/examples/tmp/tiles/7_29_46.png +0 -0
  145. data/examples/tmp/tiles/7_29_47.png +0 -0
  146. data/examples/tmp/tiles/7_29_48.png +0 -0
  147. data/examples/tmp/tiles/7_29_49.png +0 -0
  148. data/examples/tmp/tiles/7_29_50.png +0 -0
  149. data/examples/tmp/tiles/7_30_43.png +0 -0
  150. data/examples/tmp/tiles/7_30_44.png +0 -0
  151. data/examples/tmp/tiles/7_30_45.png +0 -0
  152. data/examples/tmp/tiles/7_30_46.png +0 -0
  153. data/examples/tmp/tiles/7_30_47.png +0 -0
  154. data/examples/tmp/tiles/7_30_48.png +0 -0
  155. data/examples/tmp/tiles/7_30_49.png +0 -0
  156. data/examples/tmp/tiles/7_30_50.png +0 -0
  157. data/examples/tmp/tiles/7_31_43.png +0 -0
  158. data/examples/tmp/tiles/7_31_44.png +0 -0
  159. data/examples/tmp/tiles/7_31_45.png +0 -0
  160. data/examples/tmp/tiles/7_31_46.png +0 -0
  161. data/examples/tmp/tiles/7_31_47.png +0 -0
  162. data/examples/tmp/tiles/7_31_48.png +0 -0
  163. data/examples/tmp/tiles/7_31_49.png +0 -0
  164. data/examples/tmp/tiles/7_31_50.png +0 -0
  165. data/examples/tmp/tiles/7_32_43.png +0 -0
  166. data/examples/tmp/tiles/7_32_44.png +0 -0
  167. data/examples/tmp/tiles/7_32_45.png +0 -0
  168. data/examples/tmp/tiles/7_32_46.png +0 -0
  169. data/examples/tmp/tiles/7_32_47.png +0 -0
  170. data/examples/tmp/tiles/7_32_48.png +0 -0
  171. data/examples/tmp/tiles/7_32_49.png +0 -0
  172. data/examples/tmp/tiles/7_32_50.png +0 -0
  173. data/examples/tmp/tiles/7_37_71.png +0 -0
  174. data/examples/tmp/tiles/7_37_72.png +0 -0
  175. data/examples/tmp/tiles/7_37_73.png +0 -0
  176. data/examples/tmp/tiles/7_37_74.png +0 -0
  177. data/examples/tmp/tiles/7_37_75.png +0 -0
  178. data/examples/tmp/tiles/7_37_76.png +0 -0
  179. data/examples/tmp/tiles/7_37_77.png +0 -0
  180. data/examples/tmp/tiles/7_37_78.png +0 -0
  181. data/examples/tmp/tiles/7_37_79.png +0 -0
  182. data/examples/tmp/tiles/7_37_80.png +0 -0
  183. data/examples/tmp/tiles/7_37_81.png +0 -0
  184. data/examples/tmp/tiles/7_37_82.png +0 -0
  185. data/examples/tmp/tiles/7_37_83.png +0 -0
  186. data/examples/tmp/tiles/7_37_84.png +0 -0
  187. data/examples/tmp/tiles/7_37_85.png +0 -0
  188. data/examples/tmp/tiles/7_37_86.png +0 -0
  189. data/examples/tmp/tiles/7_37_87.png +0 -0
  190. data/examples/tmp/tiles/7_38_71.png +0 -0
  191. data/examples/tmp/tiles/7_38_72.png +0 -0
  192. data/examples/tmp/tiles/7_38_73.png +0 -0
  193. data/examples/tmp/tiles/7_38_74.png +0 -0
  194. data/examples/tmp/tiles/7_38_75.png +0 -0
  195. data/examples/tmp/tiles/7_38_76.png +0 -0
  196. data/examples/tmp/tiles/7_38_77.png +0 -0
  197. data/examples/tmp/tiles/7_38_78.png +0 -0
  198. data/examples/tmp/tiles/7_38_79.png +0 -0
  199. data/examples/tmp/tiles/7_38_80.png +0 -0
  200. data/examples/tmp/tiles/7_38_81.png +0 -0
  201. data/examples/tmp/tiles/7_38_82.png +0 -0
  202. data/examples/tmp/tiles/7_38_83.png +0 -0
  203. data/examples/tmp/tiles/7_38_84.png +0 -0
  204. data/examples/tmp/tiles/7_38_85.png +0 -0
  205. data/examples/tmp/tiles/7_38_86.png +0 -0
  206. data/examples/tmp/tiles/7_38_87.png +0 -0
  207. data/examples/tmp/tiles/7_39_71.png +0 -0
  208. data/examples/tmp/tiles/7_39_72.png +0 -0
  209. data/examples/tmp/tiles/7_39_73.png +0 -0
  210. data/examples/tmp/tiles/7_39_74.png +0 -0
  211. data/examples/tmp/tiles/7_39_75.png +0 -0
  212. data/examples/tmp/tiles/7_39_76.png +0 -0
  213. data/examples/tmp/tiles/7_39_77.png +0 -0
  214. data/examples/tmp/tiles/7_39_78.png +0 -0
  215. data/examples/tmp/tiles/7_39_79.png +0 -0
  216. data/examples/tmp/tiles/7_39_80.png +0 -0
  217. data/examples/tmp/tiles/7_39_81.png +0 -0
  218. data/examples/tmp/tiles/7_39_82.png +0 -0
  219. data/examples/tmp/tiles/7_39_83.png +0 -0
  220. data/examples/tmp/tiles/7_39_84.png +0 -0
  221. data/examples/tmp/tiles/7_39_85.png +0 -0
  222. data/examples/tmp/tiles/7_39_86.png +0 -0
  223. data/examples/tmp/tiles/7_39_87.png +0 -0
  224. data/examples/tmp/tiles/7_40_71.png +0 -0
  225. data/examples/tmp/tiles/7_40_72.png +0 -0
  226. data/examples/tmp/tiles/7_40_73.png +0 -0
  227. data/examples/tmp/tiles/7_40_74.png +0 -0
  228. data/examples/tmp/tiles/7_40_75.png +0 -0
  229. data/examples/tmp/tiles/7_40_76.png +0 -0
  230. data/examples/tmp/tiles/7_40_77.png +0 -0
  231. data/examples/tmp/tiles/7_40_78.png +0 -0
  232. data/examples/tmp/tiles/7_40_79.png +0 -0
  233. data/examples/tmp/tiles/7_40_80.png +0 -0
  234. data/examples/tmp/tiles/7_40_81.png +0 -0
  235. data/examples/tmp/tiles/7_40_82.png +0 -0
  236. data/examples/tmp/tiles/7_40_83.png +0 -0
  237. data/examples/tmp/tiles/7_40_84.png +0 -0
  238. data/examples/tmp/tiles/7_40_85.png +0 -0
  239. data/examples/tmp/tiles/7_40_86.png +0 -0
  240. data/examples/tmp/tiles/7_40_87.png +0 -0
  241. data/examples/tmp/tiles/7_41_71.png +0 -0
  242. data/examples/tmp/tiles/7_41_72.png +0 -0
  243. data/examples/tmp/tiles/7_41_73.png +0 -0
  244. data/examples/tmp/tiles/7_41_74.png +0 -0
  245. data/examples/tmp/tiles/7_41_75.png +0 -0
  246. data/examples/tmp/tiles/7_41_76.png +0 -0
  247. data/examples/tmp/tiles/7_41_77.png +0 -0
  248. data/examples/tmp/tiles/7_41_78.png +0 -0
  249. data/examples/tmp/tiles/7_41_79.png +0 -0
  250. data/examples/tmp/tiles/7_41_80.png +0 -0
  251. data/examples/tmp/tiles/7_41_81.png +0 -0
  252. data/examples/tmp/tiles/7_41_82.png +0 -0
  253. data/examples/tmp/tiles/7_41_83.png +0 -0
  254. data/examples/tmp/tiles/7_41_84.png +0 -0
  255. data/examples/tmp/tiles/7_41_85.png +0 -0
  256. data/examples/tmp/tiles/7_41_86.png +0 -0
  257. data/examples/tmp/tiles/7_41_87.png +0 -0
  258. data/examples/tmp/tiles/7_42_71.png +0 -0
  259. data/examples/tmp/tiles/7_42_72.png +0 -0
  260. data/examples/tmp/tiles/7_42_73.png +0 -0
  261. data/examples/tmp/tiles/7_42_74.png +0 -0
  262. data/examples/tmp/tiles/7_42_75.png +0 -0
  263. data/examples/tmp/tiles/7_42_76.png +0 -0
  264. data/examples/tmp/tiles/7_42_77.png +0 -0
  265. data/examples/tmp/tiles/7_42_78.png +0 -0
  266. data/examples/tmp/tiles/7_42_79.png +0 -0
  267. data/examples/tmp/tiles/7_42_80.png +0 -0
  268. data/examples/tmp/tiles/7_42_81.png +0 -0
  269. data/examples/tmp/tiles/7_42_82.png +0 -0
  270. data/examples/tmp/tiles/7_42_83.png +0 -0
  271. data/examples/tmp/tiles/7_42_84.png +0 -0
  272. data/examples/tmp/tiles/7_42_85.png +0 -0
  273. data/examples/tmp/tiles/7_42_86.png +0 -0
  274. data/examples/tmp/tiles/7_42_87.png +0 -0
  275. data/examples/tmp/tiles/7_43_71.png +0 -0
  276. data/examples/tmp/tiles/7_43_72.png +0 -0
  277. data/examples/tmp/tiles/7_43_73.png +0 -0
  278. data/examples/tmp/tiles/7_43_74.png +0 -0
  279. data/examples/tmp/tiles/7_43_75.png +0 -0
  280. data/examples/tmp/tiles/7_43_76.png +0 -0
  281. data/examples/tmp/tiles/7_43_77.png +0 -0
  282. data/examples/tmp/tiles/7_43_78.png +0 -0
  283. data/examples/tmp/tiles/7_43_79.png +0 -0
  284. data/examples/tmp/tiles/7_43_80.png +0 -0
  285. data/examples/tmp/tiles/7_43_81.png +0 -0
  286. data/examples/tmp/tiles/7_43_82.png +0 -0
  287. data/examples/tmp/tiles/7_43_83.png +0 -0
  288. data/examples/tmp/tiles/7_43_84.png +0 -0
  289. data/examples/tmp/tiles/7_43_85.png +0 -0
  290. data/examples/tmp/tiles/7_43_86.png +0 -0
  291. data/examples/tmp/tiles/7_43_87.png +0 -0
  292. data/examples/tmp/tiles/7_44_71.png +0 -0
  293. data/examples/tmp/tiles/7_44_72.png +0 -0
  294. data/examples/tmp/tiles/7_44_73.png +0 -0
  295. data/examples/tmp/tiles/7_44_74.png +0 -0
  296. data/examples/tmp/tiles/7_44_75.png +0 -0
  297. data/examples/tmp/tiles/7_44_76.png +0 -0
  298. data/examples/tmp/tiles/7_44_77.png +0 -0
  299. data/examples/tmp/tiles/7_44_78.png +0 -0
  300. data/examples/tmp/tiles/7_44_79.png +0 -0
  301. data/examples/tmp/tiles/7_44_80.png +0 -0
  302. data/examples/tmp/tiles/7_44_81.png +0 -0
  303. data/examples/tmp/tiles/7_44_82.png +0 -0
  304. data/examples/tmp/tiles/7_44_83.png +0 -0
  305. data/examples/tmp/tiles/7_44_84.png +0 -0
  306. data/examples/tmp/tiles/7_44_85.png +0 -0
  307. data/examples/tmp/tiles/7_44_86.png +0 -0
  308. data/examples/tmp/tiles/7_44_87.png +0 -0
  309. data/examples/tmp/tiles/7_75_64.png +0 -0
  310. data/examples/tmp/tiles/7_75_65.png +0 -0
  311. data/examples/tmp/tiles/7_75_66.png +0 -0
  312. data/examples/tmp/tiles/7_75_67.png +0 -0
  313. data/examples/tmp/tiles/7_75_68.png +0 -0
  314. data/examples/tmp/tiles/7_76_64.png +0 -0
  315. data/examples/tmp/tiles/7_76_65.png +0 -0
  316. data/examples/tmp/tiles/7_76_66.png +0 -0
  317. data/examples/tmp/tiles/7_76_67.png +0 -0
  318. data/examples/tmp/tiles/7_76_68.png +0 -0
  319. data/examples/tmp/tiles/7_77_64.png +0 -0
  320. data/examples/tmp/tiles/7_77_65.png +0 -0
  321. data/examples/tmp/tiles/7_77_66.png +0 -0
  322. data/examples/tmp/tiles/7_77_67.png +0 -0
  323. data/examples/tmp/tiles/7_77_68.png +0 -0
  324. data/lib/gd/gis/basemap.rb +116 -9
  325. data/lib/gd/gis/geometry.rb +40 -0
  326. data/lib/gd/gis/layer_lines.rb +36 -0
  327. data/lib/gd/gis/layer_points.rb +31 -1
  328. data/lib/gd/gis/layer_polygons.rb +38 -0
  329. data/lib/gd/gis/map.rb +53 -33
  330. data/lib/gd/gis/projection.rb +14 -0
  331. metadata +339 -17
  332. /data/examples/{fonts → street/fonts}/DejaVu Fonts License.txt +0 -0
  333. /data/examples/{fonts → street/fonts}/DejaVuSans-Bold.ttf +0 -0
  334. /data/examples/{fonts → street/fonts}/DejaVuSans-BoldOblique.ttf +0 -0
  335. /data/examples/{fonts → street/fonts}/DejaVuSans-ExtraLight.ttf +0 -0
  336. /data/examples/{fonts → street/fonts}/DejaVuSans-Oblique.ttf +0 -0
  337. /data/examples/{fonts → street/fonts}/DejaVuSans.ttf +0 -0
  338. /data/examples/{fonts → street/fonts}/DejaVuSansCondensed-Bold.ttf +0 -0
  339. /data/examples/{fonts → street/fonts}/DejaVuSansCondensed-BoldOblique.ttf +0 -0
  340. /data/examples/{fonts → street/fonts}/DejaVuSansCondensed-Oblique.ttf +0 -0
  341. /data/examples/{fonts → street/fonts}/DejaVuSansCondensed.ttf +0 -0
Binary file
@@ -0,0 +1,100 @@
1
+ {
2
+ "type": "FeatureCollection",
3
+ "features": [
4
+ {
5
+ "type": "Feature",
6
+ "properties": {
7
+ "nombre": "Plaza de Mayo",
8
+ "tipo": "plaza"
9
+ },
10
+ "geometry": {
11
+ "type": "Polygon",
12
+ "coordinates": [
13
+ [
14
+ [-60.5235, -31.7310],
15
+ [-60.5232, -31.7315],
16
+ [-60.5225, -31.7312],
17
+ [-60.5228, -31.7307],
18
+ [-60.5235, -31.7310]
19
+ ]
20
+ ]
21
+ }
22
+ },
23
+ {
24
+ "type": "Feature",
25
+ "properties": {
26
+ "nombre": "Plaza Belgrano",
27
+ "tipo": "plaza"
28
+ },
29
+ "geometry": {
30
+ "type": "Polygon",
31
+ "coordinates": [
32
+ [
33
+ [-60.5260, -31.7330],
34
+ [-60.5255, -31.7335],
35
+ [-60.5248, -31.7332],
36
+ [-60.5253, -31.7327],
37
+ [-60.5260, -31.7330]
38
+ ]
39
+ ]
40
+ }
41
+ },
42
+ {
43
+ "type": "Feature",
44
+ "properties": {
45
+ "nombre": "Parque Urquiza",
46
+ "tipo": "parque"
47
+ },
48
+ "geometry": {
49
+ "type": "Polygon",
50
+ "coordinates": [
51
+ [
52
+ [-60.5180, -31.7400],
53
+ [-60.5160, -31.7410],
54
+ [-60.5150, -31.7390],
55
+ [-60.5170, -31.7380],
56
+ [-60.5180, -31.7400]
57
+ ]
58
+ ]
59
+ }
60
+ },
61
+ {
62
+ "type": "Feature",
63
+ "properties": {
64
+ "nombre": "Paseo del Buen Pastor",
65
+ "tipo": "paseo"
66
+ },
67
+ "geometry": {
68
+ "type": "Polygon",
69
+ "coordinates": [
70
+ [
71
+ [-60.5350, -31.7420],
72
+ [-60.5340, -31.7430],
73
+ [-60.5330, -31.7425],
74
+ [-60.5335, -31.7415],
75
+ [-60.5350, -31.7420]
76
+ ]
77
+ ]
78
+ }
79
+ },
80
+ {
81
+ "type": "Feature",
82
+ "properties": {
83
+ "nombre": "Plaza Alvear",
84
+ "tipo": "plaza"
85
+ },
86
+ "geometry": {
87
+ "type": "Polygon",
88
+ "coordinates": [
89
+ [
90
+ [-60.5290, -31.7360],
91
+ [-60.5285, -31.7365],
92
+ [-60.5278, -31.7362],
93
+ [-60.5283, -31.7357],
94
+ [-60.5290, -31.7360]
95
+ ]
96
+ ]
97
+ }
98
+ }
99
+ ]
100
+ }
@@ -0,0 +1,30 @@
1
+ require "gd/gis"
2
+
3
+ BBOX = [-60.53, -31.77, -60.51, -31.74]
4
+
5
+ map = GD::GIS::Map.new(
6
+ bbox: BBOX,
7
+ zoom: 15,
8
+ basemap: :carto_dark
9
+ )
10
+
11
+ # Polígono simple (un cuadrado en Paraná)
12
+ polygon = [
13
+ [-60.525, -31.750],
14
+ [-60.520, -31.750],
15
+ [-60.520, -31.755],
16
+ [-60.525, -31.755],
17
+ [-60.525, -31.750]
18
+ ]
19
+
20
+ map.add_polygons(
21
+ [polygon],
22
+ fill: [255, 140, 0, 120], # naranja semitransparente
23
+ stroke: [0, 0, 0, 200], # borde negro
24
+ width: 2
25
+ )
26
+
27
+ map.render
28
+ map.save("test_carto_dark.png")
29
+
30
+ puts "Generated test_carto_dark.png"
Binary file
@@ -0,0 +1,8 @@
1
+ [out:json][timeout:25];
2
+
3
+ (
4
+ way["highway"~"primary|secondary|trunk"]
5
+ (-31.79, -60.56, -31.70, -60.52);
6
+ );
7
+
8
+ out geom;
@@ -0,0 +1,355 @@
1
+ {
2
+ "type": "FeatureCollection",
3
+ "features": [
4
+ {
5
+ "type": "Feature",
6
+ "properties": {
7
+ "name": "Avenida Ramírez"
8
+ },
9
+ "geometry": {
10
+ "type": "LineString",
11
+ "coordinates": [
12
+ [-60.5202357, -31.7357413],
13
+ [-60.5202847, -31.7359806],
14
+ [-60.5203288, -31.7361942],
15
+ [-60.5203702, -31.7363982],
16
+ [-60.5204134, -31.7366078],
17
+ [-60.5204601, -31.7368324],
18
+ [-60.5205024, -31.7370365],
19
+ [-60.5205462, -31.7372512],
20
+ [-60.5205897, -31.7374618],
21
+ [-60.5206341, -31.7376767],
22
+ [-60.5206789, -31.7378921],
23
+ [-60.5207234, -31.7381069],
24
+ [-60.5207685, -31.7383228],
25
+ [-60.5208129, -31.7385373],
26
+ [-60.5208576, -31.7387517],
27
+ [-60.5209034, -31.7389687],
28
+ [-60.5209482, -31.7391831],
29
+ [-60.5209936, -31.7393997],
30
+ [-60.5210394, -31.7396157],
31
+ [-60.5210852, -31.7398312],
32
+ [-60.5211309, -31.7400468],
33
+ [-60.5211768, -31.7402629],
34
+ [-60.5212231, -31.7404795],
35
+ [-60.5212695, -31.7406952],
36
+ [-60.5213162, -31.7409121],
37
+ [-60.5213628, -31.7411285],
38
+ [-60.5214098, -31.7413455],
39
+ [-60.5214569, -31.7415627],
40
+ [-60.5215041, -31.7417794],
41
+ [-60.5215513, -31.7419967],
42
+ [-60.5215986, -31.7422135],
43
+ [-60.5216462, -31.7424308],
44
+ [-60.5216937, -31.7426476],
45
+ [-60.5217413, -31.7428645],
46
+ [-60.5217891, -31.7430819],
47
+ [-60.5218371, -31.7432992],
48
+ [-60.5218851, -31.7435166],
49
+ [-60.5219334, -31.7437341],
50
+ [-60.5219818, -31.7439517],
51
+ [-60.5220302, -31.7441692],
52
+ [-60.5220788, -31.7443867],
53
+ [-60.5221275, -31.7446042],
54
+ [-60.5221764, -31.7448218],
55
+ [-60.5222253, -31.7450394],
56
+ [-60.5222745, -31.7452571],
57
+ [-60.5223236, -31.7454747],
58
+ [-60.5223729, -31.7456924],
59
+ [-60.5224224, -31.7459101],
60
+ [-60.5224719, -31.7461278],
61
+ [-60.5225215, -31.7463455],
62
+ [-60.5225713, -31.7465633],
63
+ [-60.5226212, -31.7467811],
64
+ [-60.5226711, -31.7469988],
65
+ [-60.5227212, -31.7472166],
66
+ [-60.5227714, -31.7474344],
67
+ [-60.5228217, -31.7476522],
68
+ [-60.5228721, -31.74787],
69
+ [-60.5229225, -31.7480878],
70
+ [-60.5229731, -31.7483057],
71
+ [-60.5230238, -31.7485236],
72
+ [-60.5230746, -31.7487415],
73
+ [-60.5231255, -31.7489594],
74
+ [-60.5231766, -31.7491773],
75
+ [-60.5232277, -31.7493952],
76
+ [-60.5232789, -31.7496131],
77
+ [-60.5233302, -31.749831],
78
+ [-60.5233817, -31.7500489],
79
+ [-60.5234332, -31.7502668],
80
+ [-60.5234849, -31.7504847],
81
+ [-60.5235366, -31.7507026],
82
+ [-60.5235885, -31.7509205],
83
+ [-60.5236404, -31.7511384],
84
+ [-60.5236925, -31.7513563],
85
+ [-60.5237447, -31.7515742],
86
+ [-60.5237969, -31.7517921],
87
+ [-60.5238493, -31.75201],
88
+ [-60.5239018, -31.7522279],
89
+ [-60.5239544, -31.7524458],
90
+ [-60.5240071, -31.7526637],
91
+ [-60.5240599, -31.7528816],
92
+ [-60.5241128, -31.7530995],
93
+ [-60.5241658, -31.7533174],
94
+ [-60.5242189, -31.7535353],
95
+ [-60.5242721, -31.7537532],
96
+ [-60.5243255, -31.7539711],
97
+ [-60.5243789, -31.754189],
98
+ [-60.5244325, -31.7544069],
99
+ [-60.5244861, -31.7546248],
100
+ [-60.5245399, -31.7548427],
101
+ [-60.5245937, -31.7550606],
102
+ [-60.5246477, -31.7552785],
103
+ [-60.5247017, -31.7554964],
104
+ [-60.5247559, -31.7557143],
105
+ [-60.5248102, -31.7559322],
106
+ [-60.5248645, -31.7561501],
107
+ [-60.524919, -31.756368],
108
+ [-60.5249735, -31.7565859],
109
+ [-60.5250282, -31.7568038],
110
+ [-60.5250829, -31.7570217],
111
+ [-60.5251378, -31.7572396],
112
+ [-60.5251927, -31.7574575],
113
+ [-60.5252478, -31.7576754],
114
+ [-60.5253029, -31.7578933],
115
+ [-60.5253582, -31.7581112],
116
+ [-60.5254135, -31.7583291],
117
+ [-60.525469, -31.758547],
118
+ [-60.5255245, -31.7587649],
119
+ [-60.5255802, -31.7589828],
120
+ [-60.5256359, -31.7592007],
121
+ [-60.5256918, -31.7594186],
122
+ [-60.5257477, -31.7596365],
123
+ [-60.5258038, -31.7598544],
124
+ [-60.5258599, -31.7600723],
125
+ [-60.5259162, -31.7602902],
126
+ [-60.5259725, -31.7605081],
127
+ [-60.526029, -31.760726],
128
+ [-60.5260855, -31.7609439],
129
+ [-60.5261421, -31.7611618],
130
+ [-60.5261989, -31.7613797],
131
+ [-60.5262557, -31.7615976],
132
+ [-60.5263126, -31.7618155],
133
+ [-60.5263697, -31.7620334],
134
+ [-60.5264268, -31.7622513],
135
+ [-60.526484, -31.7624692],
136
+ [-60.5265414, -31.7626871],
137
+ [-60.5265988, -31.762905],
138
+ [-60.5266563, -31.7631229],
139
+ [-60.5267139, -31.7633408],
140
+ [-60.5267717, -31.7635587],
141
+ [-60.5268295, -31.7637766],
142
+ [-60.5268874, -31.7639945],
143
+ [-60.5269455, -31.7642124],
144
+ [-60.5270036, -31.7644303],
145
+ [-60.5270619, -31.7646482],
146
+ [-60.5271202, -31.7648661],
147
+ [-60.5271787, -31.765084],
148
+ [-60.5272372, -31.7653019],
149
+ [-60.5272958, -31.7655198],
150
+ [-60.5273545, -31.7657377],
151
+ [-60.5274134, -31.7659556],
152
+ [-60.5274723, -31.7661735],
153
+ [-60.5275313, -31.7663914],
154
+ [-60.5275905, -31.7666093],
155
+ [-60.5276497, -31.7668272],
156
+ [-60.527709, -31.7670451],
157
+ [-60.5277685, -31.767263],
158
+ [-60.527828, -31.7674809],
159
+ [-60.5278876, -31.7676988],
160
+ [-60.5279474, -31.7679167],
161
+ [-60.5280072, -31.7681346],
162
+ [-60.5280671, -31.7683525],
163
+ [-60.5281272, -31.7685704],
164
+ [-60.5281873, -31.7687883],
165
+ [-60.5282476, -31.7690062],
166
+ [-60.5283079, -31.7692241],
167
+ [-60.5283684, -31.769442],
168
+ [-60.5284289, -31.7696599],
169
+ [-60.5284896, -31.7698778],
170
+ [-60.5285503, -31.7700957],
171
+ [-60.5286112, -31.7703136],
172
+ [-60.5286722, -31.7705315],
173
+ [-60.5287332, -31.7707494],
174
+ [-60.5287944, -31.7709673],
175
+ [-60.5288556, -31.7711852],
176
+ [-60.528917, -31.7714031],
177
+ [-60.5289784, -31.771621],
178
+ [-60.5290399, -31.7718389],
179
+ [-60.5291016, -31.7720568],
180
+ [-60.5291633, -31.7722747],
181
+ [-60.5292252, -31.7724926],
182
+ [-60.5292871, -31.7727105],
183
+ [-60.5293491, -31.7729284],
184
+ [-60.5294113, -31.7731463],
185
+ [-60.5294735, -31.7733642],
186
+ [-60.5295359, -31.7735821],
187
+ [-60.5295983, -31.7738],
188
+ [-60.5296608, -31.7740179],
189
+ [-60.5297235, -31.7742358],
190
+ [-60.5297862, -31.7744537],
191
+ [-60.529849, -31.7746716],
192
+ [-60.5299119, -31.7748895],
193
+ [-60.5299749, -31.7751074],
194
+ [-60.530038, -31.7753253],
195
+ [-60.5301012, -31.7755432],
196
+ [-60.5301645, -31.7757611],
197
+ [-60.5302278, -31.775979],
198
+ [-60.5302913, -31.7761969],
199
+ [-60.5303548, -31.7764148],
200
+ [-60.5304185, -31.7766327],
201
+ [-60.5304822, -31.7768506],
202
+ [-60.530546, -31.7770685],
203
+ [-60.5306099, -31.7772864],
204
+ [-60.5306739, -31.7775043],
205
+ [-60.530738, -31.7777222],
206
+ [-60.5308022, -31.7779401],
207
+ [-60.5308665, -31.778158],
208
+ [-60.5309309, -31.7783759],
209
+ [-60.5309953, -31.7785938],
210
+ [-60.5310599, -31.7788117],
211
+ [-60.5311245, -31.7790296],
212
+ [-60.5311893, -31.7792475],
213
+ [-60.5312541, -31.7794654],
214
+ [-60.531319, -31.7796833],
215
+ [-60.531384, -31.7799012],
216
+ [-60.5314491, -31.7801191],
217
+ [-60.5315143, -31.780337],
218
+ [-60.5315796, -31.7805549],
219
+ [-60.531645, -31.7807728],
220
+ [-60.5317105, -31.7809907],
221
+ [-60.531776, -31.7812086],
222
+ [-60.5318417, -31.7814265],
223
+ [-60.5319074, -31.7816444],
224
+ [-60.5319733, -31.7818623],
225
+ [-60.5320392, -31.7820802],
226
+ [-60.5321052, -31.7822981],
227
+ [-60.5321713, -31.782516],
228
+ [-60.5322375, -31.7827339],
229
+ [-60.5323038, -31.7829518],
230
+ [-60.5323701, -31.7831697],
231
+ [-60.5324366, -31.7833876],
232
+ [-60.5325031, -31.7836055],
233
+ [-60.5325697, -31.7838234],
234
+ [-60.5326364, -31.7840413],
235
+ [-60.5327032, -31.7842592],
236
+ [-60.5327701, -31.7844771],
237
+ [-60.532837, -31.784695],
238
+ [-60.5329041, -31.7849129],
239
+ [-60.5329712, -31.7851308],
240
+ [-60.5330384, -31.7853487],
241
+ [-60.5331057, -31.7855666],
242
+ [-60.5331731, -31.7857845],
243
+ [-60.5332406, -31.7860024],
244
+ [-60.5333081, -31.7862203],
245
+ [-60.5333758, -31.7864382],
246
+ [-60.5334435, -31.7866561],
247
+ [-60.5335113, -31.786874],
248
+ [-60.5335792, -31.7870919],
249
+ [-60.5336472, -31.7873098],
250
+ [-60.5337153, -31.7875277],
251
+ [-60.5337834, -31.7877456],
252
+ [-60.5338517, -31.7879635],
253
+ [-60.53392, -31.7881814],
254
+ [-60.5339885, -31.7883993],
255
+ [-60.534057, -31.7886172],
256
+ [-60.5341256, -31.7888351],
257
+ [-60.5341943, -31.789053],
258
+ [-60.5342631, -31.7892709],
259
+ [-60.5343319, -31.7894888],
260
+ [-60.5344009, -31.7897067],
261
+ [-60.5344699, -31.7899246],
262
+ [-60.5345391, -31.7901425],
263
+ [-60.5346083, -31.7903604],
264
+ [-60.5346776, -31.7905783],
265
+ [-60.534747, -31.7907962],
266
+ [-60.5348165, -31.7910141],
267
+ [-60.534886, -31.791232],
268
+ [-60.5349557, -31.7914499],
269
+ [-60.5350254, -31.7916678],
270
+ [-60.5350952, -31.7918857],
271
+ [-60.5351651, -31.7921036],
272
+ [-60.5352351, -31.7923215],
273
+ [-60.5353051, -31.7925394],
274
+ [-60.5353753, -31.7927573],
275
+ [-60.5354455, -31.7929752],
276
+ [-60.5355158, -31.7931931],
277
+ [-60.5355862, -31.793411],
278
+ [-60.5356567, -31.7936289],
279
+ [-60.5357272, -31.7938468],
280
+ [-60.5357979, -31.7940647],
281
+ [-60.5358686, -31.7942826],
282
+ [-60.5359394, -31.7945005],
283
+ [-60.5360103, -31.7947184],
284
+ [-60.5360813, -31.7949363],
285
+ [-60.5361523, -31.7951542],
286
+ [-60.5362235, -31.7953721],
287
+ [-60.5362947, -31.79559],
288
+ [-60.536366, -31.7958079],
289
+ [-60.5364374, -31.7960258],
290
+ [-60.5365089, -31.7962437],
291
+ [-60.5365804, -31.7964616],
292
+ [-60.5366521, -31.7966795],
293
+ [-60.5367238, -31.7968974],
294
+ [-60.5367956, -31.7971153],
295
+ [-60.5368675, -31.7973332],
296
+ [-60.5369395, -31.7975511],
297
+ [-60.5370116, -31.797769],
298
+ [-60.5370837, -31.7979869],
299
+ [-60.5371559, -31.7982048],
300
+ [-60.5372282, -31.7984227],
301
+ [-60.5373006, -31.7986406],
302
+ [-60.5373731, -31.7988585],
303
+ [-60.5374456, -31.7990764],
304
+ [-60.5375183, -31.7992943],
305
+ [-60.537591, -31.7995122],
306
+ [-60.5376638, -31.7997301],
307
+ [-60.5377367, -31.799948],
308
+ [-60.5378097, -31.8001659],
309
+ [-60.5378827, -31.8003838],
310
+ [-60.5379559, -31.8006017],
311
+ [-60.5380291, -31.8008196],
312
+ [-60.5381024, -31.8010375],
313
+ [-60.5381758, -31.8012554],
314
+ [-60.5382493, -31.8014733],
315
+ [-60.5383228, -31.8016912],
316
+ [-60.5383965, -31.8019091],
317
+ [-60.5384702, -31.802127],
318
+ [-60.538544, -31.8023449],
319
+ [-60.5386179, -31.8025628],
320
+ [-60.5386919, -31.8027807],
321
+ [-60.5387659, -31.8029986],
322
+ [-60.5388401, -31.8032165],
323
+ [-60.5389143, -31.8034344],
324
+ [-60.5389886, -31.8036523],
325
+ [-60.539063, -31.8038702],
326
+ [-60.5391375, -31.8040881],
327
+ [-60.539212, -31.804306],
328
+ [-60.5392867, -31.8045239],
329
+ [-60.5393614, -31.8047418],
330
+ [-60.5394362, -31.8049597],
331
+ [-60.5395111, -31.8051776],
332
+ [-60.5395861, -31.8053955],
333
+ [-60.5396611, -31.8056134],
334
+ [-60.5397363, -31.8058313],
335
+ [-60.5398115, -31.8060492],
336
+ [-60.5398868, -31.8062671],
337
+ [-60.5399622, -31.806485],
338
+ [-60.5400377, -31.8067029],
339
+ [-60.5401132, -31.8069208],
340
+ [-60.5401889, -31.8071387],
341
+ [-60.5402646, -31.8073566],
342
+ [-60.5403404, -31.8075745],
343
+ [-60.5404163, -31.8077924],
344
+ [-60.5404923, -31.8080103],
345
+ [-60.5405683, -31.8082282],
346
+ [-60.5406445, -31.8084461],
347
+ [-60.5407207, -31.808664],
348
+ [-60.540797, -31.8088819],
349
+ [-60.5408734, -31.8090998],
350
+ [-60.5409499, -31.8093177]
351
+ ]
352
+ }
353
+ }
354
+ ]
355
+ }