[Geoserver-users] help re image loading.

Hi all,
Im a newbie trying to set up a mapping web service for our local environmental group.
Can get it all up and running in wgs84(EPSG 4326) but can’t get features to load over imagery when using nzmg (EPSG 27200)
The nzmg image will only display in the openlayers demo if I accept 4326 as default projection.
Why is this? Im happy with this outcome but don’t know what EPSG to use for the overlay features to get them to display.
This is the code the demo produces it uses nzmg as bounds and tile origin and wgs84 as map projection.
Help very much appreciated as would much prefer to have maps displaying in NZMG.

Regards
Chris
var bounds = new OpenLayers.Bounds(
2629421.80675075, 6192776.734840927,
2633541.29183475, 6195367.7231969265
);
var options = {
controls: [],
maxExtent: bounds,
maxResolution: 16.09173860937517,
projection: “EPSG:4326”,
units: ‘degrees’
};
map = new OpenLayers.Map(‘map’, options);

// setup tiled layer
tiled = new OpenLayers.Layer.WMS(
“topp:RectifyTRC_App_NZmg_1 - Tiled”, "
{
width: ‘800’,
srs: ‘EPSG:4326’,
layers: ‘topp:RectifyTRC_App_NZmg_1’,
height: ‘472’,
styles: ‘’,
format: format,
tiled: ‘true’,
tilesOrigin : "2629421.80675075,6192776.734840927

Hi Chris,

So if I understand correctly you are trying to overlay features on top of some imagery? It would help to know the type of the imagery, is it a raster file that you have configured geoserver to serve, or some layer from an external WMS?

It would also help to know the store from which the features are being stored? Shapefile? database? etc...

In both cases how the spatial reference system is configured would also be useful? What is the native reference system? What is the one that has been configured in geoserver?

-Justin

chris Wild wrote:

Hi all,
Im a newbie trying to set up a mapping web service for our local environmental group.
Can get it all up and running in wgs84(EPSG 4326) but can't get features to load over imagery when using nzmg (EPSG 27200)
The nzmg image will only display in the openlayers demo if I accept 4326 as default projection.
Why is this? Im happy with this outcome but don't know what EPSG to use for the overlay features to get them to display.
This is the code the demo produces it uses nzmg as bounds and tile origin and wgs84 as map projection.
Help very much appreciated as would much prefer to have maps displaying in NZMG.
Regards
Chris
  /var bounds = new OpenLayers.Bounds(
                    2629421.80675075, 6192776.734840927,
                    2633541.29183475, 6195367.7231969265
                );
                var options = {
                    controls: ,
                    maxExtent: bounds,
                    maxResolution: 16.09173860937517,
                    projection: "EPSG:4326",
                    units: 'degrees'
                };
                map = new OpenLayers.Map('map', options);
                           // setup tiled layer
                tiled = new OpenLayers.Layer.WMS(
                    "topp:RectifyTRC_App_NZmg_1 - Tiled", "//
                    {
                        width: '800',
                        srs: 'EPSG:4326',
                        layers: 'topp:RectifyTRC_App_NZmg_1',
                        height: '472',
                        styles: '',
                        format: format,
                        tiled: 'true',
                        tilesOrigin : "2629421.80675075,6192776.734840927/

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

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com

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

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

On Tue, Mar 24, 2009 at 11:56 AM, chris Wild <chrismwild@anonymised.com> wrote:

Hi Justin,
Thanks heaps for the reply. Yes the image and overlays work if I use wgs 84 but not nzmg.

The image is a rectified aerial photo image from ArcMap and has a .tiff extension. I loaded in GeoServer as a raster image with spatial reference in coverage stores as a coverage. Will diplay if i use EPSG:4326 as native reference but not its correct projection 27200.

Im using shapefiles which i have loaded in to the geoserver DataStores as feature types.

I have loaded both wgs84 layers( the native reference system 4326)and nzmg layers(the native reference system 27200). Neither will display over the image.

I have tried a combination like the the one that displays the image ie native reference system 27200 configured to 4326 but this fails to display in the demo or over the image.

I’m not understanding how Geoserver/Openlayers manages to define a map in EPSG:4326,use EPSG 27200 bounds/tile origin and yet the image has the shape of a EPSG 27200 image not the flattened EPSG:4326 shape. i would have thought if it is reprojecting the image it would have the EPSG 4326 shape and just be giving co-ordinate read outs in 27200.
Feature layers in 27200 work ok just the image which is causing me grief.
really appreciate your help and will contribute back a tutorial if desired.

Regards
Chris

On Tue, Mar 24, 2009 at 11:02 AM, Justin Deoliveira <jdeolive@anonymised.com> wrote:

Hi Chris,

So if I understand correctly you are trying to overlay features on top of some imagery? It would help to know the type of the imagery, is it a raster file that you have configured geoserver to serve, or some layer from an external WMS?

It would also help to know the store from which the features are being stored? Shapefile? database? etc…

In both cases how the spatial reference system is configured would also be useful? What is the native reference system? What is the one that has been configured in geoserver?

-Justin

chris Wild wrote:

Hi all,
Im a newbie trying to set up a mapping web service for our local environmental group.
Can get it all up and running in wgs84(EPSG 4326) but can’t get features to load over imagery when using nzmg (EPSG 27200)
The nzmg image will only display in the openlayers demo if I accept 4326 as default projection.
Why is this? Im happy with this outcome but don’t know what EPSG to use for the overlay features to get them to display.
This is the code the demo produces it uses nzmg as bounds and tile origin and wgs84 as map projection.
Help very much appreciated as would much prefer to have maps displaying in NZMG.
Regards
Chris
/var bounds = new OpenLayers.Bounds(
2629421.80675075, 6192776.734840927,
2633541.29183475, 6195367.7231969265
);
var options = {
controls: ,
maxExtent: bounds,
maxResolution: 16.09173860937517,
projection: “EPSG:4326”,
units: ‘degrees’
};
map = new OpenLayers.Map(‘map’, options);
// setup tiled layer
tiled = new OpenLayers.Layer.WMS(
“topp:RectifyTRC_App_NZmg_1 - Tiled”, "//
{
width: ‘800’,
srs: ‘EPSG:4326’,
layers: ‘topp:RectifyTRC_App_NZmg_1’,
height: ‘472’,
styles: ‘’,
format: format,
tiled: ‘true’,

tilesOrigin : "2629421.80675075,6192776.734840927/



Apps built with the Adobe(R) Flex(R) framework and Flex Builder™ are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse™based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Hi Chris,

So it sounds like this message may be more appropriate for the openlayers list. That said, it sounds like the native projection of the imagery may not be read properly. What does GeoServer report as the native projection on the coverage editor page?

-Justin

chris Wild wrote:

On Tue, Mar 24, 2009 at 11:56 AM, chris Wild <chrismwild@anonymised.com <mailto:chrismwild@anonymised.com>> wrote:

    Hi Justin,
    Thanks heaps for the reply. Yes the image and overlays work if I use
    wgs 84 but not nzmg.
    The image is a rectified aerial photo image from ArcMap and has a
    .tiff extension. I loaded in GeoServer as a raster image with
    spatial reference in coverage stores as a coverage. Will diplay if i
    use EPSG:4326 as native reference but not its correct projection 27200.
         Im using shapefiles which i have loaded in to the geoserver
    DataStores as feature types.
    I have loaded both wgs84 layers( the native reference system
    4326)and nzmg layers(the native reference system 27200). Neither
    will display over the image.
    I have tried a combination like the the one that displays the image
    ie native reference system 27200 configured to 4326 but this fails
    to display in the demo or over the image.
         I'm not understanding how Geoserver/Openlayers manages to define a
    map in EPSG:4326,use EPSG 27200 bounds/tile origin and yet the image
    has the shape of a EPSG 27200 image not the flattened EPSG:4326
    shape. i would have thought if it is reprojecting the image it would
    have the EPSG 4326 shape and just be giving co-ordinate read outs in
    27200.
    Feature layers in 27200 work ok just the image which is causing me
    grief.
    really appreciate your help and will contribute back a tutorial if
    desired.
         Regards
    Chris

         On Tue, Mar 24, 2009 at 11:02 AM, Justin Deoliveira
    <jdeolive@anonymised.com <mailto:jdeolive@anonymised.com>> wrote:

        Hi Chris,

        So if I understand correctly you are trying to overlay features
        on top of some imagery? It would help to know the type of the
        imagery, is it a raster file that you have configured geoserver
        to serve, or some layer from an external WMS?

        It would also help to know the store from which the features are
        being stored? Shapefile? database? etc...

        In both cases how the spatial reference system is configured
        would also be useful? What is the native reference system? What
        is the one that has been configured in geoserver?

        -Justin

        chris Wild wrote:

            Hi all,
            Im a newbie trying to set up a mapping web service for our
            local environmental group.
            Can get it all up and running in wgs84(EPSG 4326) but can't
            get features to load over imagery when using nzmg (EPSG 27200)
            The nzmg image will only display in the openlayers demo if I
            accept 4326 as default projection.
            Why is this? Im happy with this outcome but don't know what
            EPSG to use for the overlay features to get them to display.
            This is the code the demo produces it uses nzmg as bounds
            and tile origin and wgs84 as map projection.
            Help very much appreciated as would much prefer to have maps
            displaying in NZMG.
             Regards
            Chris
             /var bounds = new OpenLayers.Bounds(
                               2629421.80675075, 6192776.734840927,
                               2633541.29183475, 6195367.7231969265
                           );
                           var options = {
                               controls: ,
                               maxExtent: bounds,
                               maxResolution: 16.09173860937517,
                               projection: "EPSG:4326",
                               units: 'degrees'
                           };
                           map = new OpenLayers.Map('map', options);
                                     // setup tiled layer
                           tiled = new OpenLayers.Layer.WMS(
                               "topp:RectifyTRC_App_NZmg_1 - Tiled", "//
                               {
                                   width: '800',
                                   srs: 'EPSG:4326',
                                   layers: 'topp:RectifyTRC_App_NZmg_1',
                                   height: '472',
                                   styles: '',
                                   format: format,
                                   tiled: 'true',
                                   tilesOrigin :
            "2629421.80675075,6192776.734840927/

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

            ------------------------------------------------------------------------------
            Apps built with the Adobe(R) Flex(R) framework and Flex
            Builder(TM) are
            powering Web 2.0 with engaging, cross-platform capabilities.
            Quickly and
            easily build your RIAs with Flex Builder, the
            Eclipse(TM)based development
            software that enables intelligent coding and step-through
            debugging.
            Download the free 60 day trial.
            http://p.sf.net/sfu/www-adobe-com

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

            _______________________________________________
            Geoserver-users mailing list
            Geoserver-users@lists.sourceforge.net
            <mailto:Geoserver-users@lists.sourceforge.net>
            https://lists.sourceforge.net/lists/listinfo/geoserver-users

        -- Justin Deoliveira
        OpenGeo - http://opengeo.org/&gt;
        Enterprise support for open source geospatial.

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

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com

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

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Hi Justin,
The native projection is reading as

Native SRS WKT: 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], AXIS[“Geodetic longitude”, EAST], AXIS[“Geodetic latitude”, NORTH], AUTHORITY[“EPSG”,“4326”]]

The image is projected in NZMG (EPSG 27200) so should its native be that also?
No matter what projection any image I load Geoserver always gives WGS84 as its native.
Is this how it should function?

Regards
Chris

On Wed, Mar 25, 2009 at 5:39 AM, Justin Deoliveira <jdeolive@anonymised.com> wrote:

Hi Chris,

So it sounds like this message may be more appropriate for the openlayers list. That said, it sounds like the native projection of the imagery may not be read properly. What does GeoServer report as the native projection on the coverage editor page?

-Justin

chris Wild wrote:

On Tue, Mar 24, 2009 at 11:56 AM, chris Wild <chrismwild@anonymised.com mailto:[chrismwild@anonymised.com.](mailto:chrismwild@anonymised.com)> wrote:

Hi Justin,
Thanks heaps for the reply. Yes the image and overlays work if I use
wgs 84 but not nzmg.
The image is a rectified aerial photo image from ArcMap and has a
.tiff extension. I loaded in GeoServer as a raster image with
spatial reference in coverage stores as a coverage. Will diplay if i
use EPSG:4326 as native reference but not its correct projection 27200.
Im using shapefiles which i have loaded in to the geoserver
DataStores as feature types.
I have loaded both wgs84 layers( the native reference system
4326)and nzmg layers(the native reference system 27200). Neither
will display over the image.
I have tried a combination like the the one that displays the image
ie native reference system 27200 configured to 4326 but this fails
to display in the demo or over the image.
I’m not understanding how Geoserver/Openlayers manages to define a
map in EPSG:4326,use EPSG 27200 bounds/tile origin and yet the image
has the shape of a EPSG 27200 image not the flattened EPSG:4326
shape. i would have thought if it is reprojecting the image it would
have the EPSG 4326 shape and just be giving co-ordinate read outs in
27200.
Feature layers in 27200 work ok just the image which is causing me
grief.
really appreciate your help and will contribute back a tutorial if
desired.
Regards
Chris

On Tue, Mar 24, 2009 at 11:02 AM, Justin Deoliveira

<jdeolive@anonymised.com mailto:[jdeolive@anonymised.com](mailto:jdeolive@anonymised.com)> wrote:

Hi Chris,

So if I understand correctly you are trying to overlay features
on top of some imagery? It would help to know the type of the
imagery, is it a raster file that you have configured geoserver
to serve, or some layer from an external WMS?

It would also help to know the store from which the features are
being stored? Shapefile? database? etc…

In both cases how the spatial reference system is configured
would also be useful? What is the native reference system? What
is the one that has been configured in geoserver?

-Justin

chris Wild wrote:

Hi all,
Im a newbie trying to set up a mapping web service for our
local environmental group.
Can get it all up and running in wgs84(EPSG 4326) but can’t
get features to load over imagery when using nzmg (EPSG 27200)
The nzmg image will only display in the openlayers demo if I
accept 4326 as default projection.
Why is this? Im happy with this outcome but don’t know what
EPSG to use for the overlay features to get them to display.
This is the code the demo produces it uses nzmg as bounds
and tile origin and wgs84 as map projection.
Help very much appreciated as would much prefer to have maps
displaying in NZMG.
Regards
Chris
/var bounds = new OpenLayers.Bounds(
2629421.80675075, 6192776.734840927,
2633541.29183475, 6195367.7231969265
);
var options = {
controls: ,
maxExtent: bounds,
maxResolution: 16.09173860937517,
projection: “EPSG:4326”,
units: ‘degrees’
};
map = new OpenLayers.Map(‘map’, options);
// setup tiled layer
tiled = new OpenLayers.Layer.WMS(
“topp:RectifyTRC_App_NZmg_1 - Tiled”, "//
{
width: ‘800’,
srs: ‘EPSG:4326’,
layers: ‘topp:RectifyTRC_App_NZmg_1’,
height: ‘472’,
styles: ‘’,
format: format,
tiled: ‘true’,
tilesOrigin :
"2629421.80675075,6192776.734840927/



Apps built with the Adobe(R) Flex(R) framework and Flex
Builder™ are
powering Web 2.0 with engaging, cross-platform capabilities.
Quickly and
easily build your RIAs with Flex Builder, the
Eclipse™based development
software that enables intelligent coding and step-through
debugging.
Download the free 60 day trial.
http://p.sf.net/sfu/www-adobe-com



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net

mailto:[Geoserver-users@anonymised.comorge.net](mailto:Geoserver-users@lists.sourceforge.net)

https://lists.sourceforge.net/lists/listinfo/geoserver-users

– Justin Deoliveira

OpenGeo - http://opengeo.org <http://opengeo.org/>

Enterprise support for open source geospatial.



Apps built with the Adobe(R) Flex(R) framework and Flex Builder™ are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse™based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

chris Wild ha scritto:

Hi Justin,
The native projection is reading as
Native SRS WKT: 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], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH], AUTHORITY["EPSG","4326"]]

The image is projected in NZMG (EPSG 27200) so should its native be that also?
No matter what projection any image I load Geoserver always gives WGS84 as its native.

Hum, which file format is your raster data into?
If you're using the world image format, and you only have a world
file, but not a projection file (.prj), the reader will blindly
assume that the raster is in WGS84, as the coverage readers cannot
work without a projection set.
If this is your problem, and your main file is named, for example,
myimage.tiff, create a myimage.prj and paste the wkt definition
of EPSG:27200 inside of it:

PROJCS["NZGD49 / New Zealand Map Grid",
   GEOGCS["NZGD49",
     DATUM["New Zealand Geodetic Datum 1949",
       SPHEROID["International 1924", 6378388.0, 297.0, AUTHORITY["EPSG","7022"]],
       TOWGS84[59.47, -5.04, 187.44, 0.47, 0.1, -1.024, -0.9486737233722704],
       AUTHORITY["EPSG","6272"]],
     PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
     UNIT["degree", 0.017453292519943295],
     AXIS["Geodetic longitude", EAST],
     AXIS["Geodetic latitude", NORTH],
     AUTHORITY["EPSG","4272"]],
   PROJECTION["New Zealand Map Grid", AUTHORITY["EPSG","9811"]],
   PARAMETER["latitude_of_origin", -41.0],
   PARAMETER["central_meridian", 173.0],
   PARAMETER["false_easting", 2510000.0],
   PARAMETER["false_northing", 6023150.0],
   UNIT["m", 1.0],
   AXIS["Easting", EAST],
   AXIS["Northing", NORTH],
   AUTHORITY["EPSG","27200"]]

Then reload the image data in GeoServer, it should come out
with the proper epsg code.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Hi list,

I am trying to deploy Geoserver 1.7.3a on JBoss 4.0.2 but it fails somehow.

Java version info is:
java version "1.5.0_17"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_17-b04)
Java HotSpot(TM) Client VM (build 1.5.0_17-b04, mixed mode, sharing)

The stack trace is:

http://pastebin.com/f54f64848

Any pointers? TIA.

Best regards,
Bart

chris Wild ha scritto:

Hi Justin,
The native projection is reading as
Native SRS WKT: 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],
AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH],
AUTHORITY["EPSG","4326"]]

The image is projected in NZMG (EPSG 27200) so should its native be that
also?
No matter what projection any image I load Geoserver always gives WGS84
as its native.

Hum, which file format is your raster data into?
If you're using the world image format, and you only have a world
file, but not a projection file (.prj), the reader will blindly
assume that the raster is in WGS84, as the coverage readers cannot
work without a projection set.
If this is your problem, and your main file is named, for example,
myimage.tiff, create a myimage.prj and paste the wkt definition
of EPSG:27200 inside of it:

PROJCS["NZGD49 / New Zealand Map Grid",
   GEOGCS["NZGD49",
     DATUM["New Zealand Geodetic Datum 1949",
       SPHEROID["International 1924", 6378388.0, 297.0,
AUTHORITY["EPSG","7022"]],
       TOWGS84[59.47, -5.04, 187.44, 0.47, 0.1, -1.024,
-0.9486737233722704],
       AUTHORITY["EPSG","6272"]],
     PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
     UNIT["degree", 0.017453292519943295],
     AXIS["Geodetic longitude", EAST],
     AXIS["Geodetic latitude", NORTH],
     AUTHORITY["EPSG","4272"]],
   PROJECTION["New Zealand Map Grid", AUTHORITY["EPSG","9811"]],
   PARAMETER["latitude_of_origin", -41.0],
   PARAMETER["central_meridian", 173.0],
   PARAMETER["false_easting", 2510000.0],
   PARAMETER["false_northing", 6023150.0],
   UNIT["m", 1.0],
   AXIS["Easting", EAST],
   AXIS["Northing", NORTH],
   AUTHORITY["EPSG","27200"]]

Then reload the image data in GeoServer, it should come out
with the proper epsg code.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Bart,

Unfortunately folks having problems with deployments on jboss has been a community occurrence. That said, the error in questions seems to indicate a conflict in some xml libraries. The first thing to check would be that there are no xml related "global" jars. By global I mean jars that are placed somewhere in the jboss container and visible to all web applications. Basically the equivalent of server/common in tomcat.

To rule out that this is indeed an issue with those versions I will install jboss and try a deployment to see what I find.

-Justin

bartvde@anonymised.com wrote:

Hi list,

I am trying to deploy Geoserver 1.7.3a on JBoss 4.0.2 but it fails somehow.

Java version info is:
java version "1.5.0_17"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_17-b04)
Java HotSpot(TM) Client VM (build 1.5.0_17-b04, mixed mode, sharing)

The stack trace is:

http://pastebin.com/f54f64848

Any pointers? TIA.

Best regards,
Bart

chris Wild ha scritto:

Hi Justin,
The native projection is reading as
Native SRS WKT: 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],
AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH],
AUTHORITY["EPSG","4326"]]

The image is projected in NZMG (EPSG 27200) so should its native be that
also?
No matter what projection any image I load Geoserver always gives WGS84
as its native.

Hum, which file format is your raster data into?
If you're using the world image format, and you only have a world
file, but not a projection file (.prj), the reader will blindly
assume that the raster is in WGS84, as the coverage readers cannot
work without a projection set.
If this is your problem, and your main file is named, for example,
myimage.tiff, create a myimage.prj and paste the wkt definition
of EPSG:27200 inside of it:

PROJCS["NZGD49 / New Zealand Map Grid",
   GEOGCS["NZGD49",
     DATUM["New Zealand Geodetic Datum 1949",
       SPHEROID["International 1924", 6378388.0, 297.0,
AUTHORITY["EPSG","7022"]],
       TOWGS84[59.47, -5.04, 187.44, 0.47, 0.1, -1.024,
-0.9486737233722704],
       AUTHORITY["EPSG","6272"]],
     PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
     UNIT["degree", 0.017453292519943295],
     AXIS["Geodetic longitude", EAST],
     AXIS["Geodetic latitude", NORTH],
     AUTHORITY["EPSG","4272"]],
   PROJECTION["New Zealand Map Grid", AUTHORITY["EPSG","9811"]],
   PARAMETER["latitude_of_origin", -41.0],
   PARAMETER["central_meridian", 173.0],
   PARAMETER["false_easting", 2510000.0],
   PARAMETER["false_northing", 6023150.0],
   UNIT["m", 1.0],
   AXIS["Easting", EAST],
   AXIS["Northing", NORTH],
   AUTHORITY["EPSG","27200"]]

Then reload the image data in GeoServer, it should come out
with the proper epsg code.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.