Size: 2303
Comment: Serving NAIP imagery through tilecache/TMS
|
Size: 2571
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 81: | Line 81: |
Another test server: http://cube.telascience.org/osm/oltest.html?zoom=13&lat=44.9704&lon=-93.28579&layers=B0000T, that'd be configured: {{{ slippymap.custom_tile_source_1.name=NAIP slippymap.custom_tile_source_1.url=http://cube.telascience.org:8000/naip/ }}} |
Contents
Aerial photography
The National Park Service has a data clearing house for New Mexico national park GIS information, including DOQs for various national park-containing areas of New Mexico (including White Sands National Monument). The DOQs are in MrSID format.
NAIP imagery with Mapserver, tilecache, and JOSM
MapServer
UNM MapServer is needed to reproject from EPSG:4326 to EPSG:900913 (Google Mercator) projection.
MAP SIZE 256 256 TRANSPARENT TRUE OUTPUTFORMAT NAME PNG DRIVER 'GD/PNG' MIMETYPE 'image/png' IMAGEMODE RGBA EXTENSION "png" TRANSPARENT ON FORMATOPTION "INTERLACE=OFF" END WEB IMAGEPATH "/var/run/mapserv" METADATA wms_srs "epsg:4326 epsg:900913" END TEMPLATE "/path/to/web_template.html" END STATUS ON PROJECTION "init=epsg:900913" END LAYER NAME 'naip1m' TYPE RASTER STATUS DEFAULT CONNECTION "http://isse.cr.usgs.gov/ArcGIS/services/Combined/USGS_EDC_Ortho_NAIP/MapServer/WMSServer?" CONNECTIONTYPE WMS PROJECTION "init=epsg:4326" END METADATA "wms_name" "0" "wms_server_version" "1.1.1" "wms_format" "image/jpeg" END END END
tilecache
tilecache takes converts TMS requests (made by Mercartor, JOSM, Potlatch) and turns them into WMS requests, serviced by the custom Mapserver instance we setup above.
[naip] type=WMS url=http://hypercube.telascience.org/cgi-bin/mapserv?map=/home/iandees/mapserver/naip.map& extension=png layers=naip1m bbox=-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892 srs=EPSG:900913 metatile=yes levels=20 tms_type=google
JOSM
[22:33:24] <iandees_> so if you open up ~/.josm/preferences and add the following two lines:
slippymap.custom_tile_source_1.name=NAIP slippymap.custom_tile_source_1.url=http://hypercube.telascience.org/tiles/1.0.0/naip/
Another test server: http://cube.telascience.org/osm/oltest.html?zoom=13&lat=44.9704&lon=-93.28579&layers=B0000T, that'd be configured:
slippymap.custom_tile_source_1.name=NAIP slippymap.custom_tile_source_1.url=http://cube.telascience.org:8000/naip/