[mapserver-users] Best way to do a batch reprojection (on windows)

Mark Korver mwkorver at gmail.com
Wed Aug 7 14:47:50 PDT 2013


Strictly speaking you don't have to re-project all of the data.  Mapserver
can resample rasters on the fly into new projections.  You can build a map
file that references your different UTM zones as layers and serves up one
WMS response as a jpeg image etc.

However, this could be very slow depending on how much source data
Mapserver needs to look at to do the resample and projection.  The fact
that it is jp2 is nice from a less storage perspective, but will slow this
process down. I think we would need to know more about what your
application requirements are to help you on this.  For example if you are
just serving this data up to a few people for an internal app you might not
be worth the trouble of re-projecting the data.  If you are serving to
many, and are not doing cached tiled requests, you may want to output to
tiled jpeg compressed tifs, then create a few subsample layers, then
finally serve those up.


On Wed, Aug 7, 2013 at 1:35 PM, James_in_Utah <James.Evans at hill.af.mil>wrote:

> Hi,
> I have the NAIP imagery for CONUS, and it's rather large.  About 4.2TBs, of
> JP2 files.  It's projected in 10 UTM zones across the country.  If I'm
> going
> to offer a single layer with Mapserver, I think I have to reproject all of
> the files into a single projection, say WGS84.  I'm trying to figure out a
> good way to do that.  GlobalMapper seems to have this function.  I loaded
> up
> all the data from Alabama, and told it to convert the projection.  It's
> been
> working at it for about 8 hours and I see no sign of progress.  I tried
> creating a batch file to call GdalWarp, but for some reason that's getting
> an error.  Here's the line from my batch:
>
> for %%f in (*.jp2) do gdalwarp -t_srs EPSG:4326 %%f c:\out\%%f
>
> The error is saying 4326 can't be found in the GSC.CSV, even though it is
> plainly in there.  Even if I get this working, this wiill still be very
> tedious.  The data is divide up by states, and under the state directory,
> there are dozens of subdirectories.  I would need some sort of script to
> walk through the directories.
>
> If anyone has a suggestion on how to efficiently reproject this large
> amount
> of data it would be greatly appreciated!
> Thanks,
> James
>
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Best-way-to-do-a-batch-reprojection-on-windows-tp5071365.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130807/21ae59e2/attachment.htm>


More information about the MapServer-users mailing list