[MAPSERVER-USERS] Tiff files with different projections in the samelayer

Pål Kristensen pal.kristensen at statkart.no
Sat Mar 15 04:04:37 PDT 2008


Hi!

Thanks for helping with this. The GROUP mechanism is what I normally would
use, and have been doing in some other projects. The problem with this
particular case is that every of the 200 tiff's has different projections. I
tried to re project them to WGS84 UTMsone33 (EPSG:32633) with GDALWARP and
it worked quite well, so I think the solution in this case will be to batch
re project all the tiffs. GDALWARP used only approx 0,5 min on each raster
so it's no big deal to re project them.

Thanks for the hints!

Regards,
Pål Kristensen



Ed McNierney wrote:
> 
> Pål -
> 
> The problem is that your TILEINDEX shapefile is only in one projection,
> and there is no facility for recording per-file projection parameters in
> it.
> 
> I would instead recommend that you create one layer, and one TILEINDEX,
> for each distinct projection, and then create a GROUP that combines all
> these layers into a single logical layer you can turn on or off and treat
> as if it were a single layer.
> 
>      - Ed
> 
> P.S. I wonder if it *might* be possible to bundle these in one layer if
> you reprojected each image into a common projection, created a TILEINDEX
> for those files, then replaced those reprojected files with the originals. 
> The TILEINDEX is used to quickly identify candidate images for use in
> rendering the map request, and GDAL *might* respect the projection in the
> GeoTIFF once the file was opened.  But I've never tried that and I think
> the GROUP approach I described is much simpler and safer.
> 
> Ed McNierney
> Chief Mapmaker
> Demand Media / TopoZone.com
> 73 Princeton Street, Suite 305
> North Chelmsford, MA  01863
> Phone: 978-251-4242, Fax: 978-251-1396
> ed at topozone.com
> 
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pål
> Kristensen
> Sent: Friday, March 14, 2008 11:21 AM
> To: mapserver-users at lists.osgeo.org
> Subject: [MAPSERVER-USERS] Tiff files with different projections in the
> samelayer
> 
> 
> Hi!
> 
> I have several GeoTiff files with different projections parameters, they
> are
> all transverse mercator but the central meridian and the latitude of
> origin
> differs. The projection information is written in the tiff files, hence
> the
> files are real GeoTiffs. Is it possible to build a tileindex for these
> files
> without re projecting them to a common projection, and access them trough
> one single layer in a mapfile?
> 
> Regards
> Pål Kristensen
> -- 
> View this message in context:
> http://www.nabble.com/Tiff-files-with-different-projections-in-the-same-layer-tp16048268p16048268.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Tiff-files-with-different-projections-in-the-same-layer-tp16048268p16066685.html
Sent from the Mapserver - User mailing list archive at Nabble.com.




More information about the MapServer-users mailing list