Terraserver question

ANDY CANFIELD andy_canfield at HOTMAIL.COM
Tue Aug 31 18:00:24 PDT 2004


I'm am replying so it's get's posted to the group and thus gets archived.
Thanks again for your help on this Dylan.

>From: Dylan Keon <keon at nacse.org>
>To: ANDY CANFIELD <andy_canfield at hotmail.com>
>Subject: Re: [UMN_MAPSERVER-USERS] Terraserver question
>Date: Tue, 31 Aug 2004 16:36:37 -0700
>
>Cool, glad it's working.
>
>Nope, can't zoom past a particular scale.  You're right that it's the
>service denying the request, which causes mapserver to throw an error.
>(IMHO, mapserver should deal with that more gracefully.)  That's the other
>drawback to this data set, besides the 24-bit issue.
>
>You'll see in the layer def I gave you that I have MINSCALE set.  You'll
>have to play around with that setting so that the layer doesn't get
>rendered below a certain scale (the exact scale will depend upon your app).
>
>Bummer, huh?
>
>--Dylan
>
>
>On 08/31/2004 04:30 PM, ANDY CANFIELD wrote:
>>Dylan,
>>I just tried it and it works like a charm. Thanks for the info. I will
>>look into the projection thing. Is there any way to get it to allow you to
>>zoom in farther? I get to a certain resolution and it won't let me go in
>>anymore, it throws an error I assume it's the service denying the request.
>>Thanks,
>>Andy
>>
>>
>>>From: Dylan Keon <keon at nacse.org>
>>>To: ANDY CANFIELD <andy_canfield at HOTMAIL.COM>
>>>CC: MAPSERVER-USERS at LISTS.UMN.EDU
>>>Subject: Re: [UMN_MAPSERVER-USERS] Terraserver question
>>>Date: Tue, 31 Aug 2004 11:48:50 -0700
>>>
>>>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
>>
>>
>>_________________________________________________________________
>>Check out Election 2004 for up-to-date election news, plus voter tools and
>>more! http://special.msn.com/msn/election2004.armx

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement



More information about the MapServer-users mailing list