[GRASS-user] Create outer line of raster

Hi List,

I have an ECW-file which I convert to GeoTiff using gdal_translate.

This GTiff file I use in GeoServer as a base map.

This is working great, but because I compress the GTiff with JPEG I get white borders around my area. To solve this I can clip my GTiff with the outer line of my original ECW file.

My question is how to create such an outer line. I can of course draw it myself using QGis or MapWindow but I’d prefer to let it calculated.

Can GRASS do this? If so which command do I need.

Thanks,

Paul

My question is how to create such an outer line. I can of course draw it

myself using QGis or >MapWindow but I'd prefer to let it calculated.

Can GRASS do this? If so which command do I need.

(1) gdaltindex - builds a shapefile as a raster tileindex
(http://www.gdal.org/gdaltindex.html)

or

(2) g.region rast=yourrast
      v.in.region - Creates a vector polygon from the current region extent.
     (http://grass.osgeo.org/grass64/manuals/v.in.region.html)

HTH

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Create-outer-line-of-raster-tp5026252p5026257.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Hi Paul,

you could also use the original ECW-file as a mask in GRASS:

g.copy ecw_sample,MASK

and then any action you will perform for raster processing will only be within that Mask (assuming the ECW-file does not have any NULL-values inside).

Stefan

···

2013/1/9 Paul Meems [via OSGeo.org] <[hidden email]>

Hi List,

I have an ECW-file which I convert to GeoTiff using gdal_translate.

This GTiff file I use in GeoServer as a base map.

This is working great, but because I compress the GTiff with JPEG I get white borders around my area. To solve this I can clip my GTiff with the outer line of my original ECW file.

My question is how to create such an outer line. I can of course draw it myself using QGis or MapWindow but I’d prefer to let it calculated.

Can GRASS do this? If so which command do I need.

Thanks,

Paul


grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user


If you reply to this email, your message will be added to the discussion below:
http://osgeo-org.1560.n6.nabble.com/Create-outer-line-of-raster-tp5026252.html
To unsubscribe from Grass - Users, click here.
NAML