
|
How do I request all layers within a mapfile (osm.xml) for a wms request against a Mapnik OGC WMS Server?
Hi, How do I request all layers within a mapfile (osm.xml) for a wms request against a Mapnik OGC WMS Server? The hard way is to have all 45 layers as a comma separated value assigned to the layers parameter.
The easy way (like it is done in UMN MapServer) is to have a layer parameter at the top (header) part of the mapfile that then can be referenced within the WMS request. John -- John J. Mitchell
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users
|

|
Re: How do I request all layers within a mapfile (osm.xml) for a wms request against a Mapnik OGC WMS Server?
Hi John, On Fri, Nov 6, 2009 at 11:46 AM, John Mitchell <mitchelljj98@...> wrote:
Hi,
How do I request all layers within a mapfile (osm.xml) for a wms request against a Mapnik OGC WMS Server?
The hard way is to have all 45 layers as a comma separated value assigned to the layers parameter.
The easy way (like it is done in UMN MapServer) is to have a layer parameter at the top (header) part of the mapfile that then can be referenced within the WMS request.
John
I have to admit I've done it the hard way, and it works just fine. Now I am playing with Geoserver, and here I can define layer groups that can be directly referenced from the WMS request. O would expect something similar for Mapnik WMS, but I didn't had time to search for it.
--Ciprian
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users
|

|
Re: How do I request all layers within a mapfile (osm.xml) for a wms request against a Mapnik OGC WMS Server?
I don't think we can do grouping in ogcserver just yet (Dane?) but I think it would be nice to have :) -> Trac ticket (hint,hint) Artem 2009/11/6 Ciprian Talaba <cipriantalaba@...>
Hi John,On Fri, Nov 6, 2009 at 11:46 AM, John Mitchell <mitchelljj98@...> wrote:
Hi,
How do I request all layers within a mapfile (osm.xml) for a wms request against a Mapnik OGC WMS Server?
The hard way is to have all 45 layers as a comma separated value assigned to the layers parameter.
The easy way (like it is done in UMN MapServer) is to have a layer parameter at the top (header) part of the mapfile that then can be referenced within the WMS request.
John
I have to admit I've done it the hard way, and it works just fine. Now I am playing with Geoserver, and here I can define layer groups that can be directly referenced from the WMS request. O would expect something similar for Mapnik WMS, but I didn't had time to search for it.
--Ciprian
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users
|

|
Re: How do I request all layers within a mapfile (osm.xml) for a wms request against a Mapnik OGC WMS Server?
Ok, In trying to request multiple layers (all 45 layers from osm.xml listed below) I noticed that it errors off if I left styles as &STYLES=&, but it works fine with &STYLES=,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,& with 44 commas, so even if you don't have any interest in overwriting the existing styles you still have to have an empty placeholder for each style.
Correct? John http://localhost:8000/?LAYERS=world,coast-poly,builtup,leisure,sports_grounds,water_areas,water_lines,land%20features,tunnels,citywalls,turning_circle,footbikecycle-tunnels,tracks-notunnel-nobridge,tracks-tunnels,buildings,line%20features,polygon%20barriers,highway-area-casing,minor-roads-casing,highway-area-fill,minor-roads-fill,ferry-routes,aerialways,roads,waterway-bridges,bridges,tracks-bridges,access,trams,placenames,amenity,amenity-poly,power,power_towers,directions,planet%20roads%20text%20osm%20low%20zoom,planet%20roads%20text%20osm,text,text-poly,area-text,interpolation_lines,housenumb_ways,housenumb_nodes,misc_boundaries,admin&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-180.0000000000001,-90,119.46385052802589,209.463850528026&WIDTH=256&HEIGHT=256
On Fri, Nov 6, 2009 at 5:39 AM, Artem Pavlenko <artem@...> wrote:
I don't think we can do grouping in ogcserver just yet (Dane?) but I think it would be nice to have :)-> Trac ticket (hint,hint) Artem 2009/11/6 Ciprian Talaba <cipriantalaba@...>
Hi John,
On Fri, Nov 6, 2009 at 11:46 AM, John Mitchell <mitchelljj98@...> wrote:
Hi,
How do I request all layers within a mapfile (osm.xml) for a wms request against a Mapnik OGC WMS Server?
The hard way is to have all 45 layers as a comma separated value assigned to the layers parameter.
The easy way (like it is done in UMN MapServer) is to have a layer parameter at the top (header) part of the mapfile that then can be referenced within the WMS request.
John
I have to admit I've done it the hard way, and it works just fine. Now I am playing with Geoserver, and here I can define layer groups that can be directly referenced from the WMS request. O would expect something similar for Mapnik WMS, but I didn't had time to search for it.
--Ciprian
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users
-- John J. Mitchell
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users
|

|
Re: How do I request all layers within a mapfile (osm.xml) for a wms request against a Mapnik OGC WMS Server?
undocumented trick:
LAYERS=__all__
Dane
On Nov 6, 2009, at 4:29 AM, John Mitchell wrote: Ok,
In trying to request multiple layers (all 45 layers from osm.xml listed below) I noticed that it errors off if I left styles as &STYLES=&, but it works fine with &STYLES=,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,& with 44 commas, so even if you don't have any interest in overwriting the existing styles you still have to have an empty placeholder for each style. Correct?
John
http://localhost:8000/?LAYERS=world,coast-poly,builtup,leisure,sports_grounds,water_areas,water_lines,land%20features,tunnels,citywalls,turning_circle,footbikecycle-tunnels,tracks-notunnel-nobridge,tracks-tunnels,buildings,line%20features,polygon%20barriers,highway-area-casing,minor-roads-casing,highway-area-fill,minor-roads-fill,ferry-routes,aerialways,roads,waterway-bridges,bridges,tracks-bridges,access,trams,placenames,amenity,amenity-poly,power,power_towers,directions,planet%20roads%20text%20osm%20low%20zoom,planet%20roads%20text%20osm,text,text-poly,area-text,interpolation_lines,housenumb_ways,housenumb_nodes,misc_boundaries,admin&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-180.0000000000001,-90,119.46385052802589,209.463850528026&WIDTH=256&HEIGHT=256
On Fri, Nov 6, 2009 at 5:39 AM, Artem Pavlenko <artem@...> wrote: I don't think we can do grouping in ogcserver just yet (Dane?) but I think it would be nice to have :)-> Trac ticket (hint,hint) Artem 2009/11/6 Ciprian Talaba <cipriantalaba@...> Hi John, On Fri, Nov 6, 2009 at 11:46 AM, John Mitchell <mitchelljj98@...> wrote: Hi,
How do I request all layers within a mapfile (osm.xml) for a wms request against a Mapnik OGC WMS Server?
The hard way is to have all 45 layers as a comma separated value assigned to the layers parameter. The easy way (like it is done in UMN MapServer) is to have a layer parameter at the top (header) part of the mapfile that then can be referenced within the WMS request.
John
I have to admit I've done it the hard way, and it works just fine. Now I am playing with Geoserver, and here I can define layer groups that can be directly referenced from the WMS request. O would expect something similar for Mapnik WMS, but I didn't had time to search for it. --Ciprian
_______________________________________________ Mapnik-users mailing list Mapnik-users@... https://lists.berlios.de/mailman/listinfo/mapnik-users
-- John J. Mitchell _______________________________________________ Mapnik-users mailing list Mapnik-users@... https://lists.berlios.de/mailman/listinfo/mapnik-users
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users
|

|
Re: How do I request all layers within a mapfile (osm.xml) for a wms request against a Mapnik OGC WMS Server?
Ha, excellent! Very pythonic too :) artem 2009/11/6 Dane Springmeyer <blake@...>
undocumented trick:
LAYERS=__all__
Dane
On Nov 6, 2009, at 4:29 AM, John Mitchell wrote:
Ok,
In trying to request multiple layers (all 45 layers from osm.xml listed below) I noticed that it errors off if I left styles as &STYLES=&, but it works fine with &STYLES=,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,& with 44 commas, so even if you don't have any interest in overwriting the existing styles you still have to have an empty placeholder for each style.
Correct?
John
http://localhost:8000/?LAYERS=world,coast-poly,builtup,leisure,sports_grounds,water_areas,water_lines,land%20features,tunnels,citywalls,turning_circle,footbikecycle-tunnels,tracks-notunnel-nobridge,tracks-tunnels,buildings,line%20features,polygon%20barriers,highway-area-casing,minor-roads-casing,highway-area-fill,minor-roads-fill,ferry-routes,aerialways,roads,waterway-bridges,bridges,tracks-bridges,access,trams,placenames,amenity,amenity-poly,power,power_towers,directions,planet%20roads%20text%20osm%20low%20zoom,planet%20roads%20text%20osm,text,text-poly,area-text,interpolation_lines,housenumb_ways,housenumb_nodes,misc_boundaries,admin&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-180.0000000000001,-90,119.46385052802589,209.463850528026&WIDTH=256&HEIGHT=256
On Fri, Nov 6, 2009 at 5:39 AM, Artem Pavlenko <artem@...> wrote:
I don't think we can do grouping in ogcserver just yet (Dane?) but I think it would be nice to have :)-> Trac ticket (hint,hint) Artem 2009/11/6 Ciprian Talaba <cipriantalaba@...>
Hi John, On Fri, Nov 6, 2009 at 11:46 AM, John Mitchell <mitchelljj98@...> wrote:
Hi,
How do I request all layers within a mapfile (osm.xml) for a wms request against a Mapnik OGC WMS Server?
The hard way is to have all 45 layers as a comma separated value assigned to the layers parameter. The easy way (like it is done in UMN MapServer) is to have a layer parameter at the top (header) part of the mapfile that then can be referenced within the WMS request.
John
I have to admit I've done it the hard way, and it works just fine. Now I am playing with Geoserver, and here I can define layer groups that can be directly referenced from the WMS request. O would expect something similar for Mapnik WMS, but I didn't had time to search for it.
--Ciprian
_______________________________________________
Mapnik-users mailing list Mapnik-users@... https://lists.berlios.de/mailman/listinfo/mapnik-users
-- John J. Mitchell _______________________________________________ Mapnik-users mailing list Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users
|

|
Re: How do I request all layers within a mapfile (osm.xml) for a wms request against a Mapnik OGC WMS Server?
Thanks!!!!!!!!! On Fri, Nov 6, 2009 at 12:08 PM, Dane Springmeyer <blake@...> wrote:
undocumented trick:
LAYERS=__all__
Dane
On Nov 6, 2009, at 4:29 AM, John Mitchell wrote:
Ok,
In trying to request multiple layers (all 45 layers from osm.xml listed below) I noticed that it errors off if I left styles as &STYLES=&, but it works fine with &STYLES=,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,& with 44 commas, so even if you don't have any interest in overwriting the existing styles you still have to have an empty placeholder for each style.
Correct?
John
http://localhost:8000/?LAYERS=world,coast-poly,builtup,leisure,sports_grounds,water_areas,water_lines,land%20features,tunnels,citywalls,turning_circle,footbikecycle-tunnels,tracks-notunnel-nobridge,tracks-tunnels,buildings,line%20features,polygon%20barriers,highway-area-casing,minor-roads-casing,highway-area-fill,minor-roads-fill,ferry-routes,aerialways,roads,waterway-bridges,bridges,tracks-bridges,access,trams,placenames,amenity,amenity-poly,power,power_towers,directions,planet%20roads%20text%20osm%20low%20zoom,planet%20roads%20text%20osm,text,text-poly,area-text,interpolation_lines,housenumb_ways,housenumb_nodes,misc_boundaries,admin&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-180.0000000000001,-90,119.46385052802589,209.463850528026&WIDTH=256&HEIGHT=256
On Fri, Nov 6, 2009 at 5:39 AM, Artem Pavlenko <artem@...> wrote:
I don't think we can do grouping in ogcserver just yet (Dane?) but I think it would be nice to have :)-> Trac ticket (hint,hint) Artem 2009/11/6 Ciprian Talaba <cipriantalaba@...>
Hi John, On Fri, Nov 6, 2009 at 11:46 AM, John Mitchell <mitchelljj98@...> wrote:
Hi,
How do I request all layers within a mapfile (osm.xml) for a wms request against a Mapnik OGC WMS Server?
The hard way is to have all 45 layers as a comma separated value assigned to the layers parameter. The easy way (like it is done in UMN MapServer) is to have a layer parameter at the top (header) part of the mapfile that then can be referenced within the WMS request.
John
I have to admit I've done it the hard way, and it works just fine. Now I am playing with Geoserver, and here I can define layer groups that can be directly referenced from the WMS request. O would expect something similar for Mapnik WMS, but I didn't had time to search for it.
--Ciprian
_______________________________________________
Mapnik-users mailing list Mapnik-users@... https://lists.berlios.de/mailman/listinfo/mapnik-users
-- John J. Mitchell _______________________________________________ Mapnik-users mailing list Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users
-- John J. Mitchell
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users
|