[gdal-dev] Generating 200x200 tiles
Homme Zwaagstra
hrz at geodata.soton.ac.uk
Mon Sep 21 00:29:39 PDT 2015
On 19/09/15 08:14, Alistair Young wrote:
> Thanks for that. I tried ctb but just got "Could not get transformation > information from source dataset². Chaning gdal2tiles to output
200x200 > worked ok but the SDK failed to display the tiles. I just have
a 4000x4000 > tif with no geo referencing information so I can only
generate raster > profile tiles.
Alistair, you'll have trouble getting anything useful out of any geospatial
tools without inputting datasets that are correctly georeferenced with an
appropriate spatial reference system. Assuming you know the extents of your
4000x4000 raster, you should be able to do this by creating a virtual raster
with gdal_translate using options along the following lines:
gdal_translate -of VRT -a_srs srs_def -a_ullr ulx uly lrx lry in.tif
out.vrt
Passing out.vrt to ctb should resolve the error, and you'll have more chance
with other tools too.
Best regards,
Homme
> > Alistair > > > ----------------- > mov eax,1 > mov ebx,0 > int 80 >
> > > > On 18/09/2015 00:36, "gdal-dev-bounces at lists.osgeo.org on
behalf of Brad > Hards" <gdal-dev-bounces at lists.osgeo.org on behalf of
bradh at frogmouth.net> > wrote: > >> On Thu, 17 Sep 2015 06:03:15 PM
Alistair Young wrote: >>> I've been using gdal2tiles to generate zoom
levels and tiles and it's >>> working fine but unfortunately the tiles
are 256x256 and don't work with >>> the UK Ordnance Survey mapping SDK,
which requires 200x200 tiles. Is >>> there >>> a way to generate these
200x200 tiles? I can generate them using >>> gdal_retile but it can't
generate the zoom levels. >> I'd suggest just hacking the python
script. Make a copy, and edit the >> __init__() function to change the
tileSize member init to be 200 vs 256. >> >> Worth a quick try at least.
>> >> Brad >> >> >> _______________________________________________ >>
gdal-dev mailing list >> gdal-dev at lists.osgeo.org >>
http://lists.osgeo.org/mailman/listinfo/gdal-dev > >
_______________________________________________ > gdal-dev mailing list
> gdal-dev at lists.osgeo.org >
http://lists.osgeo.org/mailman/listinfo/gdal-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20150921/69f1ef7b/attachment.html>
More information about the gdal-dev
mailing list