[Geoserver-users] Wrong WKT String for CH1903/LV03 Projection (ESPG:21781)

Hello

I think I found a wrong WKT string for CH1903/LV03 Projection
(ESPG:21781). With the actual definition inside espg.properties you've
got a wrong display from map (you will see an example here:
http://www.zubi.li/files/schweiz.jpg). With the WKT string from
PostGIS the same source will displayed correct!!

Who can forward this mail to the correct person who can correct this
in next release? Thank you.

Regards, Thomas

2006/10/30, Thomas Zuberbuehler <tzuberbuehler@anonymised.com>:

I add your wkt string to epsg.properties, compress it again and
restart my server. But nothing happened. If I create a new feature
type with geoserver webinterface I will get:
Could not find a definition for: EPSG:45555

Thomas

2006/10/30, Alexander Petkov <greenkov@anonymised.com>:
> On 10/30/06, Thomas Zuberbuehler <tzuberbuehler@anonymised.com> wrote:
> > Following the wkt string for CH1903/LV03 (EPSG:21781) from PostGIS.
> > Its a different one to 21781 from GeoServer.
> >
> > <code>
> >
> > PROJCS["CH1903 / LV03",
> > GEOGCS["CH1903",
> > DATUM["CH1903",
> > SPHEROID["Bessel 1841",6377397.155,299.1528128,
> > AUTHORITY["EPSG","7004"]
> > ],
> > AUTHORITY["EPSG","6149"]
> > ],
> > PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],
> > UNIT["degree",0.01745329251994328,
> > AUTHORITY["EPSG","9122"]
> > ],
> > AUTHORITY["EPSG","4149"]
> > ],
> > PROJECTION["Hotine_Oblique_Mercator"],
> > PARAMETER["latitude_of_center",46.95240555555556],
> > PARAMETER["longitude_of_center",7.439583333333333],
> > PARAMETER["azimuth",90],
> > PARAMETER["rectified_grid_angle",90],
> > PARAMETER["scale_factor",1],
> > PARAMETER["false_easting",600000],
> > PARAMETER["false_northing",200000],
> > UNIT["metre",1,AUTHORITY["EPSG","9001"]],
> > AUTHORITY["EPSG","21781"]
> > ]
> > +proj=somerc +lat_0=46.95240555555556 +lon_0=7.439583333333333
> > +x_0=600000 +y_0=200000 +ellps=bessel +units=m +no_defs
> >
> > </code>
>
> The last 2 lines are proj4 text, you do not need that. Probably that's
> why it didn't parse.
>
> Just use the srtext string from the spatial_ref_sys table. You can add
> this to the epsg.properties file:
>
> 45555=PROJCS["CH1903_LV03",GEOGCS["GCS_CH1903",DATUM["D_CH1903",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Hotine_Oblique_Mercator_Azimuth_Center"],PARAMETER["False_Easting",600000],PARAMETER["False_Northing",200000],PARAMETER["Scale_Factor",1],PARAMETER["Azimuth",90],PARAMETER["Longitude_Of_Center",7.439583333333333],PARAMETER["Latitude_Of_Center",46.95240555555556],UNIT["Meter",1]]
>
> Explanation:
> 45555 is a code that I came up with. Change it to something that makes
> sense to you.
> Also, I am not certain if the entry really needs to be all on one
> line--you can try it and tell me.
>
> Alex
>

--
Thomas Zuberbuehler
http://www.zubi.li

--
Thomas Zuberbuehler
http://www.zubi.li

--
Thomas Zuberbuehler
http://www.zubi.li

Thomas Zuberbuehler ha scritto:

Hello

I think I found a wrong WKT string for CH1903/LV03 Projection
(ESPG:21781). With the actual definition inside espg.properties you've
got a wrong display from map (you will see an example here:
http://www.zubi.li/files/schweiz.jpg). With the WKT string from
PostGIS the same source will displayed correct!!

Who can forward this mail to the correct person who can correct this
in next release? Thank you.

If you're quick we may be able to include it in the
next release, yes... please post the fixed wkt string.

We'll have to check it against the latest EPSG database too, curious
to know if the error is in the official db too.

Cheers
Andrea Aime

The WKT string for CH1903/LV03
21781=PROJCS["CH1903_LV03",GEOGCS["GCS_CH1903",DATUM["D_CH1903",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Hotine_Oblique_Mercator_Azimuth_Center"],PARAMETER["False_Easting",600000],PARAMETER["False_Northing",200000],PARAMETER["Scale_Factor",1],PARAMETER["Azimuth",90],PARAMETER["Longitude_Of_Center",7.439583333333333],PARAMETER["Latitude_Of_Center",46.95240555555556],UNIT["Meter",1],AUTHORITY["EPSG","21781"]]

See also Thread "Try to add/correct a Projection in Geoserver"!

Thank you.
Regards Thomas

2006/10/30, Andrea Aime <aaime@anonymised.com>:

Thomas Zuberbuehler ha scritto:
> Hello
>
> I think I found a wrong WKT string for CH1903/LV03 Projection
> (ESPG:21781). With the actual definition inside espg.properties you've
> got a wrong display from map (you will see an example here:
> http://www.zubi.li/files/schweiz.jpg). With the WKT string from
> PostGIS the same source will displayed correct!!
>
> Who can forward this mail to the correct person who can correct this
> in next release? Thank you.

If you're quick we may be able to include it in the
next release, yes... please post the fixed wkt string.

We'll have to check it against the latest EPSG database too, curious
to know if the error is in the official db too.

Cheers
Andrea Aime

--
Thomas Zuberbuehler
http://www.zubi.li

Thomas Zuberbuehler a écrit :

The WKT string for CH1903/LV03
21781=PROJCS["CH1903_LV03",GEOGCS["GCS_CH1903",DATUM["D_CH1903",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Hotine_Oblique_Mercator_Azimuth_Center"],PARAMETER["False_Easting",600000],PARAMETER["False_Northing",200000],PARAMETER["Scale_Factor",1],PARAMETER["Azimuth",90],PARAMETER["Longitude_Of_Center",7.439583333333333],PARAMETER["Latitude_Of_Center",46.95240555555556],UNIT["Meter",1],AUTHORITY["EPSG","21781"]]

See also Thread "Try to add/correct a Projection in Geoserver"!

Do you know if this issue has been fixed? I looked manually in the "epsg.properties" file on geotools trunk and found no significant difference except for the object names ("CH1903 / LV03" vs "CH1903_LV03", etc.).

  Martin

Bonjour Martin

Since I have replace this WKT string in my working copy of GeoServer I
can transform my geodata without any problems. Before there was a
wrong transformation. See also thread discussion ("Try to add/correct
a Projection in Geoserver") with Alexander.

But I'm not 100% sure that this string is absolutly correct. As you
see in the discussion, the WKT string has the origin out of PostGIS.

Saluer de Suisse,
Thomas

2006/11/25, Martin Desruisseaux <martin.desruisseaux@anonymised.com>:

Thomas Zuberbuehler a écrit :
> The WKT string for CH1903/LV03
> 21781=PROJCS["CH1903_LV03",GEOGCS["GCS_CH1903",DATUM["D_CH1903",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Hotine_Oblique_Mercator_Azimuth_Center"],PARAMETER["False_Easting",600000],PARAMETER["False_Northing",200000],PARAMETER["Scale_Factor",1],PARAMETER["Azimuth",90],PARAMETER["Longitude_Of_Center",7.439583333333333],PARAMETER["Latitude_Of_Center",46.95240555555556],UNIT["Meter",1],AUTHORITY["EPSG","21781"]]
>
> See also Thread "Try to add/correct a Projection in Geoserver"!

Do you know if this issue has been fixed? I looked manually in the
"epsg.properties" file on geotools trunk and found no significant difference
except for the object names ("CH1903 / LV03" vs "CH1903_LV03", etc.).

        Martin

--
Thomas Zuberbuehler
http://www.zubi.li

From MAILER-DAEMON Sat Nov 25 12:16:36 2006
Date: Sun, 26 Nov 2006 03:34:27 +0700
From: bhs@anonymised.com
To: geoserver-users@lists.sourceforge.net
X-MDaemon-Deliver-To: geoserver-users@lists.sourceforge.net
Message-ID: <MDAEMON0018200611260334.AA3427734@anonymised.com>
Mime-Version: 1.0
X-Actual-From: bhs@anonymised.com
X-Return-Path: <>
X-Spam-Score: 0.2 (/)
X-Spam-Report: Spam Filtering performed by sourceforge.net.
  See http://spamassassin.org/tag/ for more details.
  Report problems to
  http://sf.net/tracker/?func­d&amp;group\_id=1&amp;atid=200001
  0.2 NO_REAL_NAME From: does not include a real name
Subject: [Geoserver-users] Geoserver-users Digest, Vol 6, Issue 42
X-BeenThere: geoserver-users@lists.sourceforge.net
X-Mailman-Version: 2.1.8
Precedence: list
Reply-To: geoserver-users@lists.sourceforge.net
List-Id: Help for geoserver users <geoserver-users.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/geoserver-users&gt;, <mailto:geoserver-users-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=geoserver-users&gt;
List-Post: <mailto:geoserver-users@lists.sourceforge.net>
List-Help: <mailto:geoserver-users-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/geoserver-users&gt;, <mailto:geoserver-users-request@lists.sourceforge.net?subject=subscribe>
X-List-Received-Date: Sat, 25 Nov 2006 20:16:36 -0000
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit

Deputy Chief of SCIREN
http://www2.hcm.ciren.gov.vn/jvnwebgis

From MAILER-DAEMON Sun Nov 26 12:20:41 2006
Date: Mon, 27 Nov 2006 03:38:32 +0700
From: bhs@anonymised.com
To: geoserver-users@lists.sourceforge.net
X-MDaemon-Deliver-To: geoserver-users@lists.sourceforge.net
Message-ID: <MDAEMON0022200611270338.AA3832671@anonymised.com>
Mime-Version: 1.0
X-Actual-From: bhs@anonymised.com
X-Return-Path: <>
X-Spam-Score: 0.2 (/)
X-Spam-Report: Spam Filtering performed by sourceforge.net.
  See http://spamassassin.org/tag/ for more details.
  Report problems to
  http://sf.net/tracker/?func=add&group_id=1&atid=200001
  0.2 NO_REAL_NAME From: does not include a real name
Subject: [Geoserver-users] Geoserver-users Digest, Vol 6, Issue 43
X-BeenThere: geoserver-users@lists.sourceforge.net
X-Mailman-Version: 2.1.8
Precedence: list
Reply-To: geoserver-users@lists.sourceforge.net
List-Id: Help for geoserver users <geoserver-users.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/geoserver-users&gt;, <mailto:geoserver-users-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=geoserver-users&gt;
List-Post: <mailto:geoserver-users@lists.sourceforge.net>
List-Help: <mailto:geoserver-users-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/geoserver-users&gt;, <mailto:geoserver-users-request@lists.sourceforge.net?subject=subscribe>
X-List-Received-Date: Sun, 26 Nov 2006 20:20:42 -0000
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit

Deputy Chief of SCIREN
http://www2.hcm.ciren.gov.vn/jvnwebgis