Skip to content

Instantly share code, notes, and snippets.

@dezhin
Created August 8, 2011 22:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dezhin/1132934 to your computer and use it in GitHub Desktop.
Save dezhin/1132934 to your computer and use it in GitHub Desktop.
<?php
$rq_bbox = $_REQUEST['bbox'] or $rq_bbox = $_REQUEST['BBOX'];
$bbox = split(',', $rq_bbox);
$rq_w = $_REQUEST['width'] or $rq_w = $_REQUEST['WIDTH'];
$rq_h = $_REQUEST['height'] or $rq_h = $_REQUEST['HEIGHT'];
$url = "http://maps.rosreestr.ru/ArcGIS/rest/services/Cadastre/Cadastre/MapServer/export?dpi=100&transparent=true&format=png8&bbox={xmin:$bbox[0],ymin:$bbox[1],xmax:$bbox[2],ymax:$bbox[3],spatialReference:{wkid:4326}}&bboxSR=4326&imageSR=102113&size=$rq_w,$rq_h&f=image";
header('Location: ' . $url);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment