Hi, Jukka, thank you very much for discussion, it was helpful. For now I found what was wrong. Gabe, maybe it's useful for you too: my mapserv compilation was both with --with-gdal and --with-tiff, when I recompiled it removing native TIFF support (--without-tiff), then this recompilation was successful:)
Have a nice day, Raivo On Wed, Sep 17, 2008 at 5:45 PM, Emerson, Gabe <[EMAIL PROTECTED]> wrote: > Raivo, > > > > I sometimes get odd artifacts showing up on my PNG24 maps as well. I don't > know if it's related to your problem, but I believe mine is client-related > based on its behavior, even though it happens on multiple computers and > browsers. > > > > Every now and then, my map comes out looking like this: > https://netfiles.umn.edu/users/emers089/www/imgerror.jpg > > > > It doesn't always look the same, sometimes the map is greyed out or > covered in mostly black, sometimes only part of the map is affected. > > > > Since it's unpredictable and infrequent, I haven't been able to test very > much. However, It clears itself immediately when I click anything on the > page, or when I resize the browser window. That makes me think that my > problem is related to client-side graphics drivers; the correct image is > already in the browser, just hidden under the artifacting. I've been meaning > to play around with driver updates, but it hasn't been enough of an issue. > > > > -Gabe > > > > > > > > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *Rahkonen Jukka > *Sent:* Wednesday, September 17, 2008 7:22 AM > *To:* Raivo Alla; mapserver-users@lists.osgeo.org > *Subject:* Re: [mapserver-users] mapserver 5 TIFF displaying problem > > > > I'm sorry, I fear I can't help you further. I'm sure that somebody else > will go on with your problem soon. There must be something odd in the image > or in your Mapserver. You could still try two things and try to find exact > reason for the failure: > > - use ready compiled Mapserver if you find such for your operating system > > - test with another image from different source > > > > -Jukka- > > > > > ------------------------------ > > *Lähettäjä:* Raivo Alla [mailto:[EMAIL PROTECTED] > *Lähetetty:* 17. syyskuuta 2008 14:57 > *Vastaanottaja:* Rahkonen Jukka > *Aihe:* Re: [mapserver-users] mapserver 5 TIFF displaying problem > > Hi, > > thank you but sadly it did'nt help. > Changed the DRIVER and translated to GeoTiff, but the problem remained. > Even after I changed my .map file projection to EPSG:3301 (same like that > .tif file has) was the same picture there. > If I zoom in/out, then the picture changes a bit -> > http://picasaweb.google.com/snaperski/Ort#5246949911192681730 > Strange:) > > Raivo > > On Wed, Sep 17, 2008 at 2:27 PM, Rahkonen Jukka <[EMAIL PROTECTED]> > wrote: > > Hi, > > > > If all the clients show the same artifacts we can trust they come from the > server. For some reason it does not like your original image. Try > converting it to uncompressed geotiff image with gdal_translate > > > > gdal_translate -of GTiff 54653.tif 54653_basic.tif > > > > Make another layer from this new image, or edit your mapfile to use that > instead of the original 54653.tif. What happens? By the way, I believe it > should read > > DRIVER "GD/PNG24" > > -Jukka- > > > > > ------------------------------ > > *Lähettäjä:* Raivo Alla [mailto:[EMAIL PROTECTED] > > *Lähetetty:* 17. syyskuuta 2008 14:16 > > > *Vastaanottaja:* Rahkonen Jukka > *Aihe:* Re: [mapserver-users] mapserver 5 TIFF displaying problem > > > > Hei, > > thank you for advice! > I changed .map a bit: > > IMAGETYPE png24 > OUTPUTFORMAT > NAME png24 > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > END > > output quality looks better, but that black-lined crap is still there:( > I tried the same with uDig and Gaia WMS-clients, but it's the same. > > > Raivo > > On Wed, Sep 17, 2008 at 1:51 PM, Rahkonen Jukka <[EMAIL PROTECTED]> > wrote: > > Hi, > > > > It's getting closer. Image is now at least in a correct place? Distortion > can be due to ArcMAP, perhaps it does not like the outputformat you are > using. Next trials: > > - Have a try with another client software. like Quantum GIS, OpenJUMP, > Cadcorp SIS map browser, or just your web browser. > > - Try changing outputformat. I believe you will need to change it anyway, > png is not good for aerial images. Try png24 or jpeg instead. > > > > -Jukka- > > > > > ------------------------------ > > *Lähettäjä:* Raivo Alla [mailto:[EMAIL PROTECTED] > *Lähetetty:* 17. syyskuuta 2008 13:43 > *Vastaanottaja:* Rahkonen Jukka > > > *Aihe:* Re: [mapserver-users] mapserver 5 TIFF displaying problem > > > > Thank you, > > I added PROJECTION block to the layer, but unfortunately the same dance: > output is corrupted as it could be seen here: > http://picasaweb.google.com/snaperski/Ort#5246933992333025954 > > Maybe I should compile mapserver without -with-tiff key? > > Raivo > > On Wed, Sep 17, 2008 at 1:03 PM, Rahkonen Jukka <[EMAIL PROTECTED]> > wrote: > > Tere. > > > > You have defined the output projection as epsg:4326 and by quick look it is > OK in both map projection and WMS metadata. However, your original image is > in Estonian projection, but Mapserver does not know it automatically. You > need to add PROJECTION block to layer definitions as well. Try editin your > mapfile as follows: > > > > LAYER > TYPE RASTER > NAME "raster" > STATUS ON > DATA "54653.tif" > > PROJECTION > > "init=epsg:3301" > > END #end projection > END #end layer > > I hope I guessed the epsg code right. > > > > -Jukka Rahkonen- > > > > > > > > > ------------------------------ > > *Lähettäjä:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *Puolesta *Raivo Alla > > *Lähetetty:* 17. syyskuuta 2008 12:51 > > > *Vastaanottaja:* mapserver-users@lists.osgeo.org > > *Aihe:* Re: [mapserver-users] mapserver 5 TIFF displaying problem > > Thank you for answering! > > There's some additional information. Gdalinfo output: > > Driver: GTiff/GeoTIFF > Files: 65812.tif > 65812.aux > Size is 5000, 5000 > Coordinate System is: > LOCAL_CS["Estonia_1997_Estonia_National_Grid", > UNIT["meters",1]] > Origin = (715000.500000000000000,6584999.500000000000000) > Pixel Size = (1.000000000000000,-1.000000000000000) > Metadata: > TIFFTAG_XRESOLUTION=2272.0896 > TIFFTAG_YRESOLUTION=2272.0896 > TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) > Image Structure Metadata: > COMPRESSION=LZW > INTERLEAVE=PIXEL > Corner Coordinates: > Upper Left ( 715000.500, 6584999.500) > Lower Left ( 715000.500, 6579999.500) > Upper Right ( 720000.500, 6584999.500) > Lower Right ( 720000.500, 6579999.500) > Center ( 717500.500, 6582499.500) > Band 1 Block=5000x8 Type=Byte, ColorInterp=Red > Metadata: > LAYER_TYPE=athematic > Band 2 Block=5000x8 Type=Byte, ColorInterp=Green > Metadata: > LAYER_TYPE=athematic > Band 3 Block=5000x8 Type=Byte, ColorInterp=Blue > Metadata: > LAYER_TYPE=athematic > > > And from .map file: > IMAGETYPE PNG > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > END > PROJECTION > "init=epsg:4326" > END > METADATA > WMS_TITLE "UMN MapServer Maa-ameti TEST" > WMS_ABSTRACT "Mõeldud testimiseks" > WMS_ACCESSCONSTRAINTS "none" > WMS_SRS "EPSG:4326" > END > > Could it be problem that coordinate systems does not match? > However, I remember it's written that Mapserver could do SRS transforming > on-the-fly. > > > On Wed, Sep 17, 2008 at 11:23 AM, Rahkonen Jukka < > [EMAIL PROTECTED]> wrote: > > Hi, > > > > Impossible to say with this information. Much better possibilities to help > you if you could send also the main MAP part of your mapfile including at > lesast outputformat and projection, and the metadata sections. Gdalinfo > report about the image might be helpful as well. > > > > -Jukka Rahkonen- > > > ------------------------------ > > *Lähettäjä:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *Puolesta *Raivo Alla > *Lähetetty:* 17. syyskuuta 2008 9:38 > *Vastaanottaja:* mapserver-users@lists.osgeo.org > *Aihe:* [mapserver-users] mapserver 5 TIFF displaying problem > > Hello, > > I'm quite new using Mapserver and found myself struggling with this > simple-looking problem: > > In my map file, there is layer defined as follows: > LAYER > TYPE RASTER > NAME "raster" > STATUS ON > DATA "54653.tif" > END > > The problem is, that this image is corrupted when I look at it in ArcMap - > it contains strange black boxes and stripes. Original image is OK, so > I guess the problem is somewhere in map file. > .tfw file should be ok: > 1.000000000000000 > 0.000000000000000 > 0.000000000000000 > -1.000000000000000 > 650000.500000000000000 > 6469999.500000000000000 > > What could be the problem? > > > Raivo Alla > > > > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users