But the epsg code 27492 is a system of coordinated that's declared in
Lat/Long, and my dataset use the same system of coordinated but is declared
in X/Y. The system of coordinated it's the same, but is declared in
different ways, you understand me? The same system of coordinated can be
declare in Lat/Long, in X/Y or in Eastings/Northings.
So, when I load my dataset in geoserver and I make Geoserver compute the
lat/long bouding box, the values of bounding box in lat/long it's could be
correct in Lat/Long, but because my dataset it's in X/Y, the min and max
values not encloses my dataset and I can't see nothing.
What can I do?
Here's an example:
1º SRS=27492 (bounding box not encloses my dataset)
2º SRS=4326 (bounding box encloses my dataset)
Thanks,
Diogo
-----Original Message-----
From: Andrea Aime [mailto:aaime@anonymised.com]
Sent: terça-feira, 23 de Janeiro de 2007 10:46
To: Diogo Vieira
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Geoserver BoundingBox
Diogo Vieira ha scritto:
Hi,
But I have my dataset in system of coordinated that's:
PROJCS["Portuguese National System (D73)", GEOGCS [ "Melrica 1973 (D73)",
DATUM ["Melrica 1973 (D73)", SPHEROID ["International 1924", 6378388,
297]],
PRIMEM [ "Greenwich", 0.000000 ], UNIT ["Decimal Degree",
0.01745329251994330]], PROJECTION ["Transverse Mercator"], PARAMETER
["Scale_Factor", 1.000000], PARAMETER ["Central_Meridian", -8.131906],
PARAMETER ["Latitude_Of_Origin", 39.666667], PARAMETER ["False_Easting",
180.598000], PARAMETER ["False_Northing", -86.990000], UNIT ["Meter",
1.000000000000]]
, where dataset in system Cartesian (X/Y).
So what need to do for publish my data? I have to convert all to Lat/Long?
I
have no other choice?
No, you just have to declare the proper epsg code for your reference
system. Looking at the srs list you'll discover that the espg code for
your dataset is 27492 (searched with the browser for "Portuguese" and
after a few tries I found one matching your parameters, as far as I can
tell):
PROJCS["Datum 73 / Modified Portuguese Grid",
GEOGCS["Datum 73",
DATUM["Datum 73",
SPHEROID["International 1924", 6378388.0, 297.0,
AUTHORITY["EPSG","7022"]],
TOWGS84[-239.749, 88.181, 30.488, 0.263, -0.082, -1.211,
0.4597642531247778],
AUTHORITY["EPSG","6274"]],
PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic longitude", EAST],
AXIS["Geodetic latitude", NORTH],
AUTHORITY["EPSG","4274"]],
PROJECTION["Transverse Mercator", AUTHORITY["EPSG","9807"]],
PARAMETER["central_meridian", -8.131906111111114],
PARAMETER["latitude_of_origin", 39.666666666666664],
PARAMETER["scale_factor", 1.0],
PARAMETER["false_easting", 180.598],
PARAMETER["false_northing", -86.99],
UNIT["m", 1.0],
AXIS["Easting", EAST],
AXIS["Northing", NORTH],
AUTHORITY["EPSG","27492"]]
Once you've declared the proper EPSG code, make Geoserver compute
the lat/lon bouding box (it'll compute the bbox in your reference
system, and then convert it to lat/lon).
Hope this helps
Cheers
Andrea

