Coder Social home page Coder Social logo

osmcp-tiles's Introduction

OSMCP-Tiles

A handful of scripts for managing the OSMCP TileCache.

The OpenStreetMap platform relies on a Google-style tile cache. 
The "View" bit is based on OpenLayers and _could_ directly hit 
the WMS services provided by The National Map. But the "Edit" bit
is based on Potlatch2 and can only use a Google-style cache.

You could use something like Whoots to trick Potlatch2 into thinking 
a WMS is a tile cache but it's really slow. For that matter, you could
use tcr.cgi below to do the same thing :P

Instead of a simple redirect, we are using TileCache to build local caches.
TileCache seems to best run as FastCGI on our servers. There may be other
ways to speed up the cache.

Most of these scripts are geared towards managing the caches.

Right now, there are four caches:

TNM - The National Map Vector Basemap

  http://navigator.er.usgs.gov/tiles/tcr.cgi/$z/$x/$y.png

  Uses tcr.cgi to switch between the TNM Small Scale cache and the 
  locally managed cache:

    http://raster1.nationalmap.gov/ArcGIS/rest/services/TNM_Small_Scale_Imagery/MapServer
    http://raster.nationalmap.gov/ArcGIS/rest/services/TNM_Large_Scale_Imagery/MapServer

NAIP - High Resoloution Aerial Imagery

  http://navigator.er.usgs.gov/tiles/tilecache.cgi/1.0.0/naip/$z/$x/$y
  
  JPEG cache based on:
  
    http://raster.nationalmap.gov/ArcGIS/rest/services/TNM_Large_Scale_Imagery_Overlay/MapServer
    
DRG - Scanned Topographic Quads

  http://navigator.er.usgs.gov/tiles/tilecache.cgi/1.0.0/drg/$z/$x/$y
  
  PNG8 cache based on:
  
    http://raster.nationalmap.gov/ArcGIS/rest/services/DRG/TNM_Digital_Raster_Graphics/MapServer
    
IDX - Quad Index
 
  http://navigator.er.usgs.gov/tiles/tilecache.cgi/1.0.0/idx/$z/$x/$y
  
  PNG8 cache based on:
  
    http://services.nationalmap.gov/ArcGIS/rest/services/map_indices/MapServer
  
  
  

osmcp-tiles's People

Contributors

ebwolf avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.