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

2017-02-08 Thread Michael Smith
Bob,

I use the MapFish print engine for this. It's a nice templating language, PDF 
generation, etc. 

Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers

> On Feb 8, 2017, at 5:52 PM, Basques, Bob (CI-StPaul) 
>  wrote:
> 
> 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  
>> 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@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
> 
> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

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

2017-02-08 Thread Robert Sanson
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-boun...@lists.osgeo.org] On 
Behalf Of Basques, Bob (CI-StPaul)
Sent: Thursday, 9 February 2017 11:53 a.m.
To: Stephen Woodbridge 
Cc: mapserver-users@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 
> 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@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



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

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

2017-02-08 Thread Stephen Woodbridge
ImageMagick, and I'm sure others do also, have the ability to composite 
multiple images in one. Not to mention tools to scale, warp, filter, 
rotate, annotate, etc any of the image components. I would think that if 
you can up with a xml definition for your composited page, that it would 
be really straight forward to read the definition (aka template) can 
then composite and annotate page. If you did it in perl or Python, you 
could make calls to mapserver or WMS services for pulling in the pieces.


I think the hard part might be coming up with the template definitions 
but you care already doing that in your hard coding the pipeline. Once 
you have the components defined then is just a mater of collection the 
components and compositing the end result.


-Steve W

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

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
> 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@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






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

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

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

2017-02-08 Thread Basques, Bob (CI-StPaul)
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 
> 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@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



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

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

2017-02-08 Thread Stephen Woodbridge

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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

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

2017-02-08 Thread Basques, Bob (CI-StPaul)
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.

bobb




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



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] setting bounding box WG84

2017-02-08 Thread Rahkonen Jukka (MML)
Hi,

You are not supposed to set it manually. TinyOWS is making a database query for 
finding the extents. You can configure it to use the faster method 
http://postgis.net/docs/manual-2.0/ST_Estimated_Extent.html if you set it in 
the config file http://mapserver.org/tinyows/configfile.html.

In your case I suppose that the table behind tows:poiserver is empty.

It might be good to use titles like “[TinyOWS] Setting bounding box WG84” 
because  all Mapserver users are not TinyOWS users.

-Jukka Rahkonen-

Ahmed Tolba wrote:
[mapserver-users] setting bounding box WG84

Hi All,

How ´would I set the WGS84 Bounding box in the server ?


tows:poiserver
poi server database
urn:ogc:def:crs:EPSG::4326

0 0
0 0

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] setting bounding box WG84

2017-02-08 Thread Ahmed Tolba
Hi All,

How ´would I set the WGS84 Bounding box in the server ?


tows:poiserver
poi server database
urn:ogc:def:crs:EPSG::4326

0 0
0 0

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users