[Geoserver-users] Mercator projection in Geoserver

Hi list,

While using Geoserver with Google Maps I realized I needed the Mercator projection to overlay my maps with Google's .

Is this projection already included in Geoserver? I can find the word mercator in several places but I am not sure which EPSG to use...

Has anybody tried overlaying using the jaascript code from

http://johndeck.blogspot.com/2005/09/overlaying-mercator-projected-wms.html

?

They use there EPSG:54004, but is this number something official or it has been arbitrarily created? If not... where can I find the parameters to define it in Geoserver?

Thanks in advance.

Javier.

JTorre.vcf (278 Bytes)

For some reason this email hasn't shown up in my normal account.

Actually someone just asked about this:
http://www.nabble.com/Advertise-layers-in-SRS-54004-(T-mercator)-t1578926.html

The answer is no, it's not included in GeoServer. Looking at the blog
post, http://docs.codehaus.org/display/GEOSDOC/Custom+projection+definition+in+Geoserver
is the equivalent of changing Proj4, his first step.

If someone does that and contributes it back I think we could consider
including it as a nice short cut for users by default. I'm not sure
that 54004 is a real EPSG number, but if it's in the range where you
can put in what you like I think we could just include it.

best regards,

Chris

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

Hi list,

While using Geoserver with Google Maps I realized I needed the
Mercator projection to overlay my maps with Google's .

Is this projection already included in Geoserver? I can find the word
mercator in several places but I am not sure which EPSG to use...

Has anybody tried overlaying using the jaascript code from

http://johndeck.blogspot.com/2005/09/overlaying-mercator-projected-
wms.html

?

They use there EPSG:54004, but is this number something official or
it has been arbitrarily created? If not... where can I find the
parameters to define it in Geoserver?

Thanks in advance.

Javier.

Hello Javier.

I pointed out this a few days ago. I followed steps listed at
http://docs.codehaus.org/display/GEOSDOC/Custom+projection+definition+in+Geoserver
to add SRS 54004 into Geoserver EPSG Database.

However, distorsion at zoomed out scales still there, as you can see in this
map:
http://www.wfisjamboree2007.org

I tested other "mercator like" SRSs included into geoserver without success.

Eduin

--- Chris Holmes <chomie@anonymised.com> escribió:

For some reason this email hasn't shown up in my normal account.

Actually someone just asked about this:

http://www.nabble.com/Advertise-layers-in-SRS-54004-(T-mercator)-t1578926.html

The answer is no, it's not included in GeoServer. Looking at the blog
post,

http://docs.codehaus.org/display/GEOSDOC/Custom+projection+definition+in+Geoserver

is the equivalent of changing Proj4, his first step.

If someone does that and contributes it back I think we could consider
including it as a nice short cut for users by default. I'm not sure
that 54004 is a real EPSG number, but if it's in the range where you
can put in what you like I think we could just include it.

best regards,

Chris

Eduin Yezid Carrillo Vega
GIS Specialist
http://eduinyezid.carrillovega.com
http://sig.cas.gov.co/~yecarrillo

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/

Could you try using EPSG 41001? If that works I'd like to make a quick tutorial, or at least point at John Deck's blog and tell people to use 41001, instead of 54004. Please let me know.

Note I talked to John Deck, and he said he arbitrarily made up 54004. If it's already in epsg db under another number I'd much prefer we just use that.

Chris

Chris Holmes wrote:

For some reason this email hasn't shown up in my normal account.

Actually someone just asked about this:
http://www.nabble.com/Advertise-layers-in-SRS-54004-(T-mercator)-t1578926.html

The answer is no, it's not included in GeoServer. Looking at the blog
post, http://docs.codehaus.org/display/GEOSDOC/Custom+projection+definition+in+Geoserver

is the equivalent of changing Proj4, his first step.

If someone does that and contributes it back I think we could consider
including it as a nice short cut for users by default. I'm not sure
that 54004 is a real EPSG number, but if it's in the range where you
can put in what you like I think we could just include it.

best regards,

Chris

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

Hi list,

While using Geoserver with Google Maps I realized I needed the
Mercator projection to overlay my maps with Google's .

Is this projection already included in Geoserver? I can find the word
mercator in several places but I am not sure which EPSG to use...

Has anybody tried overlaying using the jaascript code from

http://johndeck.blogspot.com/2005/09/overlaying-mercator-projected-
wms.html

?

They use there EPSG:54004, but is this number something official or
it has been arbitrarily created? If not... where can I find the
parameters to define it in Geoserver?

Thanks in advance.

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&kid0709&bid&3057&dat1642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

Something strange happens, look:

This my original one in 4326:

http://synthesys.csic.es:8080/geoserver/wms?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&SRS=EPSG:4326&BBOX=-180,-90,180,90&WIDTH=1000&HEIGHT=570&LAYERS=tdwg:richness_by_c_square_05&FORMAT=image/png&STYLES=&TRANSPARENT=TRUE&UNIQUEID=

If I try with 41001 I get this:

http://synthesys.csic.es:8080/geoserver/wms?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&SRS=EPSG:41001&BBOX=-180,-90,180,90&WIDTH=1000&HEIGHT=570&LAYERS=tdwg:richness_by_c_square_05&FORMAT=image/png&STYLES=&TRANSPARENT=TRUE&UNIQUEID=

Javier.

On 5/15/06, Chris Holmes <cholmes@anonymised.com> wrote:

Could you try using EPSG 41001? If that works I'd like to make a quick
tutorial, or at least point at John Deck's blog and tell people to use
41001, instead of 54004. Please let me know.

Note I talked to John Deck, and he said he arbitrarily made up 54004.
If it's already in epsg db under another number I'd much prefer we just
use that.

Chris

Chris Holmes wrote:
> For some reason this email hasn't shown up in my normal account.
>
> Actually someone just asked about this:
> http://www.nabble.com/Advertise-layers-in-SRS-54004-(T-mercator)-t1578926.html
>
> The answer is no, it's not included in GeoServer. Looking at the blog
> post,
> http://docs.codehaus.org/display/GEOSDOC/Custom+projection+definition+in+Geoserver
>
> is the equivalent of changing Proj4, his first step.
>
> If someone does that and contributes it back I think we could consider
> including it as a nice short cut for users by default. I'm not sure
> that 54004 is a real EPSG number, but if it's in the range where you
> can put in what you like I think we could just include it.
>
> best regards,
>
> Chris
>
> On 5/12/06, Javier de la Torre <jatorre@anonymised.com> wrote:
>
>> Hi list,
>>
>> While using Geoserver with Google Maps I realized I needed the
>> Mercator projection to overlay my maps with Google's .
>>
>> Is this projection already included in Geoserver? I can find the word
>> mercator in several places but I am not sure which EPSG to use...
>>
>> Has anybody tried overlaying using the jaascript code from
>>
>> http://johndeck.blogspot.com/2005/09/overlaying-mercator-projected-
>> wms.html
>>
>> ?
>>
>> They use there EPSG:54004, but is this number something official or
>> it has been arbitrarily created? If not... where can I find the
>> parameters to define it in Geoserver?
>>
>> Thanks in advance.
>>
>> 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&kid0709&bid&3057&dat1642
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

Mmmm. It doesn't work. Distorsion continues. (http://www.wfisjamboree2007.org/)

I'm using these files:
http://www.wfisjamboree2007.org/sites/default/wms236.js
http://www.wfisjamboree2007.org/sites/default/wfisjam2007gmap.js

Javier, what "myMercZoomLevel" value are you using in your custom tile?

Now the point is to find the proper EPSG code. Jhon says that he get good
results with that code + Mapserver. Why it looks different in Geoserver?

Once we find the magic number, jhon can modify his wms236.js script.

eduin

--- Chris Holmes <cholmes@anonymised.com> escribió:

Could you try using EPSG 41001? If that works I'd like to make a quick
tutorial, or at least point at John Deck's blog and tell people to use
41001, instead of 54004. Please let me know.

Note I talked to John Deck, and he said he arbitrarily made up 54004.
If it's already in epsg db under another number I'd much prefer we just
use that.

Chris

Chris Holmes wrote:
> For some reason this email hasn't shown up in my normal account.
>
> Actually someone just asked about this:
>

http://www.nabble.com/Advertise-layers-in-SRS-54004-(T-mercator)-t1578926.html

>
>
> The answer is no, it's not included in GeoServer. Looking at the blog
> post,
>

http://docs.codehaus.org/display/GEOSDOC/Custom+projection+definition+in+Geoserver

>
> is the equivalent of changing Proj4, his first step.
>
> If someone does that and contributes it back I think we could consider
> including it as a nice short cut for users by default. I'm not sure
> that 54004 is a real EPSG number, but if it's in the range where you
> can put in what you like I think we could just include it.
>
> best regards,
>
> Chris
>
> On 5/12/06, Javier de la Torre <jatorre@anonymised.com> wrote:
>
>> Hi list,
>>
>> While using Geoserver with Google Maps I realized I needed the
>> Mercator projection to overlay my maps with Google's .
>>
>> Is this projection already included in Geoserver? I can find the word
>> mercator in several places but I am not sure which EPSG to use...
>>
>> Has anybody tried overlaying using the jaascript code from
>>
>> http://johndeck.blogspot.com/2005/09/overlaying-mercator-projected-
>> wms.html
>>
>> ?
>>
>> They use there EPSG:54004, but is this number something official or
>> it has been arbitrarily created? If not... where can I find the
>> parameters to define it in Geoserver?
>>
>> Thanks in advance.
>>
>> 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&kid0709&bid&3057&dat1642
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org
> begin:vcard
fn:Chris Holmes
n:Holmes;Chris
org:The Open Planning Project
adr:;;377 Broadway, 11th Floor;New York;NY;10013;USA
email;internet:cholmes@anonymised.com
title:VP, Strategic Development
x-mozilla-html:FALSE
url:http://topp.openplans.org
version:2.1
end:vcard

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/

In my case I haven't try because when I use the 41001 EPSG I get very
wierd images so I haven't try to overlap it with Google maps still..

But I also don't understand the translation of coordinates that John is doing...

I keep trying...

On 5/15/06, Eduin Carrillo <yecarrillo@anonymised.com> wrote:

Mmmm. It doesn't work. Distorsion continues. (http://www.wfisjamboree2007.org/)

I'm using these files:
http://www.wfisjamboree2007.org/sites/default/wms236.js
http://www.wfisjamboree2007.org/sites/default/wfisjam2007gmap.js

Javier, what "myMercZoomLevel" value are you using in your custom tile?

Now the point is to find the proper EPSG code. Jhon says that he get good
results with that code + Mapserver. Why it looks different in Geoserver?

Once we find the magic number, jhon can modify his wms236.js script.

eduin

--- Chris Holmes <cholmes@anonymised.com> escribió:

> Could you try using EPSG 41001? If that works I'd like to make a quick
> tutorial, or at least point at John Deck's blog and tell people to use
> 41001, instead of 54004. Please let me know.
>
> Note I talked to John Deck, and he said he arbitrarily made up 54004.
> If it's already in epsg db under another number I'd much prefer we just
> use that.
>
> Chris
>
> Chris Holmes wrote:
> > For some reason this email hasn't shown up in my normal account.
> >
> > Actually someone just asked about this:
> >
>
http://www.nabble.com/Advertise-layers-in-SRS-54004-(T-mercator)-t1578926.html
>
> >
> > The answer is no, it's not included in GeoServer. Looking at the blog
> > post,
> >
>
http://docs.codehaus.org/display/GEOSDOC/Custom+projection+definition+in+Geoserver
>
> >
> > is the equivalent of changing Proj4, his first step.
> >
> > If someone does that and contributes it back I think we could consider
> > including it as a nice short cut for users by default. I'm not sure
> > that 54004 is a real EPSG number, but if it's in the range where you
> > can put in what you like I think we could just include it.
> >
> > best regards,
> >
> > Chris
> >
> > On 5/12/06, Javier de la Torre <jatorre@anonymised.com> wrote:
> >
> >> Hi list,
> >>
> >> While using Geoserver with Google Maps I realized I needed the
> >> Mercator projection to overlay my maps with Google's .
> >>
> >> Is this projection already included in Geoserver? I can find the word
> >> mercator in several places but I am not sure which EPSG to use...
> >>
> >> Has anybody tried overlaying using the jaascript code from
> >>
> >> http://johndeck.blogspot.com/2005/09/overlaying-mercator-projected-
> >> wms.html
> >>
> >> ?
> >>
> >> They use there EPSG:54004, but is this number something official or
> >> it has been arbitrarily created? If not... where can I find the
> >> parameters to define it in Geoserver?
> >>
> >> Thanks in advance.
> >>
> >> 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&kid0709&bid&3057&dat1642
> > _______________________________________________
> > Geoserver-users mailing list
> > Geoserver-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
> --
> Chris Holmes
> The Open Planning Project
> http://topp.openplans.org
> > begin:vcard
> fn:Chris Holmes
> n:Holmes;Chris
> org:The Open Planning Project
> adr:;;377 Broadway, 11th Floor;New York;NY;10013;USA
> email;internet:cholmes@anonymised.com
> title:VP, Strategic Development
> x-mozilla-html:FALSE
> url:http://topp.openplans.org
> version:2.1
> end:vcard
>

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/

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

In my case I haven't try because when I use the 41001 EPSG I get very
wierd images so I haven't try to overlap it with Google maps still..

41001 with geoserver layers only, or in conjunction with Google maps?

But I also don't understand the translation of coordinates that John is doing...

From what I saw, he makes sure that all layers are in the same units.

Alex

I keep trying...

On 5/15/06, Eduin Carrillo <yecarrillo@...54...> wrote:
> Mmmm. It doesn't work. Distorsion continues. (http://www.wfisjamboree2007.org/)
>
> I'm using these files:
> http://www.wfisjamboree2007.org/sites/default/wms236.js
> http://www.wfisjamboree2007.org/sites/default/wfisjam2007gmap.js
>
> Javier, what "myMercZoomLevel" value are you using in your custom tile?
>
> Now the point is to find the proper EPSG code. Jhon says that he get good
> results with that code + Mapserver. Why it looks different in Geoserver?
>
> Once we find the magic number, jhon can modify his wms236.js script.
>
> eduin
>
> --- Chris Holmes <cholmes@...1...> escribió:
>
> > Could you try using EPSG 41001? If that works I'd like to make a quick
> > tutorial, or at least point at John Deck's blog and tell people to use
> > 41001, instead of 54004. Please let me know.
> >
> > Note I talked to John Deck, and he said he arbitrarily made up 54004.
> > If it's already in epsg db under another number I'd much prefer we just
> > use that.
> >
> > Chris
> >
> > Chris Holmes wrote:
> > > For some reason this email hasn't shown up in my normal account.
> > >
> > > Actually someone just asked about this:
> > >
> >
> http://www.nabble.com/Advertise-layers-in-SRS-54004-(T-mercator)-t1578926.html
> >
> > >
> > > The answer is no, it's not included in GeoServer. Looking at the blog
> > > post,
> > >
> >
> http://docs.codehaus.org/display/GEOSDOC/Custom+projection+definition+in+Geoserver
> >
> > >
> > > is the equivalent of changing Proj4, his first step.
> > >
> > > If someone does that and contributes it back I think we could consider
> > > including it as a nice short cut for users by default. I'm not sure
> > > that 54004 is a real EPSG number, but if it's in the range where you
> > > can put in what you like I think we could just include it.
> > >
> > > best regards,
> > >
> > > Chris
> > >
> > > On 5/12/06, Javier de la Torre <jatorre@...84...> wrote:
> > >
> > >> Hi list,
> > >>
> > >> While using Geoserver with Google Maps I realized I needed the
> > >> Mercator projection to overlay my maps with Google's .
> > >>
> > >> Is this projection already included in Geoserver? I can find the word
> > >> mercator in several places but I am not sure which EPSG to use...
> > >>
> > >> Has anybody tried overlaying using the jaascript code from
> > >>
> > >> http://johndeck.blogspot.com/2005/09/overlaying-mercator-projected-
> > >> wms.html
> > >>
> > >> ?
> > >>
> > >> They use there EPSG:54004, but is this number something official or
> > >> it has been arbitrarily created? If not... where can I find the
> > >> parameters to define it in Geoserver?
> > >>
> > >> Thanks in advance.
> > >>
> > >> 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&kid0709&bid&3057&dat1642
> > > _______________________________________________
> > > Geoserver-users mailing list
> > > Geoserver-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/geoserver-users
> >
> > --
> > Chris Holmes
> > The Open Planning Project
> > http://topp.openplans.org
> > > begin:vcard
> > fn:Chris Holmes
> > n:Holmes;Chris
> > org:The Open Planning Project
> > adr:;;377 Broadway, 11th Floor;New York;NY;10013;USA
> > email;internet:cholmes@...1...
> > title:VP, Strategic Development
> > x-mozilla-html:FALSE
> > url:http://topp.openplans.org
> > version:2.1
> > end:vcard
> >
>
> __________________________________________________
> Correo Yahoo!
> Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
> Regístrate ya - http://correo.espanol.yahoo.com/
>

-------------------------------------------------------
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?cmdlnk&kid0709&bid&3057&dat1642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

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

Something strange happens, look:

This my original one in 4326:

http://synthesys.csic.es:8080/geoserver/wms?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&SRS=EPSG:4326&BBOX=-180,-90,180,90&WIDTH=1000&HEIGHT=570&LAYERS=tdwg:richness_by_c_square_05&FORMAT=image/png&STYLES=&TRANSPARENT=TRUE&UNIQUEID=

If I try with 41001 I get this:

http://synthesys.csic.es:8080/geoserver/wms?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&SRS=EPSG:41001&BBOX=-180,-90,180,90&WIDTH=1000&HEIGHT=570&LAYERS=tdwg:richness_by_c_square_05&FORMAT=image/png&STYLES=&TRANSPARENT=TRUE&UNIQUEID=

Javier.

In the second request, the BBOX is in meters (rather than degrees).
This is because EPSG:41001 has "meter" for its unit.

Try widening the BBOX size and you will get something closer to your
first example:
http://synthesys.csic.es:8080/geoserver/wms?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&SRS=EPSG:41001&BBOX=-20000000,-20000000,20000000,20000000&WIDTH=1000&HEIGHT=570&LAYERS=tdwg:richness_by_c_square_05&FORMAT=image/png&STYLES=&TRANSPARENT=TRUE&UNIQUEID=

Alex

Right, right,

Thanks. I found it yesterday but I thik I only replied to Chris and
not the whole mailing list .

I am adapting the javascript code now but it looks fine already :slight_smile:

Thanks.

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

On 5/15/06, Javier de la Torre <jatorre@anonymised.com> wrote:
> Something strange happens, look:
>
> This my original one in 4326:
>
> http://synthesys.csic.es:8080/geoserver/wms?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&SRS=EPSG:4326&BBOX=-180,-90,180,90&WIDTH=1000&HEIGHT=570&LAYERS=tdwg:richness_by_c_square_05&FORMAT=image/png&STYLES=&TRANSPARENT=TRUE&UNIQUEID=
>
> If I try with 41001 I get this:
>
> http://synthesys.csic.es:8080/geoserver/wms?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&SRS=EPSG:41001&BBOX=-180,-90,180,90&WIDTH=1000&HEIGHT=570&LAYERS=tdwg:richness_by_c_square_05&FORMAT=image/png&STYLES=&TRANSPARENT=TRUE&UNIQUEID=
>
> Javier.
>

In the second request, the BBOX is in meters (rather than degrees).
This is because EPSG:41001 has "meter" for its unit.

Try widening the BBOX size and you will get something closer to your
first example:
http://synthesys.csic.es:8080/geoserver/wms?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&SRS=EPSG:41001&BBOX=-20000000,-20000000,20000000,20000000&WIDTH=1000&HEIGHT=570&LAYERS=tdwg:richness_by_c_square_05&FORMAT=image/png&STYLES=&TRANSPARENT=TRUE&UNIQUEID=

Alex