4

I'm using Geoserver in conjunction with the google maps API to add a raster layer onto a map. It loads fine, however there's some strange problem with opacity at the edge of the layer where you can see a boundary. Have you any idea how to fix this?

Screen shot

(The original is at obstest.heliohost.org/map2.html.)

I'm totally new to gis and to Geoserver so sorry if this is an obvious question!

Thanks.

  • I should add that when I load the image into qgis or udig it looks fine. – beacon_bonanza Jan 30 '13 at 9:59
  • It looks like a reprojection artefact. Is the raster being reprojected by GeoServer on the fly to produce the above image? If so, that might explain why it looks OK in QGIS where, perhaps, you are looking at it in its native projection. – MappaGnosis Jan 31 '13 at 9:43
  • I'm not too sure if it's being reprojected or not. Is there any way to change how it's projected in this case? – beacon_bonanza Jan 31 '13 at 11:33
  • 1
    Match the projection of the raster (using Warp tool in QGIS) to whatever the projection is in your map above. – MappaGnosis Jan 31 '13 at 12:17
  • Thanks @MappaGnosis, that did the trick. I didn't think the projection would have been the problem because it looked ok apart from that boundary, but that's just part of being a n00b! If you write up an answer I'll accept it. – beacon_bonanza Jan 31 '13 at 14:02
3

This is a reprojection artefact. The raster being reprojected by GeoServer on the fly to produce the above image. This explains why it looks OK in QGIS where you are looking at it in its native projection.

Match the projection of the raster (using Warp tool in QGIS) to whatever the projection is in your map above.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.