Opened 17 years ago

Closed 5 years ago

#1566 closed enhancement (wontfix)

Proposal of gdalsplit utility

Reported by: Mateusz Łoskot Owned by: warmerdam
Priority: normal Milestone: closed_because_of_github_migration
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: raster split
Cc: Markus Neteler

Description

Recently, users requested for image splitting utility based on GDAL.

Some time ago, Homme Zwaagstra posted Raster splitting program on the gdal-dev list.

I took Homme's program, updated it and tested and I decided to submit it as a GDAL enhancement, as I believe it would be worth to include it to the set of GDAL utilities.

I'm attaching 3 files:

  • gdalsplit.cpp - the raster splitting utility
  • patch for gdal/apps/makefile.vc adding build target for the gdalsplit.cpp program into the GDAL building infrastructure for Visual C++ compiler
  • patch for gdal/apps/GNUmakefile applying equivalent changes as the patch above but for GCC and make on Unix platforms

In order to build it:

  • download the gdalsplit.cpp file
  • put into gdal/apps directory in GDAL sources tree
  • apply patches for makefiles
  • build GDAL as usually

I hope the gdalsplit will be helpful.

I'd like to send thanks to Homme Zwaagstra for creating this tool.

Attachments (5)

apps-GNUmakefile-gdalsplit-20070407.patch (973 bytes ) - added by Mateusz Łoskot 17 years ago.
Patch for GNUmakefile
apps-makefile.vc-gdalsplit-20070407.patch (996 bytes ) - added by Mateusz Łoskot 17 years ago.
Patch for makefile.vc
apps-GNUmakefile-gdalsplit.patch (868 bytes ) - added by Markus Neteler 15 years ago.
Updated patch for GNUmakefile
apps-makefile.vc-gdalsplit.patch (959 bytes ) - added by Markus Neteler 15 years ago.
Updated patch for makefile.vc
gdalsplit.cpp (17.9 KB ) - added by Markus Neteler 15 years ago.
Raster splitting utility with fixed headers

Download all attachments as: .zip

Change History (15)

by Mateusz Łoskot, 17 years ago

Patch for GNUmakefile

by Mateusz Łoskot, 17 years ago

Patch for makefile.vc

comment:1 by Markus Neteler, 17 years ago

Cc: Markus Neteler added

I am very interested in this and the request regularly pops up in the list...

MArkus

comment:2 by Mateusz Łoskot, 17 years ago

Markus,

Do you mean you'd like to see gdalsplit included to the set of official utilities?

comment:3 by Markus Neteler, 17 years ago

It would be great to have it in the set of official utilities. And I guess/hope that further maintenance will be low effort.

comment:4 by warmerdam, 17 years ago

I concerned that this utility will duplicate similar functionality implemented as part of the tile driver project this summer:

http://trac.osgeo.org/gdal/wiki/SoCTileDriver

comment:5 by Markus Neteler, 16 years ago

Version: unspecifiedsvn-trunk

Frank,

I see that there is gdal2tiles.py now in GDAL, but I don't see how to create a defined number of tiles from that. I still think that a gdalsplit[.py] tool would be very useful.

Markus

comment:6 by dadedodo, 16 years ago

This is a useful utility. Can you insert in official utilities? This could be a best way to use it in future.

Thanks

Donal

by Markus Neteler, 15 years ago

Updated patch for GNUmakefile

by Markus Neteler, 15 years ago

Updated patch for makefile.vc

by Markus Neteler, 15 years ago

Attachment: gdalsplit.cpp added

Raster splitting utility with fixed headers

comment:7 by Markus Neteler, 15 years ago

Frank,

this tool is unrelated to gdal2tiles.py since I need to define the number of tiles to be created and don't need any KML overhead. I have updated the patches to trunk.

Markus

comment:8 by Jukka Rahkonen, 9 years ago

After six years passed from the latest sign of activity, I agree with Markus "I still think that a gdalsplit[.py] tool would be very useful."

in reply to:  8 comment:9 by Markus Neteler, 9 years ago

Replying to jratike80:

After six years passed from the latest sign of activity, I agree with Markus "I still think that a gdalsplit[.py] tool would be very useful."

FWIW, we have meanwhile implemented it in GRASS GIS 7:

http://grass.osgeo.org/grass70/manuals/r.tile.html

comment:10 by Even Rouault, 5 years ago

Milestone: closed_because_of_github_migration
Resolution: wontfix
Status: newclosed

This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.

Note: See TracTickets for help on using tickets.