[Talk-us] Fixing shorelines

Phil! Gold phil_g at pobox.com
Fri Dec 14 15:49:02 GMT 2012


* Jeff Meyer <jeff at gwhat.org> [2012-12-13 12:58 -0800]:
> On Thu, Dec 13, 2012 at 11:23 AM, Phil! Gold <phil_g at pobox.com> wrote:
> > I use tilestache to go between
> > JOSM's tile underlays and the ArcGIS REST interface).
> 
> Do you have a pointer to any docs of how to do this?

It's pretty simple.  You use tilestache's URL template provider to proxy
requests to the REST server.  It works as long as the server supports the
web mercator projection, which might be under any of the SRIDs 900913,
102113, 102100, 3785, or 3857.  (The last is the current official code
from EPSG.)  Here's what I use for Anne Arundel County's orthoimagery:

{
  "layers": {
    "AAOrtho2010": {
      "provider": {
        "name": "url template",
        "template": "http://gis-world.aacounty.org/ArcGIS/rest/services/Ortho2010/MapServer/export?f=image&bboxSR=102113&bbox=$xmin,$ymin,$xmax,$ymax&size=$width,$height&format=png24"
      },
      "preview": {
        "lat": 38.974,
        "lon": -76.595,
        "zoom": 10
      }
    }
  }
}

For their vector-based data, I add `transparent=true` so I can overlay it
on aerial imagery:

    "AABasemap": {
      "provider": {
        "name": "url template",
        "template": "http://gis-world.aacounty.org/ArcGIS/rest/services/Basemap/MapServer/export?f=image&bboxSR=102113&imageSR=102113&transparent=true&bbox=$xmin,$ymin,$xmax,$ymax&size=$width,$height&format=png"
      },
    }



More information about the Talk-us mailing list