Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add example with OGC WMS requests #121

Merged
merged 1 commit into from
Jul 29, 2015
Merged

Conversation

renzok
Copy link
Contributor

@renzok renzok commented May 28, 2015

I was naively using mapserv cgi to test WMS requests.

Only, after I lost quiet some time and with help of people from mailing list: http://lists.osgeo.org/pipermail/mapserver-users/2015-May/077860.html it turned out that WMS output prepends 3 extra lines indicating the mime-type (is this a bug or a feature?).

This pull request indicates one way to deal with this. Hope it helps also others.

I was naively using mapserv cgi to test WMS requests.

Only, after I lost quiet some time and with help of people from mailing list: <http://lists.osgeo.org/pipermail/mapserver-users/2015-May/077860.html>  it turned out that WMS output prepends 3 extra lines indicating the mime-type (is this a bug or a feature?). 

This pull request indicates one way to deal with this. Hope it helps also others.
@renzok
Copy link
Contributor Author

renzok commented May 29, 2015

on the mailing list, I got the request that a proposed solution in the documentation should also work under windows.

I am not developing under windows, therefore any input appreciated.

Actually the standard windows 'more' command should do:
http://ss64.com/nt/more.html

mapserv -nh "QUERY_STRING=EXCEPTIONS=application/vnd.ogc.se_inimage&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&map=/wms_server.map&SRS=EPSG:4326&BBOX=-180,-90,180,90&FORMAT=image/png&WIDTH=1200&HEIGHT=900&LAYERS=satellite_mod" | more /E +3 > test.png

Other solutions exists as well: http://stackoverflow.com/questions/4426442/unix-tail-equivalent-command-in-windows-powershell

havatv added a commit that referenced this pull request Jul 29, 2015
add example with OGC WMS requests

I guess this is OK, even if it does not address all platforms.
@havatv havatv merged commit d2aa821 into MapServer:branch-6-4 Jul 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants