[mapserver-users] cgi-error: End of script output before headers mapserv

lars.schylberg at blixtmail.se lars.schylberg at blixtmail.se
Wed Jan 22 08:47:20 PST 2020


Hi,

Some ideas to look into.

How is the EXTENT specified in the MAPFILE and in what coordinate system.

In the METADATA section in which order are wms_srs specified.

What does extent look like in the getcapabilities report if You add:
 "wms_bbox_extended" "true"

Hope this helps to debug further.

Lars Schylberg
22 januari 2020 kl. 17:16, "Johannes Paul" <johannespaul92 at gmail.com (mailto:johannespaul92 at gmail.com?to=%22Johannes%20Paul%22%20<johannespaul92 at gmail.com>)> skrev:
Yes i do have a working url having 5 digits coordinates  Jo  Le mer. 22 janv. 2020 à 17:06, Jörg Thomsen (WhereGroup) <joerg.thomsen at wheregroup.com (mailto:joerg.thomsen at wheregroup.com)> a écrit : I still have no idea, but a question:

Do you see any pattern in working vs. not working bboxes? In your
example it workes wirth 4-digit coordinates and does not with 5-digit
coordinates.

Does ist never work with 5 digits?

Jörg

Am 22.01.20 um 16:51 schrieb Johannes Paul:
> Yes no warnings in my GetCap...
>
> Le mer. 22 janv. 2020 à 16:43, Jeff McKenna
> <jmckenna at gatewaygeomatics.com (mailto:jmckenna at gatewaygeomatics.com) <mailto:jmckenna at gatewaygeomatics.com (mailto:jmckenna at gatewaygeomatics.com)>> a
> écrit :
>
> and you removed all "WARNING" messages from your GetCapabilities
> response?
>
> -jeff
>
>
> --
> Jeff McKenna
> MapServer Consulting and Training Services
> https://gatewaygeomatics.com/ (https://gatewaygeomatics.com/)
>
>
> On 2020-01-22 11:28 a.m., Johannes Paul wrote:
> > Thanks for your help.
> > 1. the mapserv cgi command line gave me a proper png (./mapserv -nh
> > "QUERY_STRING=map=/var/www/html/osm-transp-en-default.map&mode=map" >
> > /tmp/test.png)
> > 2. i turned on CPL_DEBUG in my mapfile but it doesn't help
> > 3. i ran : shp2img -m /var/www/html/osm-transp-en-default.map -o
> > /tmp/test.png -all_debug 5 -e -9.1433 38.7460 -9.1406 38.7487 &>
> > /tmp/shp2img_log.txt
> > and it looks fine to me...
> >
> >
> > On Wed, 22 Jan 2020 at 15:28, Jeff McKenna
> > <jmckenna at gatewaygeomatics.com (mailto:jmckenna at gatewaygeomatics.com)
> <mailto:jmckenna at gatewaygeomatics.com (mailto:jmckenna at gatewaygeomatics.com)>
> <mailto:jmckenna at gatewaygeomatics.com (mailto:jmckenna at gatewaygeomatics.com)
> <mailto:jmckenna at gatewaygeomatics.com (mailto:jmckenna at gatewaygeomatics.com)>>>
> > wrote:
> >
> > The more tests the better :)
> >
> > -jeff
> >
> >
> >
> > On 2020-01-22 10:21 a.m., Jörg Thomsen (WhereGroup) wrote:
> > > Hello Jeff,
> > >
> > > is shp2img exactly the same as mapserv? (My thought was to use
> > the same
> > > executable the webserver calls)
> > >
> > > Jo,
> > > did you get a proper result (image) from your command line
> > request? the
> > > 'error'-messages look quite OK.
> > >
> > > Jörg
> > >
> > >
> > > Am 22.01.20 um 15:12 schrieb Jeff McKenna:
> > >> Hi Jo,
> > >>
> > >> Are you passing the problem extents to the shp2img utility?
> > Such as:
> > >>
> > >> shp2img -m osm-transp-en-default.map -e -9.1433 38.7460
> -9.1406
> > >> 38.7487 -o ttt.png -all_debug 5
> > >>
> > >> If that doesn't help, then I would start from the beginning:
> > execute a
> > >> GetCapabilities request and make sure you remove all "WARNING"
> > messages.
> > >>
> > >> -jeff
> > >>
> > >>
> > >>
> > >
> > >
> > > Viele Grüße,
> > > Jörg Thomsen
> > >
> >
> >
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org (mailto:mapserver-users at lists.osgeo.org) <mailto:mapserver-users at lists.osgeo.org (mailto:mapserver-users at lists.osgeo.org)>
> https://lists.osgeo.org/mailman/listinfo/mapserver-users (https://lists.osgeo.org/mailman/listinfo/mapserver-users)
>
>
> _______________________________________________
> 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 (https://lists.osgeo.org/mailman/listinfo/mapserver-users)
>
Viele Grüße,
Jörg Thomsen

--

------------------------------------
Aufwind durch Wissen!
Qualifizierte Open-Source-Schulungen
bei der www.foss-academy.com (http://www.foss-academy.com)
------------------------------------
Jörg Thomsen
WhereGroup GmbH
Bundesallee 23
10717 Berlin
Germany

Fon: +49 (0)30 / 5130 278 74
Fax: +49 (0)30 / 5130 278 11

joerg.thomsen at wheregroup.com (mailto:joerg.thomsen at wheregroup.com)
www.wheregroup.com (http://www.wheregroup.com)

Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885

-------------------------------
Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com (http://twitter.com/WhereGroup_com)
_______________________________________________
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 (https://lists.osgeo.org/mailman/listinfo/mapserver-users)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20200122/87269ffd/attachment.html>


More information about the mapserver-users mailing list