[Mapserver-users] Terra Server WMS

Dylan Keon keon at nacse.org
Wed Jun 25 14:31:46 PDT 2003


Hi Debbie,

I use PDFlib (pdflib.com) compiled into PHP.  I grab whatever map image 
is currently being generated, along with the legend and scalebar images, 
and have some code that positions the various images and text the way I 
want them.  I use pdf_get_buffer() to store the completed PDF as a 
session variable (instead of writing the PDF file to disk), then echo 
that variable in a new pop-up window after setting the header info.

Some other listers are doing similar things with PDFlib.

The catch with PDFlib is that it's released under the Aladdin license, 
which is somewhat restrictive.  For commercial applications you need to 
purchase a license, but for education/research it's ok to use it without 
purchasing a license.  At least that's how I read it :-)

--Dylan


Debbie Pagurek wrote:
> Hi Dylan,
> 
> Nice app.
> 
> I was wondering if you could shed some light on how you do the 'Save map to PDF'?
> 
> Thanks,
> Debbie
> 
> 
> 
> 
>>>>Dylan Keon <keon at nacse.org> 06/17/03 11:10AM >>>
> 
> Aaron D. Hunt wrote:
> 
>>Can anyone send me an example or point me to an example, of using Terra 
>>server as a WMS layer?
> 
> 
> Hi Aaron,
> 
> I'm using the Terraserver DOQs as a WMS layer.  You can see it in action 
> at http://gis.nacse.org/nbii/crypto.php .  Note that the layer is 
> scale-dependent.
> 
> --Dylan
> 
> Here's the layer definition I'm using:
> 
> =====================================================================
> LAYER
>    NAME ortho
>    METADATA
>      "wms_title" "USGS Digital Ortho-Quadrangles"
>      "wms_srs"   "EPSG:26910" #NAD83 UTM zone 10N
>      LYRNAME "DOQs (orthophotos)"
>      LINK 
> "http://terraserver.microsoft.com/about.aspx?n=AboutTerraServiceOvervie 
> w"
>    END
>    GROUP "BASE DATA"
>    STATUS OFF
>    TYPE RASTER
>    MINSCALE 1500
>    MAXSCALE 80000
>    CONNECTIONTYPE WMS
>    CONNECTION 
> "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYE 
> RS=DOQ&FORMAT=png&styles="
>    PROJECTION
>      "init=epsg:26910" #NAD83 UTM zone 10N
>    END
> END
> =====================================================================
> 


-- 
************************************************
  Dylan Keon
  GIS/Database Research Specialist
  Northwest Alliance for Computational
  Science and Engineering (NACSE)
  Oregon State University
  Corvallis, OR 97331
  keon at nacse.org        (541) 737-6608
************************************************




More information about the MapServer-users mailing list