-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PNG and PGW #8
Comments
Are .pgw files a standard file for georeferencing raster graphics? I can't find any information on this file format. Edit: For documentation, here is an elegant way to load PGW files in Leaflet: https://github.com/RedfishGroup/LeafletElementOverlay |
.pgw files are also known as "World files" and are a 6 line textual sidecar file describing the extents, and the pixel size of the raster. see https://en.wikipedia.org/wiki/World_file for details |
Ok, the only problem is that the map projection is not given in the world file. But it is no problem to add a world file output along the PNG. |
World files exist for most raster formats that don't have built in geo-referencing (ie geotiff) This is a typical pgw file in Malaysia It gets more complicated away from the equator as pixel x and y size are no longer equal |
My example is using decimal degrees. This is convenient with SRTM3 terrain data |
Georeferenced TIF files ("GeoTIFF") can be directly loaded into QGIS. This functionality is now implemented in the "json" branch and probably merged into the refactor/main/2.0 branch. Are .pgw files still important, as we now have .geo, .json, .tif and .kml for georeferencing? Can the issue be closed? |
By the way: We can also write meta data to PNGs! That's not too complicated with libpng... Up to now, there is no standard to georeference PNGs with the help of meta data. Would be interesting to define a new standard! Even a complete JSON string could be put into the PNG, as there is nearly no length limitation of "tEXt" meta contents. That opens up a new playground... |
- we could save georeferencing information - or even a complete JSON output of all used parameters!
It would be very convenient to generate a .pgw world file when a .png plot file is made.
I have to do this manually to import as a raster file into QGIS and the details of the .pgw keep changing as plot radius is changed.
The text was updated successfully, but these errors were encountered: