[Geoserver-users] Mercator projection

Hi,

I am experimenting now some strange behaviour when using 41001 projection together with Google Maps.

For example, look at:

http://synthesys.csic.es:8080/geoserver/wms?&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_square_05&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:41001&BBOX=0,-20000000,20000000,0&WIDTH=256&HEIGHT=256&reaspect=false

You get the southern hemisphere correctly draw, but with the norther it does not work, you get a black image (and believe, there is data)

http://synthesys.csic.es:8080/geoserver/wms?&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_square_05&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:41001&BBOX=-20000000,0,0,20000000&WIDTH=256&HEIGHT=256&reaspect=false

If you want to see it in a Google Map interface check:

http://synthesys.csic.es/gmap/SynthesysMap2.php

And do a total zoom out. you will not get any results (overlay I mean).

One zoom level up (1) and you get only half of the world, as described...

The total world request would be:

http://synthesys.csic.es/OGCphpCache/wms_cache.php?&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_square_05&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:41001&BBOX=-20000000,-20000000,20000000,20000000&WIDTH=256&HEIGHT=256&reaspect=false

Any idea?

Javier.

Hmm, it seems to work here:
http://synthesys.csic.es:8080/geoserver/wms?&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_square_05&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:41001&BBOX=-20000000,0,0,20000000&WIDTH=1000&HEIGHT=576

I don't know what the reaspect argument does (I removed it), if you
post console output it may reveal more as to what is going on.

Alex

On 5/17/06, Javier de la Torre <jatorre@...84...> wrote:

Hi,

I am experimenting now some strange behaviour when using 41001
projection together with Google Maps.

For example, look at:

http://synthesys.csic.es:8080/geoserver/wms?
&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_squa
re_05&STYLES=&FORMAT=image/
png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:
41001&BBOX=0,-20000000,20000000,0&WIDTH=256&HEIGHT=256&reaspect=false

You get the southern hemisphere correctly draw, but with the norther
it does not work, you get a black image (and believe, there is data)

http://synthesys.csic.es:8080/geoserver/wms?
&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_squa
re_05&STYLES=&FORMAT=image/
png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:
41001&BBOX=-20000000,0,0,20000000&WIDTH=256&HEIGHT=256&reaspect=false

If you want to see it in a Google Map interface check:

http://synthesys.csic.es/gmap/SynthesysMap2.php

And do a total zoom out. you will not get any results (overlay I mean).

One zoom level up (1) and you get only half of the world, as
described...

The total world request would be:

http://synthesys.csic.es/OGCphpCache/wms_cache.php?
&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_squa
re_05&STYLES=&FORMAT=image/
png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:
41001&BBOX=-20000000,-20000000,20000000,20000000&WIDTH=256&HEIGHT=256&re
aspect=false

Any idea?

Javier.

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Then it seems to be a problem with the height and the width...

Your request works, but If just change the width ad the height:

http://synthesys.csic.es:8080/geoserver/wms?&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_square_05&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:41001&BBOX=-20000000,0,0,20000000&WIDTH=256&HEIGHT=256

It doesn't...

In catalina.out apart of:

^@2504 [WARNING] org.geotools.data.postgis.PostgisDataStore - GEOS is
NOT enabled. This will result in limited functionality and
performance.
May 17, 2006 7:08:14 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive mapbuilder.war
May 17, 2006 7:08:17 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 17, 2006 7:08:18 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 17, 2006 7:08:18 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/28 config=null
May 17, 2006 7:08:18 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
May 17, 2006 7:08:18 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 19838 ms

I don't see anything relevant (what is this GEOS by the way...

Javier.

On 5/17/06, Alexander Petkov <greenkov@anonymised.com> wrote:

Hmm, it seems to work here:
http://synthesys.csic.es:8080/geoserver/wms?&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_square_05&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:41001&BBOX=-20000000,0,0,20000000&WIDTH=1000&HEIGHT=576

I don't know what the reaspect argument does (I removed it), if you
post console output it may reveal more as to what is going on.

Alex

On 5/17/06, Javier de la Torre <jatorre@anonymised.com> wrote:
> Hi,
>
> I am experimenting now some strange behaviour when using 41001
> projection together with Google Maps.
>
> For example, look at:
>
> http://synthesys.csic.es:8080/geoserver/wms?
> &REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_squa
> re_05&STYLES=&FORMAT=image/
> png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:
> 41001&BBOX=0,-20000000,20000000,0&WIDTH=256&HEIGHT=256&reaspect=false
>
> You get the southern hemisphere correctly draw, but with the norther
> it does not work, you get a black image (and believe, there is data)
>
> http://synthesys.csic.es:8080/geoserver/wms?
> &REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_squa
> re_05&STYLES=&FORMAT=image/
> png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:
> 41001&BBOX=-20000000,0,0,20000000&WIDTH=256&HEIGHT=256&reaspect=false
>
> If you want to see it in a Google Map interface check:
>
> http://synthesys.csic.es/gmap/SynthesysMap2.php
>
> And do a total zoom out. you will not get any results (overlay I mean).
>
> One zoom level up (1) and you get only half of the world, as
> described...
>
> The total world request would be:
>
> http://synthesys.csic.es/OGCphpCache/wms_cache.php?
> &REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_squa
> re_05&STYLES=&FORMAT=image/
> png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:
> 41001&BBOX=-20000000,-20000000,20000000,20000000&WIDTH=256&HEIGHT=256&re
> aspect=false
>
> Any idea?
>
> Javier.
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>

On 5/17/06, Javier de la Torre <jatorre@...84...> wrote:

Then it seems to be a problem with the height and the width...

Your request works, but If just change the width ad the height:

http://synthesys.csic.es:8080/geoserver/wms?&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_square_05&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:41001&BBOX=-20000000,0,0,20000000&WIDTH=256&HEIGHT=256

It doesn't...

In catalina.out apart of:

^@2504 [WARNING] org.geotools.data.postgis.PostgisDataStore - GEOS is
NOT enabled. This will result in limited functionality and
performance.
May 17, 2006 7:08:14 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive mapbuilder.war
May 17, 2006 7:08:17 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 17, 2006 7:08:18 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 17, 2006 7:08:18 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/28 config=null
May 17, 2006 7:08:18 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
May 17, 2006 7:08:18 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 19838 ms

I don't see anything relevant (what is this GEOS by the way...

Javier.

GEOS is a geometry library used by PostGIS:
The GEOS library is used to provide geometry tests (Touches(),
Contains(), Intersects()) and operations (Buffer(), GeomUnion(),
Difference()) within PostGIS. GEOS is available for download from
http://geos.refractions.net.

It looks like your PostGIS binaries were compiled without GEOS support.

Alex

On 5/17/06, Alexander Petkov <greenkov@...84...> wrote:
> Hmm, it seems to work here:
> http://synthesys.csic.es:8080/geoserver/wms?&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_square_05&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:41001&BBOX=-20000000,0,0,20000000&WIDTH=1000&HEIGHT=576
>
> I don't know what the reaspect argument does (I removed it), if you
> post console output it may reveal more as to what is going on.
>
> Alex
>
> On 5/17/06, Javier de la Torre <jatorre@...84...> wrote:
> > Hi,
> >
> > I am experimenting now some strange behaviour when using 41001
> > projection together with Google Maps.
> >
> > For example, look at:
> >
> > http://synthesys.csic.es:8080/geoserver/wms?
> > &REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_squa
> > re_05&STYLES=&FORMAT=image/
> > png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:
> > 41001&BBOX=0,-20000000,20000000,0&WIDTH=256&HEIGHT=256&reaspect=false
> >
> > You get the southern hemisphere correctly draw, but with the norther
> > it does not work, you get a black image (and believe, there is data)
> >
> > http://synthesys.csic.es:8080/geoserver/wms?
> > &REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_squa
> > re_05&STYLES=&FORMAT=image/
> > png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:
> > 41001&BBOX=-20000000,0,0,20000000&WIDTH=256&HEIGHT=256&reaspect=false
> >
> > If you want to see it in a Google Map interface check:
> >
> > http://synthesys.csic.es/gmap/SynthesysMap2.php
> >
> > And do a total zoom out. you will not get any results (overlay I mean).
> >
> > One zoom level up (1) and you get only half of the world, as
> > described...
> >
> > The total world request would be:
> >
> > http://synthesys.csic.es/OGCphpCache/wms_cache.php?
> > &REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_squa
> > re_05&STYLES=&FORMAT=image/
> > png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:
> > 41001&BBOX=-20000000,-20000000,20000000,20000000&WIDTH=256&HEIGHT=256&re
> > aspect=false
> >
> > Any idea?
> >
> > Javier.
> >
> > -------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Geoserver-users mailing list
> > Geoserver-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/geoserver-users
> >
>

Hi Alexander,

Thanks. I installed them.

But any idea on why my request does not work. I mean, why do I get an empty image. I checked in the logs and the request seems to be processed correctly:
58592330 [INFO] org.vfny.geoserver.servlets.AbstractService - Looking for configured service responses' strategy
58592331 [INFO] org.vfny.geoserver.servlets.AbstractService - Looking for configured service strategy PARTIAL-BUFFER
58592331 [INFO] org.vfny.geoserver.servlets.AbstractService - Using service strategy class org.vfny.geoserver.servlets.PartialBufferStrategy
58592331 [INFO] org.vfny.geoserver.servlets.AbstractService - Set buffer size to 50
58592333 [INFO] org.vfny.geoserver.servlets.AbstractService - handling request: org.vfny.geoserver.wms.requests.GetMapRequest@anonymised.com
58598450 [INFO] org.vfny.geoserver.servlets.AbstractService - Service handled

Your request:
http://synthesys.csic.es:8080/geoserver/wms?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_square_05&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:41001&BBOX=-20000000,0,0,20000000&WIDTH=1000&HEIGHT=576

Works.

But the same request with just the width and the height smaller (256,256) does not work (I mean, I get an empty image).

http://synthesys.csic.es:8080/geoserver/wms?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_square_05&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:41001&BBOX=-20000000,0,0,20000000&WIDTH=256&HEIGHT=256

Javier.

On 17/05/2006, at 19:36, Alexander Petkov wrote:

On 5/17/06, Javier de la Torre <jatorre@anonymised.com> wrote:

Then it seems to be a problem with the height and the width...

Your request works, but If just change the width ad the height:

http://synthesys.csic.es:8080/geoserver/wms?&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_square_05&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:41001&BBOX=-20000000,0,0,20000000&WIDTH=256&HEIGHT=256

It doesn't...

In catalina.out apart of:

^@2504 [WARNING] org.geotools.data.postgis.PostgisDataStore - GEOS is
NOT enabled. This will result in limited functionality and
performance.
May 17, 2006 7:08:14 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive mapbuilder.war
May 17, 2006 7:08:17 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 17, 2006 7:08:18 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 17, 2006 7:08:18 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/28 config=null
May 17, 2006 7:08:18 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
May 17, 2006 7:08:18 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 19838 ms

I don't see anything relevant (what is this GEOS by the way...

Javier.

GEOS is a geometry library used by PostGIS:
The GEOS library is used to provide geometry tests (Touches(),
Contains(), Intersects()) and operations (Buffer(), GeomUnion(),
Difference()) within PostGIS. GEOS is available for download from
http://geos.refractions.net.

It looks like your PostGIS binaries were compiled without GEOS support.

Alex

On 5/17/06, Alexander Petkov <greenkov@anonymised.com> wrote:
> Hmm, it seems to work here:
> http://synthesys.csic.es:8080/geoserver/wms?&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_square_05&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:41001&BBOX=-20000000,0,0,20000000&WIDTH=1000&HEIGHT=576
>
> I don't know what the reaspect argument does (I removed it), if you
> post console output it may reveal more as to what is going on.
>
> Alex
>
> On 5/17/06, Javier de la Torre <jatorre@anonymised.com> wrote:
> > Hi,
> >
> > I am experimenting now some strange behaviour when using 41001
> > projection together with Google Maps.
> >
> > For example, look at:
> >
> > http://synthesys.csic.es:8080/geoserver/wms?
> > &REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_squa
> > re_05&STYLES=&FORMAT=image/
> > png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:
> > 41001&BBOX=0,-20000000,20000000,0&WIDTH=256&HEIGHT=256&reaspect=false
> >
> > You get the southern hemisphere correctly draw, but with the norther
> > it does not work, you get a black image (and believe, there is data)
> >
> > http://synthesys.csic.es:8080/geoserver/wms?
> > &REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_squa
> > re_05&STYLES=&FORMAT=image/
> > png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:
> > 41001&BBOX=-20000000,0,0,20000000&WIDTH=256&HEIGHT=256&reaspect=false
> >
> > If you want to see it in a Google Map interface check:
> >
> > http://synthesys.csic.es/gmap/SynthesysMap2.php
> >
> > And do a total zoom out. you will not get any results (overlay I mean).
> >
> > One zoom level up (1) and you get only half of the world, as
> > described...
> >
> > The total world request would be:
> >
> > http://synthesys.csic.es/OGCphpCache/wms_cache.php?
> > &REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=tdwg:richness_by_c_squa
> > re_05&STYLES=&FORMAT=image/
> > png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:
> > 41001&BBOX=-20000000,-20000000,20000000,20000000&WIDTH=256&HEIGHT=256&re
> > aspect=false
> >
> > Any idea?
> >
> > Javier.
> >
> > -------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Geoserver-users mailing list
> > Geoserver-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/geoserver-users
> >
>

JTorre.vcf (278 Bytes)