[mapserver-users] Best way to do a batch reprojection (on windows)
Robert Sanson
Robert.Sanson at asurequality.com
Wed Aug 7 14:09:11 PDT 2013
Hi
If you are talking about coterminous USA, then you might be better to use something like Albers Equal-Area Conic Projection rather than WGS84 which is not strictly a projection at all.
Regards,
Robert
>>> andy <andy at squeakycode.net> 8/08/2013 8:45 a.m. >>>
On 8/7/2013 3:35 PM, James_in_Utah 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
>
I use GlobalMapper. Never had 4TB though. I usually convert to .ecw,
which I'd guess would be smaller than jpeg. Its not fast, and it has
refresh problems, but it works fine. I've had jobs run 12 hours or so,
I think 30GB'ish is about the most I've done.
Also, if you use the map catalog thing, it'll use less memory, and might
be quicker. (File -> create new map catalog). The catalog will let it
selective load chunks of data when its needed. This is useful when you
have lots and lots of little files.
-Andy
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system.
This message has been scanned for Malware and Viruses by Websense Hosted Security.
www.websense.com
More information about the MapServer-users
mailing list