User Tools

Site Tools


code:work:lvisf:2021:rtp:server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
code:work:lvisf:2021:rtp:server [2022/02/02 22:13] – [Viewing local tiles] davidcode:work:lvisf:2021:rtp:server [2022/02/02 22:39] (current) – [Subdivisions] david
Line 520: Line 520:
 If you want a smaller **pbf** file which should take less time to ingest, you can grab the subdivisions here: If you want a smaller **pbf** file which should take less time to ingest, you can grab the subdivisions here:
   * [[https://download.geofabrik.de/]]  <- Get smaller PBF files here! :!:   * [[https://download.geofabrik.de/]]  <- Get smaller PBF files here! :!:
 +
 +<code>
 +time osm2pgsql -d gis --create --slim  -G --hstore --tag-transform-script ~/src/openstreetmap-carto/openstreetmap-carto.lua -C 2500 --number-processes 16 -S ~/src/openstreetmap-carto/openstreetmap-carto.style ~/data/greenland-latest.osm.pbf
 +time osm2pgsql -d gis --append --slim  -G --hstore --tag-transform-script ~/src/openstreetmap-carto/openstreetmap-carto.lua -C 2500 --number-processes 16 -S ~/src/openstreetmap-carto/openstreetmap-carto.style ~/data/antarctica-latest.osm.pbf
 +</code>
  
  
Line 634: Line 639:
   * Try our locally hosted map now!  [[http://10.4.1.10/rtp_leaflet.html]]   * Try our locally hosted map now!  [[http://10.4.1.10/rtp_leaflet.html]]
  
-Put this into **leaflet.html** in your html folder +  - Put this into **leaflet.html** in your html folder <code html>
- +
-<code html>+
 <!DOCTYPE HTML> <!DOCTYPE HTML>
 <html lang="en"> <html lang="en">
Line 677: Line 680:
   </body>   </body>
 </html> </html>
 +</code>
 +  - And modify the line that renders the tile layer with this line <code>
 +L.tileLayer('http://localhost/hot/{z}/{x}/{y}.png', {
 </code> </code>
code/work/lvisf/2021/rtp/server.1643840013.txt.gz · Last modified: 2022/02/02 22:13 by david