[Geoserver-users] Raster display problem

Hello,

I have problems diplaying raster files, both in the demo preview and when I
use it as a WMS. I see a blank (white) map, but when I click on the map I
get correct feature info.

I use Geoserver 1.7.5

Gdalinfo says:

Driver: GTiff/GeoTIFF
Files: Kbakarta8_99.tif
Size is 11934, 11927
Coordinate System is:
PROJCS["unnamed",
    GEOGCS["unnamed",
        DATUM["unknown",
            SPHEROID["unretrievable - using WGS84",6378137,298.257223563]],
        PRIMEM["Greenwich",0],
        UNIT[,0.0174532925199433]],
    UNIT["unknown",1]]
Origin = (141373.450000000010000,6387245.500000000000000)
Pixel Size = (3.000000000000000,-3.000000000000000)
Metadata:
  AREA_OR_POINT=Area
  TIFFTAG_XRESOLUTION=127
  TIFFTAG_YRESOLUTION=127
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Image Structure Metadata:
  COMPRESSION=LZW
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 141373.450, 6387245.500)
Lower Left ( 141373.450, 6351464.500)
Upper Right ( 177175.450, 6387245.500)
Lower Right ( 177175.450, 6351464.500)
Center ( 159274.450, 6369355.000)
Band 1 Block=11934x512 Type=Byte, ColorInterp=Red
Band 2 Block=11934x512 Type=Byte, ColorInterp=Green
Band 3 Block=11934x512 Type=Byte, ColorInterp=Blue

What's the problem?

Thanks for help!
/Per S

--
View this message in context: http://www.nabble.com/Raster-display-problem-tp24358466p24358466.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,
It looks like you have some issues with the projection ( ‘PROJCS[“unnamed”’, etc). You might want to try re-defining it in the raster and then re-loading it into GeoServer.
Jonathan

2009/7/6 Per S <per.soderstrom@anonymised.com>

Hello,

I have problems diplaying raster files, both in the demo preview and when I
use it as a WMS. I see a blank (white) map, but when I click on the map I
get correct feature info.

I use Geoserver 1.7.5

Gdalinfo says:

Driver: GTiff/GeoTIFF
Files: Kbakarta8_99.tif
Size is 11934, 11927
Coordinate System is:
PROJCS[“unnamed”,
GEOGCS[“unnamed”,
DATUM[“unknown”,
SPHEROID[“unretrievable - using WGS84”,6378137,298.257223563]],
PRIMEM[“Greenwich”,0],
UNIT[,0.0174532925199433]],
UNIT[“unknown”,1]]
Origin = (141373.450000000010000,6387245.500000000000000)
Pixel Size = (3.000000000000000,-3.000000000000000)
Metadata:
AREA_OR_POINT=Area
TIFFTAG_XRESOLUTION=127
TIFFTAG_YRESOLUTION=127
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Image Structure Metadata:
COMPRESSION=LZW
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 141373.450, 6387245.500)
Lower Left ( 141373.450, 6351464.500)
Upper Right ( 177175.450, 6387245.500)
Lower Right ( 177175.450, 6351464.500)
Center ( 159274.450, 6369355.000)
Band 1 Block=11934x512 Type=Byte, ColorInterp=Red
Band 2 Block=11934x512 Type=Byte, ColorInterp=Green
Band 3 Block=11934x512 Type=Byte, ColorInterp=Blue

What’s the problem?

Thanks for help!
/Per S


View this message in context: http://www.nabble.com/Raster-display-problem-tp24358466p24358466.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World™ will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry


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

I second Jonathan Moules' suggestion,
the definition of the crs for your data does not look right to me.

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Tue, Jul 7, 2009 at 11:33 AM, Per S<per.soderstrom@anonymised.com> wrote:

Hello,

I have problems diplaying raster files, both in the demo preview and when I
use it as a WMS. I see a blank (white) map, but when I click on the map I
get correct feature info.

I use Geoserver 1.7.5

Gdalinfo says:

Driver: GTiff/GeoTIFF
Files: Kbakarta8_99.tif
Size is 11934, 11927
Coordinate System is:
PROJCS["unnamed",
GEOGCS["unnamed",
DATUM["unknown",
SPHEROID["unretrievable - using WGS84",6378137,298.257223563]],
PRIMEM["Greenwich",0],
UNIT[,0.0174532925199433]],
UNIT["unknown",1]]
Origin = (141373.450000000010000,6387245.500000000000000)
Pixel Size = (3.000000000000000,-3.000000000000000)
Metadata:
AREA_OR_POINT=Area
TIFFTAG_XRESOLUTION=127
TIFFTAG_YRESOLUTION=127
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Image Structure Metadata:
COMPRESSION=LZW
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 141373.450, 6387245.500)
Lower Left ( 141373.450, 6351464.500)
Upper Right ( 177175.450, 6387245.500)
Lower Right ( 177175.450, 6351464.500)
Center ( 159274.450, 6369355.000)
Band 1 Block=11934x512 Type=Byte, ColorInterp=Red
Band 2 Block=11934x512 Type=Byte, ColorInterp=Green
Band 3 Block=11934x512 Type=Byte, ColorInterp=Blue

What's the problem?

Thanks for help!
/Per S

--
View this message in context: http://www.nabble.com/Raster-display-problem-tp24358466p24358466.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

I have also tried PNG and JPG with the same negative result. (I had this
working in GS 1.6.x.)

gdalinfo Kbakarta8_99_jpg.jpg:

Driver: JPEG/JPEG JFIF
Size is 5967, 5964
Coordinate System is `'
Origin = (141373.450000000010000,6387245.500000000000000)
Pixel Size = (6.000000000000000,-6.000000000000000)
Corner Coordinates:
Upper Left ( 141373.450, 6387245.500)
Lower Left ( 141373.450, 6351461.500)
Upper Right ( 177175.450, 6387245.500)
Lower Right ( 177175.450, 6351461.500)
Center ( 159274.450, 6369353.500)
Band 1 Block=5967x1 Type=Byte, ColorInterp=Red
Band 2 Block=5967x1 Type=Byte, ColorInterp=Green
Band 3 Block=5967x1 Type=Byte, ColorInterp=Blue

gdalinfo Kbakarta8_99_png.png:

Driver: PNG/Portable Network Graphics
Size is 5967, 5964
Coordinate System is `'
Origin = (141373.450000000010000,6387245.500000000000000)
Pixel Size = (6.000000000000000,-6.000000000000000)
Corner Coordinates:
Upper Left ( 141373.450, 6387245.500)
Lower Left ( 141373.450, 6351461.500)
Upper Right ( 177175.450, 6387245.500)
Lower Right ( 177175.450, 6351461.500)
Center ( 159274.450, 6369353.500)
Band 1 Block=5967x1 Type=Byte, ColorInterp=Red
Band 2 Block=5967x1 Type=Byte, ColorInterp=Green
Band 3 Block=5967x1 Type=Byte, ColorInterp=Blue

The prj file:

PROJCS["SWEREF99 12 00",GEOGCS["SWEREF99",DATUM["SWEREF99",SPHEROID["GRS
1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6619"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4619"]],UNIT["metre",1,AUTHORITY["EPSG","9001"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",12],PARAMETER["scale_factor",1],PARAMETER["false_easting",150000],PARAMETER["false_northing",0],AUTHORITY["EPSG","3007"],AXIS["y",EAST],AXIS["x",NORTH]]

Kbakarta8_99_jpg.jgw:
6.0000000000
0.0000000000
0.0000000000
-6.0000000000
141376.4500000000
6387242.5000000000

Kbakarta8_99_png.pgw:
6.00000000
0.00000000
0.00000000
-6.00000000
141374.9500
6387244.0000

The geotiff file in the previous post also had a world file and the same prj
file.

Any ideas?
/Per S
--
View this message in context: http://www.nabble.com/Raster-display-problem-tp24358466p24388522.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ciao Per,
could you please send over some sample data for testing purposes?

Regards,
Simone
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Wed, Jul 8, 2009 at 11:51 AM, Per S<per.soderstrom@anonymised.com> wrote:

I have also tried PNG and JPG with the same negative result. (I had this
working in GS 1.6.x.)

gdalinfo Kbakarta8_99_jpg.jpg:

Driver: JPEG/JPEG JFIF
Size is 5967, 5964
Coordinate System is `'
Origin = (141373.450000000010000,6387245.500000000000000)
Pixel Size = (6.000000000000000,-6.000000000000000)
Corner Coordinates:
Upper Left ( 141373.450, 6387245.500)
Lower Left ( 141373.450, 6351461.500)
Upper Right ( 177175.450, 6387245.500)
Lower Right ( 177175.450, 6351461.500)
Center ( 159274.450, 6369353.500)
Band 1 Block=5967x1 Type=Byte, ColorInterp=Red
Band 2 Block=5967x1 Type=Byte, ColorInterp=Green
Band 3 Block=5967x1 Type=Byte, ColorInterp=Blue

gdalinfo Kbakarta8_99_png.png:

Driver: PNG/Portable Network Graphics
Size is 5967, 5964
Coordinate System is `'
Origin = (141373.450000000010000,6387245.500000000000000)
Pixel Size = (6.000000000000000,-6.000000000000000)
Corner Coordinates:
Upper Left ( 141373.450, 6387245.500)
Lower Left ( 141373.450, 6351461.500)
Upper Right ( 177175.450, 6387245.500)
Lower Right ( 177175.450, 6351461.500)
Center ( 159274.450, 6369353.500)
Band 1 Block=5967x1 Type=Byte, ColorInterp=Red
Band 2 Block=5967x1 Type=Byte, ColorInterp=Green
Band 3 Block=5967x1 Type=Byte, ColorInterp=Blue

The prj file:

PROJCS["SWEREF99 12 00",GEOGCS["SWEREF99",DATUM["SWEREF99",SPHEROID["GRS
1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6619"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4619"]],UNIT["metre",1,AUTHORITY["EPSG","9001"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",12],PARAMETER["scale_factor",1],PARAMETER["false_easting",150000],PARAMETER["false_northing",0],AUTHORITY["EPSG","3007"],AXIS["y",EAST],AXIS["x",NORTH]]

Kbakarta8_99_jpg.jgw:
6.0000000000
0.0000000000
0.0000000000
-6.0000000000
141376.4500000000
6387242.5000000000

Kbakarta8_99_png.pgw:
6.00000000
0.00000000
0.00000000
-6.00000000
141374.9500
6387244.0000

The geotiff file in the previous post also had a world file and the same prj
file.

Any ideas?
/Per S
--
View this message in context: http://www.nabble.com/Raster-display-problem-tp24358466p24388522.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi,
Fix: When I have the data_dir on the default location C:\Program\GeoServer
1.7.5\data_dir it works OK, but when I put it in another catalog I get blank
rasters.

Simone Giannecchini wrote:

Ciao Per,
could you please send over some sample data for testing purposes?

Regards,
Simone

--
View this message in context: http://www.nabble.com/Raster-display-problem-tp24358466p24533059.html
Sent from the GeoServer - User mailing list archive at Nabble.com.