[MapProxy] California in Africa
Sebastian E. Ovide
sebastian.ovide at gmail.com
Wed Sep 1 04:27:41 EDT 2010
On Tue, Aug 31, 2010 at 7:08 PM, Oliver Tonnhofer <olt at omniscale.de> wrote:
>
> On 31.08.2010, at 19:11, Sebastian E. Ovide wrote:
> > MapServer: it Works
> >
> >
> http://10.0.1.40/cgi-bin/mapserv?layers=ca_wild_fire&map=%2Fhome%2Fsebas%2Fpublic_html%2Fworkshop-5.4%2Fsebas.map&mode=map&map_imagetype=png&mapext=-13462700.9162+4931105.56705+-13384429.39925+5009377.084&imgext=-13462700.9162+4931105.56705+-13384429.39925+5009377.084&map_size=256+256&imgx=128&imgy=128&imgxy=256+256
>
> Do you have that as a WMS request?
>
what do you mean ? this is the URL generated by OpenLayers. If I open it I
get a image.
> What do you get from the following URL?
>
> http://10.0.1.40/cgi-bin/mapserv?layers=ca_wild_fire&map=%2Fhome%2Fsebas%2Fpublic_html%2Fworkshop-5.4%2Fsebas.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=EPSG%3A900913&BBOX=-13306157.8823,4774562.53315,-13227886.36535,4852834.0501&WIDTH=256&HEIGHT=256
>
>
I get an image saying that SRS must be valid.
> > MapProxy TMS : Looks ok but in the wrong location: CA is in Africa. If
> zoomed more than 8, it is in Africa and CA at the same time but in CA is is
> HUGE...
> > http://10.0.1.40:8123/tms/1.0.0/ca_wild_fire/EPSG3310/9/82/316.png
>
> I thought they are now in the right place but the resolution does not
> match. Still should be a configuration issue.
>
>
If I go to CA and zoom more than 8 I can see CA in CA... but HUGE... if I
zoom out I can see CA in Africa with the correct (it looks like correct)
size.
> > MapProxy WMS it displays just a back box
> >
> http://10.0.1.40:8123/service/?LAYERS=ca_wild_fire&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=EPSG%3A900913&BBOX=-13306157.8823,4774562.53315,-13227886.36535,4852834.0501&WIDTH=256&HEIGHT=256
> >
> > TileCache: it works (even if it "seams" to be slower than MapProxy)
> >
> http://10.0.1.40/tiles/?LAYERS=ca_wild_fire&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=EPSG%3A900913&BBOX=-13227886.36535,4931105.56705,-13149614.8484,5009377.084&WIDTH=256&HEIGHT=256
>
> I need your MapProxy configuration (and your OpenLayer client for the TMS)
> to help you. And a URL to a WMS server that supports 3310 would be handy.
>
service:
attribution:
text: "©Omniscale 2010 (http://omniscale.de) â Map data: CC-BY-SA
OpenStreetMap and Contributors"
md:
title: MapProxy WMS Proxy
abstract: This is the fantastic MapProxy.
online_resource: http://mapproxy.org/
contact:
person: Your Name Here
position: Technical Director
organization:
address: Fakestreet 123
city: Somewhere
postcode: 12345
country: Germany
phone: +49(0)000-000000-0
fax: +49(0)000-000000-0
email: info at omniscale.de
access_constraints:
This service is intended for private and evaluation use only.
The data is licensed as Creative Commons Attribution-Share Alike
2.0
(http://creativecommons.org/licenses/by-sa/2.0/)
fees: 'None'
layers:
- ca_wild_fire:
md:
title: CA Wild Fire
param:
srs: ['EPSG:3310']
# srs: ['EPSG:3857']
bbox: [-373876.958741,-604494.167244, 540030.000742,
450023.697768]
tile_size: [256, 256]
sources:
- type: cache_wms
req:
url:
http://10.0.1.40/cgi-bin/mapserv?map=/home/sebas/public_html/workshop-5.4/sebas.map&transparent=true
layers: ca_wild_fire
var ms_mapinfo_sh = new OpenLayers.Layer.MapServer( "CA Wild
Fire MapServer",
"http://10.0.1.40/cgi-bin/mapserv",
{ layers: 'ca_wild_fire',
map:
'/home/sebas/public_html/workshop-5.4/sebas.map'
},
{
opacity: 0.5,
visibility: false
}
);
var ca_wild_fire_wms = new OpenLayers.Layer.WMS( "CA Wild Fire
WMS",
"http://10.0.1.40:8123/service/",
{ layers: 'ca_wild_fire'
} ,
{
opacity: 0.5,
visibility: false
}
);
var ca_wild_fire = new OpenLayers.Layer.TMS( "CA Wild Fire TMS",
"http://10.0.1.40:8123/tms/",
{ layername: 'ca_wild_fire/EPSG3310',
type:'png'
},
{
opacity: 0.5,
visibility: false
}
);
var ca_wild_fire_tilecache = new OpenLayers.Layer.WMS( "CA Wild
Fire TileCache",
"http://10.0.1.40/tiles/",
{ layers: 'ca_wild_fire'
} ,
{
// transparent:"true",
// format:'image/png',
opacity: 0.5,
// visibility: false
}
);
--
Sebastian E. Ovide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapproxy/attachments/20100901/692a9e31/attachment-0001.html
More information about the MapProxy
mailing list