用于栅格制图转换的库。 “未投影”至任何人
我有许多光栅(位图)图像,我想将它们从未投影的经纬度转换为投影渲染。 (例如 GIF、PNG)。
我不明白如何使用 PROJ.4 渲染结果图像。我想要一个可以自动完成这一切的库或软件。 GRASS GIS 很大。这些变换是相对简单的变换并且仅是光栅图像的变换。
或者是否有基本代码或示例说明我将如何执行此操作? 使用 PROJ.4 和 GraphicsMagick。
I have many raster (bitmap) images that I'd like to transform from unprojected lat-lon to a projected rendering. (e.g. GIF, PNG).
I don't understand how to use PROJ.4 to render the resulting image. I'd like a library or software that can do this all automatically. GRASS GIS is large. The transforms are relatively simple transforms and of raster images only.
Or is there basic code or an example of how I would do this? using PROJ.4 and GraphicsMagick.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您在这里要求的内容有点令人困惑。
如果您尝试将 LAT Long 地理参考图像转换为另一个投影,或者您只想保留位图的当前地理参考并将其转换为其他格式(例如 GIF 或 PNG)。
如果您想更改格式,我不相信 PNG 或 GIF 在其标头中支持地理参考,因此这是不可能的。如果您正在尝试压缩图像以使其不占用太多空间,您可以查看 JPEG 或 JPEG2000,因为它们都支持这两种格式。有关图像格式的完整列表以及支持地理参考和不支持地理参考的内容,此页面是一个不错的起点:
链接
如果您希望将坐标投影从纬度、经度更改为其他坐标(例如墨卡托 mga) zone XX) 您可以使用 GDAL 之类的工具来批处理该过程。
从这里下载:http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries
请参阅此处以获取包含的实用程序列表:链接
请参阅此处的实用程序帮助更改投影:链接
请参阅此处了解更改图像格式的实用程序:链接
希望对您有所帮助。
It is a little confusing about what you are asking for here.
If you are trying to convert from a LAT Long geo referenced image to another projection or if you just want to keep the current geo referencing of a bitmap and convert it to another format such as GIF or PNG.
If you wish to change formats I don't believe PNG or GIF supports geo referencing in its header so this will not be possible. If you are looking at trying to compress the image so it doesn't take up as much space you could look at JPEG or JPEG2000 as these support both. For a full list of image formats and what supports geo referencing and what does not this page is a good place to start:
Link
If you wish to change the co-ordinate projection from lat, long to something else (like Mercator mga zone XX) You can use something like GDAL to batch the process.
Download from here: http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries
See here for a list of inlcuded utilities: Link
See here for the utility help for changing projections: Link
See here for utility that changes image formats: Link
Hopefully that will be of help to you.