[Geoserver-users] Add a custom projection in GeoServer???

Hi,

The projection is not listed here http://docs.geotools.org/latest/javadocs/org/geotools/referencing/operation/projection/package-summary.html so I guess that somebody should program a support for that first.

I guess you mean this http://www.remotesensing.org/geotiff/proj_list/cylindrical_equal_area.html
EPSG-registry seems to know it as EPSG:9834
http://epsg-registry.org/report.htm?type=selection&entity=urn:ogc:def:method:EPSG::9834&reportDetail=short&style=urn:uuid:report-style:default-with-code&style_name=OGP%20Default%20With%20Code&title=9834

-Jukka Rahkonen-

pascal wrote:

Hi,

I'm trying to integrate a cylindrical equal-area projection in GeoSever (Lambert
or Gall–Peters or others) so I put the WKT code (epsg = 54034) in the
epsg.properties file but I have this error message:
Error decoding CRS: Error in "PROJECTION": No transform for classification
"Cylindrical_Equal_Area".

So my questions are:
If GeoServer doesn't include a projection, is it possible to add a projection just
adding a WKT definition in the epsg.properties file? If not it makes sense
because the WKT file just serve to communicate the parameters to the java
code?
So the sentence "Add a custom projection" means that we can change/adapt a
projection existing in GeoServer but no create it?
So, concretely what's the method to use to create a new projection in
GeoServer?

Thanks a lot for your help,

Pascal.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Add-a-
custom-projection-in-GeoServer-tp5086524.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

On Wed, Oct 30, 2013 at 11:38 AM, Rahkonen Jukka
<jukka.rahkonen@anonymised.com>wrote:

Hi,

The projection is not listed here
http://docs.geotools.org/latest/javadocs/org/geotools/referencing/operation/projection/package-summary.htmlso I guess that somebody should program a support for that first.

Correct.
Here is an example of a patch that added support for a projection:
https://github.com/geotools/geotools/commit/677ac06407dc9881992f37db7e7ba56bc6e95fcf

Something similar needs to be done for the the equidistant cylindrical. The
math is 1-1 with the one used by libproj,
so normally adapting libproj code resulting in a working GeoTools
projection.

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

Hi,

First of all, thanks for your answers!

That means that if a projection is listed in
http://docs.geotools.org/latest/javadocs/org/geotools/referencing/operation/projection/package-summary.html,
we could add this projection by adding the WKT code in the epsg.properties
file?
I've tried with the Robinson projection (present in the list above) but it
doesn't work.

Thanks a lot again for your help!

Pascal.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Add-a-custom-projection-in-GeoServer-tp5086524p5086596.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Wed, Oct 30, 2013 at 3:16 PM, pascal <pascal2833@anonymised.com> wrote:

Hi,

First of all, thanks for your answers!

That means that if a projection is listed in

http://docs.geotools.org/latest/javadocs/org/geotools/referencing/operation/projection/package-summary.html
,
we could add this projection by adding the WKT code in the epsg.properties
file?
I've tried with the Robinson projection (present in the list above) but it
doesn't work.

It did work when I added it. What version of GeoServer are you using, and
which wkt have you added
to epsg.properties?

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

Hi,
Thanks again for your quick answer!
First of all, I have to said that I change the WKT code and know it "works"
but if I want to see the entire world, one tile is blanck. If I zoom it's ok
but If I try to turn back to visualize the world, it occurs the same. I know
of course that such things sometime occur but this time it's different
because it's always occurs at the sames zoom nivels (see image link).

What version of GeoServer are you using?
I'm using the 2.3.5 version.

and which wkt have you added to epsg.properties?
This one : 54030=PROJCS["WGS84 / Robinson", GEOGCS["WGS 84", DATUM["World
Geodetic System 1984", SPHEROID["WGS 84", 6378137.0, 298.257223563,
AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",
0.0, AUTHORITY["EPSG","8901"]], UNIT["degree", 0.017453292519943295],
AUTHORITY["EPSG","4326"]], PROJECTION["Robinson"], UNIT["m", 1.0]]

Thanks a lot !

Pascal.
<http://osgeo-org.1560.x6.nabble.com/file/n5086717/ScreenHunter_01_Oct._30_23.17.gif&gt;

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Add-a-custom-projection-in-GeoServer-tp5086524p5086717.html
Sent from the GeoServer - User mailing list archive at Nabble.com.