Terraserver question
Dylan Keon
keon at NACSE.ORG
Tue Aug 31 11:48:50 PDT 2004
Hi Andy,
You can pull Terraserver imagery into your app as a WMS layer, as long
as you've compiled your mapserver with WMS support. Here's an example
layer definition. The projection info will be the same if you're
mapping your neck of the woods up there :-)
It has to be rendered as 24-bit data, unfortunately, since it comes
across as JPEG. What I do is render everything as 8-bit unless the DOQ
layer is turned ON, then switch to 24-bit. $map->selectOutputformat()
makes that a pretty easy thing to do.
--Dylan
IMAGETYPE png8
#IMAGETYPE png24
OUTPUTFORMAT
NAME png8
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE PC256
END
OUTPUTFORMAT
NAME png24
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE RGB
END
LAYER
NAME ortho
METADATA
"wms_title" "USGS Digital Ortho-Quadrangles"
"wms_srs" "EPSG:26910" #NAD83 UTM zone 10N
END
STATUS OFF
TYPE RASTER
MINSCALE 1500
MAXSCALE 80000
CONNECTIONTYPE WMS
CONNECTION
"http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DOQ&FORMAT=png&styles="
PROJECTION
"init=epsg:26910" #NAD83 UTM zone 10N
END
END
On 08/31/2004 11:31 AM, ANDY CANFIELD wrote:
> To anyone who may know,
> Is there a way to include terraserver imagery easily into my PHP mapscript,
> mapserver page? Such as: is there a way to include it as a layer yet still
> pull the imagery from their server? If not as a layer then is there another
> way to do it?
> Thanks,
> Andy
More information about the MapServer-users
mailing list