[Geoserver-users] problem getting .tifs to render in GeoServer 1.5

The problem is that I don’t know what I’m doing! If someone could point me in the right direction…

I have 2 different .tif files loaded into GeoServer 1.5 as coverages.
One is a colorful NOAA chart, another is a black and white orthophoto.
If anyone wants to see the images I have copied them here:
NOAA chart: http://maps.massgis.state.ma.us/~afreeman/n13003.tif
BW ortho tile: http://maps.massgis.state.ma.us/~afreeman/1_37866.tif
The .tifs are on the GeoServer machine, in a coverages directory (I initially put them
on another server in a web-accessible directory, but that didn’t work)
Each has a .tfw.
Unfortunately I can’t get either of them to draw.
I don’t think projection is the problem.
So the style renderer must be incorrect.
I get a blank map when I do a GetMap.

Here’s an example of an SLD we tried for the NOAA chart:

<sld:StyledLayerDescriptor xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation="http://www.opengis.net/sld http://6

4.119.128.70/geoserver/schemas/sld/StyledLayerDescriptor.xsd" xmlns:sld=“http://www.opengis.net/sld” version=“1.0.0”>
sld:NamedLayer
sld:Namemassgis:image_coverage</sld:Name>




1.0

1.0

Is there any SLD syntax someone could give me that would enable these .tifs to be rendered?
Am I on the right track of the problem?

tiffinfo on 1_37866.tif:

1_37866.tif: Warning, unknown field with tag 33550 (0x830e) ignored.
1_37866.tif: Warning, unknown field with tag 33922 (0x8482) ignored.
1_37866.tif: Warning, unknown field with tag 34735 (0x87af) ignored.
1_37866.tif: Warning, unknown field with tag 34737 (0x87b1) ignored.
TIFF Directory at offset 0xf42408
Subfile Type: (0 = 0x0)
Image Width: 4000 Image Length: 4000
Resolution: 1, 1 (unitless)
Bits/Sample: 8
Sample Format: unsigned integer
Compression Scheme: None
Photometric Interpretation: palette color (RGB from colormap)
Software: “IMAGINE TIFF Support\nCopyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved\n@(#)$RCSfile: etif.c $ $Revision: 1.9.1.2 $ $Date: 2001/12/05 00:33:12Z $”

Orientation: row 0 top, col 0 lhs
Samples/Pixel: 1
Rows/Strip: 3
Planar Configuration: single image plane
Color Map: (present)

tiffinfo on n13003.tif:

TIFF Directory at offset 0x20349b2
Subfile Type: (0 = 0x0)
Image Width: 7171 Image Length: 9710
Resolution: 300, 300 pixels/inch
Bits/Sample: 8
Compression Scheme: PackBits
Photometric Interpretation: palette color (RGB from colormap)
Samples/Pixel: 1
Rows/Strip: 8
Planar Configuration: single image plane
Color Map: (present)

Infro about the images from the WMS GetCapabilities: (note: server is internal)

massgis:1_37866 1_37866 is a A raster file accompanied by a spatial data file Generated from bwtest WCS bwtest 1_37866 EPSG:26986 raster_greyscale_image Default Styler image/png massgis:n13003 n13003 is a A raster file accompanied by a spatial data file Generated from NOAA_N13003 WCS NOAA_N13003 n13003 EPSG:26986 raster_greyscale_image Default Styler image/png

Aleda Freeman
MassGIS
Office of Geographic and Environmental Information
251 Causeway St. 5th floor
Boston, MA 02114
phone: 617-626-1193
fax: 617-626-1249
http://www.mass.gov/mgis - MassGIS
http://maps.massgis.state.ma.us/biodiversity - Biodiversity Days

Ciao Aleda,
I have taken some time to answer emails were waiting in my mail box
and yours is one of them.

I tried you coverages and as I already pointed out before:

<1> 1_37866.tiff

This is a mid-size geotiff with CRS EPSG:26986. It is a palette image.

<2> n13003.tiff

This is a mid-size geotiff WITHOUT CRS. It is a palette image.

Now as of the image number <1> I tried to configure it and ingest it
with a snapshot release of geoserver 1.5.0 and it worked pretty fine
(check the attached image). As of image number <2> that was a plain
tiff ffile with no georeferencing and with no crs info, hence we
cannot ingest it as it is. You would have to provide those
information and then we should have no problems with ingesting it.

Anyway to summarise, you have to wait for the next beta release or
build geoserver ourself (I can do that for you anyway if you want) but
I can confirm that your coverage should work with no problems once you
provide georeferencing informations for all of them.

Regards,
Simone.

On 1/3/07, Freeman, Aleda (ENV) <Aleda.Freeman@anonymised.com> wrote:

The problem is that I don't know what I'm doing! If someone could point me
in the right direction...

I have 2 different .tif files loaded into GeoServer 1.5 as coverages.
One is a colorful NOAA chart, another is a black and white orthophoto.
If anyone wants to see the images I have copied them here:
NOAA chart:
http://maps.massgis.state.ma.us/~afreeman/n13003.tif
BW ortho tile:
http://maps.massgis.state.ma.us/~afreeman/1_37866.tif
The .tifs are on the GeoServer machine, in a coverages directory (I
initially put them
on another server in a web-accessible directory, but that didn't work)
Each has a .tfw.
Unfortunately I can't get either of them to draw.
I don't think projection is the problem.
So the style renderer must be incorrect.
I get a blank map when I do a GetMap.

Here's an example of an SLD we tried for the NOAA chart:

<sld:StyledLayerDescriptor
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation="http://www.opengis.net/sld http://6

4.119.128.70/geoserver/schemas/sld/StyledLayerDescriptor.xsd"
xmlns:sld="http://www.opengis.net/sld&quot; version="1.0.0">
        <sld:NamedLayer>
                <sld:Name>massgis:image_coverage</sld:Name>
                <UserStyle xmlns="http://www.opengis.net/sld&quot;&gt;
                        <FeatureTypeStyle>
                                <Rule>
                                        <RasterSymbolizer>

<Opacity>1.0</Opacity>
                                                <!--

<ChannelSelection>

<RedChannel>

<SourceChannelName>1</SourceChannelName>

</RedChannel>

<GreenChannel>

<SourceChannelName>2</SourceChannelName>

</GreenChannel>

<BlueChannel>

<SourceChannelName>3</SourceChannelName>

</BlueChannel>

</ChannelSelection>

<OverlapBehavior>

<LATEST_ON_TOP />

</OverlapBehavior>-->

<ContrastEnhancement>

<GammaValue>1.0</GammaValue>

</ContrastEnhancement>
                                        </RasterSymbolizer>
                                </Rule>
                        </FeatureTypeStyle>
                </UserStyle>
        </sld:NamedLayer>
</sld:StyledLayerDescriptor>

Is there any SLD syntax someone could give me that would enable these .tifs
to be rendered?
Am I on the right track of the problem?

tiffinfo on 1_37866.tif:

1_37866.tif: Warning, unknown field with tag 33550 (0x830e) ignored.
1_37866.tif: Warning, unknown field with tag 33922 (0x8482) ignored.
1_37866.tif: Warning, unknown field with tag 34735 (0x87af) ignored.
1_37866.tif: Warning, unknown field with tag 34737 (0x87b1) ignored.
TIFF Directory at offset 0xf42408
  Subfile Type: (0 = 0x0)
  Image Width: 4000 Image Length: 4000
  Resolution: 1, 1 (unitless)
  Bits/Sample: 8
  Sample Format: unsigned integer
  Compression Scheme: None
  Photometric Interpretation: palette color (RGB from colormap)
  Software: "IMAGINE TIFF Support\nCopyright 1991 - 1999 by ERDAS, Inc. All
Rights Reserved\n@(#)$RCSfile: etif.c $ $Revision: 1.9.1.2 $ $Date:
2001/12/05 00:33:12Z $"

  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Rows/Strip: 3
  Planar Configuration: single image plane
  Color Map: (present)

tiffinfo on n13003.tif:

TIFF Directory at offset 0x20349b2
  Subfile Type: (0 = 0x0)
  Image Width: 7171 Image Length: 9710
  Resolution: 300, 300 pixels/inch
  Bits/Sample: 8
  Compression Scheme: PackBits
  Photometric Interpretation: palette color (RGB from colormap)
  Samples/Pixel: 1
  Rows/Strip: 8
  Planar Configuration: single image plane
  Color Map: (present)

Infro about the images from the WMS GetCapabilities: (note: server is
internal)

      <Layer queryable="0">
        <Name>massgis:1_37866</Name>
        <Title>1_37866 is a A raster file accompanied by a spatial data
file</Title>
        <Abstract>Generated from bwtest</Abstract>
        <KeywordList>
          <Keyword>WCS</Keyword>
          <Keyword>bwtest</Keyword>
          <Keyword>1_37866</Keyword>
        </KeywordList>
        <!--WKT definition of this CRS:
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"]]-->
        <SRS>EPSG:26986</SRS>
        <LatLonBoundingBox minx="33000.0" miny="866000.0" maxx="37000.0"
maxy="870000.0"/>
        <BoundingBox SRS="EPSG:26986" minx="33000.0" miny="866000.0"
maxx="37000.0" maxy="870000.0"/>
        <Style>
          <Name>raster_greyscale_image</Name>
          <Title>Default Styler</Title>
          <Abstract/>
          <LegendURL width="20" height="20">
            <Format>image/png</Format>
            <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink&quot;
xlink:type="simple"
xlink:href="http://146.243.225.58:8080/geoserver-1.5.x/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=massgis:1_37866&quot;/&gt;

          </LegendURL>
        </Style>
      </Layer>
      <Layer queryable="0">
        <Name>massgis:n13003</Name>
        <Title>n13003 is a A raster file accompanied by a spatial data
file</Title>
        <Abstract>Generated from NOAA_N13003</Abstract>
        <KeywordList>
          <Keyword>WCS</Keyword>
          <Keyword>NOAA_N13003</Keyword>
          <Keyword>n13003</Keyword>
        </KeywordList>
        <!--WKT definition of this CRS:
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"]]-->
        <SRS>EPSG:26986</SRS>
        <LatLonBoundingBox minx="-195259.15625" miny="52016.28125"
maxx="687556.135498561" maxy="1247405.5551139698"/>
        <BoundingBox SRS="EPSG:26986" minx="-195259.15625"
miny="52016.28125" maxx="687556.135498561" maxy="1247405.5551139698"/>

        <Style>
          <Name>raster_greyscale_image</Name>
          <Title>Default Styler</Title>
          <Abstract/>
          <LegendURL width="20" height="20">
            <Format>image/png</Format>
            <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink&quot;
xlink:type="simple"
xlink:href="http://146.243.225.58:8080/geoserver-1.5.x/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=massgis:n13003&quot;/&gt;

          </LegendURL>
        </Style>
      </Layer>
    </Layer>

Aleda Freeman
MassGIS
Office of Geographic and Environmental Information
251 Causeway St. 5th floor
Boston, MA 02114
phone: 617-626-1193
fax: 617-626-1249
http://www.mass.gov/mgis - MassGIS
http://maps.massgis.state.ma.us/biodiversity - Biodiversity
Days

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

--
-------------------------------------------------------
Eng. Simone Giannecchini
President /CEO GeoSolutions

http://www.geo-solutions.it

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

aleda1.GIF

Simone Giannecchini ha scritto:

Ciao Aleda,
I have taken some time to answer emails were waiting in my mail box
and yours is one of them.

I tried you coverages and as I already pointed out before:

<1> 1_37866.tiff

This is a mid-size geotiff with CRS EPSG:26986. It is a palette image.

<2> n13003.tiff

This is a mid-size geotiff WITHOUT CRS. It is a palette image.

Now as of the image number <1> I tried to configure it and ingest it
with a snapshot release of geoserver 1.5.0 and it worked pretty fine
(check the attached image). As of image number <2> that was a plain
tiff ffile with no georeferencing and with no crs info, hence we
cannot ingest it as it is. You would have to provide those
information and then we should have no problems with ingesting it.

Simone, this brings me to the same problem Antonelli had: the first
thing a user does usually is to add a .prj and a world file, because
images with world files are common. But unfortunately the gt2-image
does not seem to be as optimized as the tiff reader, that is,
apparently it loads the whole image in memory in one shot (just a guess), it OOMs far more easily anyways.

Aleda, if you want to add CRS information in the tiff, I suggest
you use gdal_translate with the -a_srs option, such as in the following sample:
gdal_translate -of GTiff -a_srs "EPSG:26986" nocrs.tif crs.tiff

This will make a proper GeoTiff file that can be loaded with Geoserver.

Cheers
Andrea