[mapserver-users] Re: Print template and WMS

Ruby minerdiggins at gmail.com
Thu Oct 22 11:50:00 PDT 2009


This would be easier to debug if we could see the app in action...

Thanks for your reply Steve,


I am unsure how I could share the app. I cannot host from my ISP and the
data approaches 5 GB.


I am using mapserver 5.2 on MacOsx 10.4.1 and ms4w 5.2 on WindowsXP ProSP3.
The app is plain vanilla- no python, mapscript, java, or third party
interfaces. Just straight html without frames, even the legend is html on
the map page. The few lines of javascript I use are not app related, just
invoking windows, sizing, calling a local app for gps download and the
button to this one url for print.html. All files are local to the server
except this client WMS layer.


I develop on the Mac and port to the Windows machine, The Windows machine is
not connected to the WAN. I test on both machines. I set up a dummy dns on
the LAN and ms4w on the Windows machine does try to connect when invoked
from the main window but makes not attempt a connection for print.html, the
same behavior observed on the Mac version with a real WAN connection.


The WMS layer loads fine in several different map templates I've built. It
is only when the URL


http:/localhost:8888/cgi-bin/mapserv?map=[map]&mapext=[mapext]&layers=[layers]&map_web=TEMPLATE+pgs/print.html&mapsize=1500+1182


is called that mapserver does not attempt to connect the WMS layer. I
suspect something is missing in the above URL.


Thank you again,

bean



On Thu, Oct 22, 2009 at 9:05 AM, Steve Lime <Steve.Lime at dnr.state.mn.us>
wrote:

This would be easier to debug if we could see the app in action...


>>> On 10/22/2009 at 10:56 AM, in message

<731ed3bb0910220856j3704b29bm61139ee355c59c3f at mail.gmail.com>, Ruby


<minerdiggins at gmail.com> wrote:

> Thanks for your thoughts Dan,

> I reduced the output size of print.html to the same size as my map.html
and

> still no joy.

> mapserver never calls the WMS layer for print.html although it loads fine
in

> my map.html.

>

> bean

>

> On Thu, Oct 22, 2009 at 6:33 AM, Dan Little <danlittle at yahoo.com> wrote:

>

>> The WMS service you are calling may have a limit on the size of images it

>> will return.

>>

>>

>>

>> ----- Original Message ----

>> > From: Steve Lime <Steve.Lime at dnr.state.mn.us>

>> > To: Ruby <minerdiggins at GMAIL.COM>; mapserver-users at lists.osgeo.org

>> > Sent: Wed, October 21, 2009 4:37:05 PM

>> > Subject: Re: [mapserver-users] Print template and WMS

>> >

>> > And the WMS layer's name  in question appears in the [layers] output?

>> >

>> > >>> On 10/7/2009 at 2:20 PM, in message

>> > <731ed3bb0910071220x4943b5beqc22f4516b86eed79 at mail.gmail.com>, Ruby

>> > wrote:

>> > > Greetings,

>> > >

>> > > I employ a print function via javascript button in an HTML map

>> template. The

>> > > print template produces a higher resolution version of the existing
map

>> in a

>> > > new window. The print form I am using works perfectly except for my

>> single

>> > > WMS client layer, all other layers display except this one. The WMS

>> layer

>> > > displays correctly in my main map window. The tmp file image does not

>> > > include the WMS data.

>> > >

>> > > Can anyone please guide me in including the WMS data in my print

>> template? I

>> > > would rather not call the WMS server again for my print template as

>> > > connections to this server are very slow. All other data is stored

>> locally.

>> > >

>> > > Below are my javascript call button and the HTML print template.

>> > >

>> > >

>>

>>

>>

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


More information about the MapServer-users mailing list