This is a mid-size geotiff with CRS EPSG:26986. It is a palette image.
This is a mid-size geotiff WITHOUT CRS. It is a palette image.
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:Name>massgis:image_coverage</sld:Name>
<UserStyle xmlns="http://www.opengis.net/sld">
<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"
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"/>
</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"
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"/>
</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