[mapserver-users] Embed map (detail map) in mapserver output?

Robert Sanson Robert.Sanson at asurequality.com
Wed Feb 8 16:12:06 PST 2017


I currently do something similar using a Python script to make the different WMS calls and insert the returned maps into a reportlab document. The script produces a PDF which can be saved to disk or printed directly using Ghostscript.

Regards,

Robert Sanson

From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul)
Sent: Thursday, 9 February 2017 11:53 a.m.
To: Stephen Woodbridge <woodbri at swoodbridge.com>
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Embed map (detail map) in mapserver output?

Hi Steve,

It’s for compositing for printing.  I want to set up some page templates for a map book where any of the pages can be run off when an update occurs in a particular location in the global map, vs printing the whole book.

On a more detailed level, this is starting to get into a print tool, which I’ve been pondering building for online use.  The idea would be to mix and match (stack) different print features on a canvas for eventual printing.  My need right now is for something as an API, but I can see this easily morphing into a user interface.

I actually already do some of those other items like ,collars and grids with MapServer, they just use different mapfiles for each.  Just trying to figure out the best way to pull it all together.  I think I’ll just hardcode something together right now, and see where I can insert URLS and resource links into the hardcoded pipeline after the fact.  I have a Fire response map that I’m working on right now as a test.  It’s big too, 42”x60”, all in one shot right out of MapServer.  Works really nicely for the basemap already.

There are a bunch of detail reference maps needed though, which is what I’m working on now.

I was pondering things from the point of view that these detail maps are really just another type of Legend (or could be thought of that way)

bobb


On Feb 8, 2017, at 4:39 PM, Stephen Woodbridge <woodbri at swoodbridge.com<mailto:woodbri at swoodbridge.com>> wrote:

On 2/8/2017 5:22 PM, Basques, Bob (CI-StPaul) wrote:

All,

Anyone know of a way (trick) to embed a map into a regular map query in
Mapserver?  Something like embedding a legend, but I actaully want to
embed another higher resolution detail map.  Ideally I would be able to
use any of the layers in the main map for the detail as well.

Hmm, I wonder if I can make what I want in a LEGEND block?? If an image
in a LEGEND block could be another call to mapserver in place of a
static image . . .   Just a wishlist thing right now.  I can stack
things in another piece of software currently.

Bob,

This sounds like something you might find in a composition tool. There might be a way to make (trick) mapserver do this, like allowing a image symbol to be create using a url rather than a file, then placing that on the map, but mapserver has a great focus on high performance map image rendering. What is your use case for this?

I think it might be better to think about this problem in terms of creating a composition tool oriented toward maps that would allow collars, legends, detailed maps, annotations, grids, etc and be able to output PDFs or images, or formats compatible with document systems or whatever.

-Steve W

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/mapserver-users


"I think there is a world market for maybe five computers."
- Thomas Watson (1874-1956), Chairman of IBM, 1943



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20170209/b20b564c/attachment.htm>


More information about the MapServer-users mailing list