Hi,
Have you thought about using the original line work rather than
bilevel tiffs? Most vector will be much smaller than the associated tiff
especially if you build pyramid layers of detail. The WFS outputs svg, gml,
kml, and the svg can easily be adapted for xaml. Svg and xaml can nicely
stack multiple raster and vector layers in the same client browser. This
would remove the bilevel transparency issue as well as size issue.
I suspect that downsize sampling pyramids for bilevel would make
lines disappear sporadically at higher zoom out levels. This wouldn't happen
for vectors.
randy
-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net
[mailto:geoserver-users-bounces@lists.sourceforge.net] On Behalf Of
Lehtonen, Mika
Sent: Sunday, February 17, 2008 2:55 PM
To: Andrea Aime
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Tomcat hangs
Hi Andrea, Simone and the others!
Testing raster data with geotiff overviews (2,4,8) was quite promising.
I lifted the heap sizes up to 2,5g min and 3,5g max, and added the line
which defines the garbage collection versus application processing ratio to
be 1/49 (application gets 50 times more time than gc, default is 100). At
least outputting big rasters (12000x12000x24) with wms worked and old tom
was stable after that, willing to cooperate with other duties. Even though I
managed to get out of memory message with even more demanding requests, tom
returned to its stable status after occasion and put out less demanding
jobs. So far so good.
Of what I am a little bit worried is the rendering of these lineart rasters.
Using overviews makes zoom out view even worse. Take a look at the image I
attached. I know this is a difficult job and there are only few lineart
raster users like me I guess but still there might be some work to do. I am
using fixed resolutions which may not be a good idea?
Would it be better to use autoresolution? If the overview resolution would
fit into the screen resolution, the outcome would be much better, isn't that
right?
And finally about that transparency. The 1-bit raster shouldn't be obstacle
of getting transparency working. It can always be converted to any other
depth, right? I haven't been able to get any raster transparent. If I
remember right, I even tried gif or some other format with native
transparency option and couldn't get it work. I would very much like to get
some insructions how it should be done.
reg. mika
Andrea Aime kirjoitti:
Lehtonen, Mika ha scritto:
I meant that transparency thing. I haven't got it working. And
because I use lots of bilevel files, life is getting unpleasent.
Overlapping images can't be used and no overlaying. Switching opacity
in SLD won't solve anything but can be used while testing.
Has anybody else experience of transparent coverages, that is rasters?
I've tried to force a transaprency in a binary image I have with the
following command:
gdal_translate -a_srs myfile.prj -a_nodata 0 myfile.tif output.tif -co
"NBITS=1" -co "TILED=YES" -co "COMPRESS=DEFLATE"
and gdal_info on the output looks like:
Driver: GTiff/GeoTIFF
Files: cn.tif
Size is 4972, 10953
Coordinate System is:
PROJCS["Monte Mario / Italy zone 1",
GEOGCS["Monte Mario",
DATUM["Monte_Mario",
SPHEROID["International 1924",6378388,297.0000000000014,
AUTHORITY["EPSG","7022"]],
AUTHORITY["EPSG","6265"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4265"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",9],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",1500000],
PARAMETER["false_northing",0],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
AUTHORITY["EPSG","3003"]]
GeoTransform =
1402796.794050454, -5.270943e-006, 0.112851313689
5000064.879096299, 0.112851313599, 5.270973e-006
Metadata:
AREA_OR_POINT=Area
TIFFTAG_DATETIME=2006:12:19 10:21:07
TIFFTAG_XRESOLUTION=450
TIFFTAG_YRESOLUTION=450
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Image Structure Metadata:
COMPRESSION=PACKBITS
INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( 1402796.794, 5000064.879) ( 7d45'48.95"E, 45d
8'47.50"N) Lower Left ( 1404032.854, 5000064.937) ( 7d46'45.54"E,
45d 8'48.11"N) Upper Right ( 1402796.768, 5000625.976) (
7d45'48.56"E, 45d 9'5.68"N) Lower Right ( 1404032.828, 5000626.034) (
7d46'45.15"E, 45d 9'6.29"N)
Center ( 1403414.811, 5000345.456) ( 7d46'17.05"E, 45d 8'56.90"N)
Band 1 Block=256x256 Type=Byte, ColorInterp=Palette
NoData Value=0
Image Structure Metadata:
NBITS=1
Color Table (RGB with 2 entries)
0: 0,0,0,255
1: 255,255,255,255
As you can see the NoData information is retained, but apparently the
GeoTiff reader is not using it to create a transparency in the data.
Simone, cc'ed, is the mantainer of the geotiff reader. Simone, any
idea?
Cheers
Andrea