Set coordinate origin to the top left cornerTilecache positions my gdal_translated map 20km south of where I...
When does a person lose diplomatic status?
Will the duration of traveling to Ceres using the same tech developed for going to Mars be proportional to the distance to go to Mars or not?
Is there redundancy between a US Passport Card and an Enhanced Driver's License?
Protagonist constantly has to have long words explained to her. Will this get tedious?
Do the speed limit reductions due to pollution also apply to electric cars in France?
What is the smallest molar volume?
How to transport 10,000 terrestrial trolls across ocean fast?
Crack the bank account's password!
Is the UK legally prevented from having another referendum on Brexit?
Are one-line email responses considered disrespectful?
In a post apocalypse world, with no power and few survivors, would Satnav still work?
What could cause an entire planet of humans to become aphasic?
How do I make my single-minded character more interested in the main story?
How do I avoid the "chosen hero" feeling?
Why would you use 2 alternate layout buttons instead of 1, when only one can be selected at once
Is the Maximum Use License for Everybody (MULE) a FOSS license?
How do I narratively explain how in-game circumstances do not mechanically allow a PC to instantly kill an NPC?
How does holding onto an active but un-used credit card affect your ability to get a loan?
Plotting Laguerre Gaussian beam intensity in transverse and line profile via center?
Integer but not Laurent sequences
Why is Shelob considered evil?
Was the Spartan by Mimic Systems a real product?
How to deal with an underperforming subordinate?
How bad is a Computer Science course that doesn't teach Design Patterns?
Set coordinate origin to the top left corner
Tilecache positions my gdal_translated map 20km south of where I want itUnderstanding the Map Tile creation propertiesVSIMalloc3() and UnifiedSrcDensity mask errors when running gdal_warp in OSGEO4w shellRasterize shapefile to a new gtiff file with gdal_rasterize utility,however,I cannot open the tif file?How can I fix badly specified geographic coordinate system with units in arc-seconds?how to georeference my png using gdalCan gdalwarp reproject from ESPG:4326 (WGS84) to UTM?Import GDAL_TRANSLATE IMAGE GOES-13How to calculate the image size knowing its coordinates and pixel size?how to reduce Geoserver WMTS rendering time?
I have a BMP-picture and I know that it's top left corner has the EPSG:3068 coordinates 35500,24390. I would like to use gdal_polygonize and than calculate the EPSG:3068 coordinates of the produced polygons. But for that I need gdal_polygonize to assume that the top left corner is (0,0) or I need to know at which pixel the actual (0,0) is.
gdalinfo of the picture:
Driver: BMP/MS Windows Device Independent Bitmap
Files: E8256.bmp
Size is 8250, 4090
Coordinate System is `'
Origin = (-1890.000000000000000,1890.000000000000000)
Pixel Size = (3780.000000000000000,-3780.000000000000000)
Corner Coordinates:
Upper Left ( -1890.000, 1890.000)
Lower Left ( -1890.000,-15458310.000)
Upper Right (31183110.000, 1890.000)
Lower Right (31183110.000,-15458310.000)
Center (15590610.000,-7728210.000)
Band 1 Block=8250x1 Type=Byte, ColorInterp=Palette
Color Table (RGB with 256 entries)
0: 0,0,0,255
1: 128,0,0,255
...
as you can see the top left corner is -1890,1890. I want that to become 0,0 OR to know at wich pixel 0,0 is. (Pixel size is the length of 1 pixel in coordinates right?)
gdal coordinates image
add a comment |
I have a BMP-picture and I know that it's top left corner has the EPSG:3068 coordinates 35500,24390. I would like to use gdal_polygonize and than calculate the EPSG:3068 coordinates of the produced polygons. But for that I need gdal_polygonize to assume that the top left corner is (0,0) or I need to know at which pixel the actual (0,0) is.
gdalinfo of the picture:
Driver: BMP/MS Windows Device Independent Bitmap
Files: E8256.bmp
Size is 8250, 4090
Coordinate System is `'
Origin = (-1890.000000000000000,1890.000000000000000)
Pixel Size = (3780.000000000000000,-3780.000000000000000)
Corner Coordinates:
Upper Left ( -1890.000, 1890.000)
Lower Left ( -1890.000,-15458310.000)
Upper Right (31183110.000, 1890.000)
Lower Right (31183110.000,-15458310.000)
Center (15590610.000,-7728210.000)
Band 1 Block=8250x1 Type=Byte, ColorInterp=Palette
Color Table (RGB with 256 entries)
0: 0,0,0,255
1: 128,0,0,255
...
as you can see the top left corner is -1890,1890. I want that to become 0,0 OR to know at wich pixel 0,0 is. (Pixel size is the length of 1 pixel in coordinates right?)
gdal coordinates image
1
Do you have also some other file that records the georeferencing? According to driver manual page gdal.org/frmt_bmp.html GDAL is searching for world file which have extension bpw, .bmpw or .wld.
– user30184
Dec 23 '14 at 21:43
I don't have a worldfile but maybe I could make one? As I said I know the corner points in EPSG:3068. But gdal_polygonize gives me -1890,1890 for a point in the upper left corner and -1890,-15458310 for a point in the lower left corner. I want the first one to become (0,0) and the second one (0,4090)
– Selphiron
Dec 24 '14 at 9:59
1
Perhaps some aux.xml file then? There must be something because plain bmp file does not hold metadata about origin and pixel size. Example:gdalinfo bmp_test.bmp Driver: BMP/MS Windows Device Independent Bitmap Files: bmp_test.bmp Size is 475, 373 Coordinate System is "" Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 373.0) Upper Right ( 475.0, 0.0) Lower Right ( 475.0, 373.0) Center ( 237.5, 186.5) Band 1 Block=475x1 Type=Byte, ColorInterp=Red Band 2 Block=475x1 Type=Byte, ColorInterp=Green Band 3 Block=475x1 Type=Byte, ColorInterp=Blue
– user30184
Dec 24 '14 at 11:09
nope. I had a PNG and I opened it with MS Paint saved it as a 256 BMP ^^ But I solved it. I used gdal_translate -a_ullr 0 0 8250 4090 -of "BMP" source.bmp target.bmp Thx for your efforts!
– Selphiron
Dec 24 '14 at 15:09
1
If you solved your question, add the answer in the answer box. See gis.stackexchange.com/help/self-answer. Tks.
– Andre Silva
7 hours ago
add a comment |
I have a BMP-picture and I know that it's top left corner has the EPSG:3068 coordinates 35500,24390. I would like to use gdal_polygonize and than calculate the EPSG:3068 coordinates of the produced polygons. But for that I need gdal_polygonize to assume that the top left corner is (0,0) or I need to know at which pixel the actual (0,0) is.
gdalinfo of the picture:
Driver: BMP/MS Windows Device Independent Bitmap
Files: E8256.bmp
Size is 8250, 4090
Coordinate System is `'
Origin = (-1890.000000000000000,1890.000000000000000)
Pixel Size = (3780.000000000000000,-3780.000000000000000)
Corner Coordinates:
Upper Left ( -1890.000, 1890.000)
Lower Left ( -1890.000,-15458310.000)
Upper Right (31183110.000, 1890.000)
Lower Right (31183110.000,-15458310.000)
Center (15590610.000,-7728210.000)
Band 1 Block=8250x1 Type=Byte, ColorInterp=Palette
Color Table (RGB with 256 entries)
0: 0,0,0,255
1: 128,0,0,255
...
as you can see the top left corner is -1890,1890. I want that to become 0,0 OR to know at wich pixel 0,0 is. (Pixel size is the length of 1 pixel in coordinates right?)
gdal coordinates image
I have a BMP-picture and I know that it's top left corner has the EPSG:3068 coordinates 35500,24390. I would like to use gdal_polygonize and than calculate the EPSG:3068 coordinates of the produced polygons. But for that I need gdal_polygonize to assume that the top left corner is (0,0) or I need to know at which pixel the actual (0,0) is.
gdalinfo of the picture:
Driver: BMP/MS Windows Device Independent Bitmap
Files: E8256.bmp
Size is 8250, 4090
Coordinate System is `'
Origin = (-1890.000000000000000,1890.000000000000000)
Pixel Size = (3780.000000000000000,-3780.000000000000000)
Corner Coordinates:
Upper Left ( -1890.000, 1890.000)
Lower Left ( -1890.000,-15458310.000)
Upper Right (31183110.000, 1890.000)
Lower Right (31183110.000,-15458310.000)
Center (15590610.000,-7728210.000)
Band 1 Block=8250x1 Type=Byte, ColorInterp=Palette
Color Table (RGB with 256 entries)
0: 0,0,0,255
1: 128,0,0,255
...
as you can see the top left corner is -1890,1890. I want that to become 0,0 OR to know at wich pixel 0,0 is. (Pixel size is the length of 1 pixel in coordinates right?)
gdal coordinates image
gdal coordinates image
edited Dec 23 '14 at 13:19
Selphiron
asked Dec 23 '14 at 12:21
SelphironSelphiron
3791421
3791421
1
Do you have also some other file that records the georeferencing? According to driver manual page gdal.org/frmt_bmp.html GDAL is searching for world file which have extension bpw, .bmpw or .wld.
– user30184
Dec 23 '14 at 21:43
I don't have a worldfile but maybe I could make one? As I said I know the corner points in EPSG:3068. But gdal_polygonize gives me -1890,1890 for a point in the upper left corner and -1890,-15458310 for a point in the lower left corner. I want the first one to become (0,0) and the second one (0,4090)
– Selphiron
Dec 24 '14 at 9:59
1
Perhaps some aux.xml file then? There must be something because plain bmp file does not hold metadata about origin and pixel size. Example:gdalinfo bmp_test.bmp Driver: BMP/MS Windows Device Independent Bitmap Files: bmp_test.bmp Size is 475, 373 Coordinate System is "" Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 373.0) Upper Right ( 475.0, 0.0) Lower Right ( 475.0, 373.0) Center ( 237.5, 186.5) Band 1 Block=475x1 Type=Byte, ColorInterp=Red Band 2 Block=475x1 Type=Byte, ColorInterp=Green Band 3 Block=475x1 Type=Byte, ColorInterp=Blue
– user30184
Dec 24 '14 at 11:09
nope. I had a PNG and I opened it with MS Paint saved it as a 256 BMP ^^ But I solved it. I used gdal_translate -a_ullr 0 0 8250 4090 -of "BMP" source.bmp target.bmp Thx for your efforts!
– Selphiron
Dec 24 '14 at 15:09
1
If you solved your question, add the answer in the answer box. See gis.stackexchange.com/help/self-answer. Tks.
– Andre Silva
7 hours ago
add a comment |
1
Do you have also some other file that records the georeferencing? According to driver manual page gdal.org/frmt_bmp.html GDAL is searching for world file which have extension bpw, .bmpw or .wld.
– user30184
Dec 23 '14 at 21:43
I don't have a worldfile but maybe I could make one? As I said I know the corner points in EPSG:3068. But gdal_polygonize gives me -1890,1890 for a point in the upper left corner and -1890,-15458310 for a point in the lower left corner. I want the first one to become (0,0) and the second one (0,4090)
– Selphiron
Dec 24 '14 at 9:59
1
Perhaps some aux.xml file then? There must be something because plain bmp file does not hold metadata about origin and pixel size. Example:gdalinfo bmp_test.bmp Driver: BMP/MS Windows Device Independent Bitmap Files: bmp_test.bmp Size is 475, 373 Coordinate System is "" Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 373.0) Upper Right ( 475.0, 0.0) Lower Right ( 475.0, 373.0) Center ( 237.5, 186.5) Band 1 Block=475x1 Type=Byte, ColorInterp=Red Band 2 Block=475x1 Type=Byte, ColorInterp=Green Band 3 Block=475x1 Type=Byte, ColorInterp=Blue
– user30184
Dec 24 '14 at 11:09
nope. I had a PNG and I opened it with MS Paint saved it as a 256 BMP ^^ But I solved it. I used gdal_translate -a_ullr 0 0 8250 4090 -of "BMP" source.bmp target.bmp Thx for your efforts!
– Selphiron
Dec 24 '14 at 15:09
1
If you solved your question, add the answer in the answer box. See gis.stackexchange.com/help/self-answer. Tks.
– Andre Silva
7 hours ago
1
1
Do you have also some other file that records the georeferencing? According to driver manual page gdal.org/frmt_bmp.html GDAL is searching for world file which have extension bpw, .bmpw or .wld.
– user30184
Dec 23 '14 at 21:43
Do you have also some other file that records the georeferencing? According to driver manual page gdal.org/frmt_bmp.html GDAL is searching for world file which have extension bpw, .bmpw or .wld.
– user30184
Dec 23 '14 at 21:43
I don't have a worldfile but maybe I could make one? As I said I know the corner points in EPSG:3068. But gdal_polygonize gives me -1890,1890 for a point in the upper left corner and -1890,-15458310 for a point in the lower left corner. I want the first one to become (0,0) and the second one (0,4090)
– Selphiron
Dec 24 '14 at 9:59
I don't have a worldfile but maybe I could make one? As I said I know the corner points in EPSG:3068. But gdal_polygonize gives me -1890,1890 for a point in the upper left corner and -1890,-15458310 for a point in the lower left corner. I want the first one to become (0,0) and the second one (0,4090)
– Selphiron
Dec 24 '14 at 9:59
1
1
Perhaps some aux.xml file then? There must be something because plain bmp file does not hold metadata about origin and pixel size. Example:
gdalinfo bmp_test.bmp Driver: BMP/MS Windows Device Independent Bitmap Files: bmp_test.bmp Size is 475, 373 Coordinate System is "" Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 373.0) Upper Right ( 475.0, 0.0) Lower Right ( 475.0, 373.0) Center ( 237.5, 186.5) Band 1 Block=475x1 Type=Byte, ColorInterp=Red Band 2 Block=475x1 Type=Byte, ColorInterp=Green Band 3 Block=475x1 Type=Byte, ColorInterp=Blue
– user30184
Dec 24 '14 at 11:09
Perhaps some aux.xml file then? There must be something because plain bmp file does not hold metadata about origin and pixel size. Example:
gdalinfo bmp_test.bmp Driver: BMP/MS Windows Device Independent Bitmap Files: bmp_test.bmp Size is 475, 373 Coordinate System is "" Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 373.0) Upper Right ( 475.0, 0.0) Lower Right ( 475.0, 373.0) Center ( 237.5, 186.5) Band 1 Block=475x1 Type=Byte, ColorInterp=Red Band 2 Block=475x1 Type=Byte, ColorInterp=Green Band 3 Block=475x1 Type=Byte, ColorInterp=Blue
– user30184
Dec 24 '14 at 11:09
nope. I had a PNG and I opened it with MS Paint saved it as a 256 BMP ^^ But I solved it. I used gdal_translate -a_ullr 0 0 8250 4090 -of "BMP" source.bmp target.bmp Thx for your efforts!
– Selphiron
Dec 24 '14 at 15:09
nope. I had a PNG and I opened it with MS Paint saved it as a 256 BMP ^^ But I solved it. I used gdal_translate -a_ullr 0 0 8250 4090 -of "BMP" source.bmp target.bmp Thx for your efforts!
– Selphiron
Dec 24 '14 at 15:09
1
1
If you solved your question, add the answer in the answer box. See gis.stackexchange.com/help/self-answer. Tks.
– Andre Silva
7 hours ago
If you solved your question, add the answer in the answer box. See gis.stackexchange.com/help/self-answer. Tks.
– Andre Silva
7 hours ago
add a comment |
1 Answer
1
active
oldest
votes
I used gdal_translate -a_ullr 0 0 8250 4090 -of "BMP" source.bmp target.bmp
which solved the problem.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "79"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f127479%2fset-coordinate-origin-to-the-top-left-corner%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I used gdal_translate -a_ullr 0 0 8250 4090 -of "BMP" source.bmp target.bmp
which solved the problem.
add a comment |
I used gdal_translate -a_ullr 0 0 8250 4090 -of "BMP" source.bmp target.bmp
which solved the problem.
add a comment |
I used gdal_translate -a_ullr 0 0 8250 4090 -of "BMP" source.bmp target.bmp
which solved the problem.
I used gdal_translate -a_ullr 0 0 8250 4090 -of "BMP" source.bmp target.bmp
which solved the problem.
answered 9 mins ago
SelphironSelphiron
3791421
3791421
add a comment |
add a comment |
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f127479%2fset-coordinate-origin-to-the-top-left-corner%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Do you have also some other file that records the georeferencing? According to driver manual page gdal.org/frmt_bmp.html GDAL is searching for world file which have extension bpw, .bmpw or .wld.
– user30184
Dec 23 '14 at 21:43
I don't have a worldfile but maybe I could make one? As I said I know the corner points in EPSG:3068. But gdal_polygonize gives me -1890,1890 for a point in the upper left corner and -1890,-15458310 for a point in the lower left corner. I want the first one to become (0,0) and the second one (0,4090)
– Selphiron
Dec 24 '14 at 9:59
1
Perhaps some aux.xml file then? There must be something because plain bmp file does not hold metadata about origin and pixel size. Example:
gdalinfo bmp_test.bmp Driver: BMP/MS Windows Device Independent Bitmap Files: bmp_test.bmp Size is 475, 373 Coordinate System is "" Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 373.0) Upper Right ( 475.0, 0.0) Lower Right ( 475.0, 373.0) Center ( 237.5, 186.5) Band 1 Block=475x1 Type=Byte, ColorInterp=Red Band 2 Block=475x1 Type=Byte, ColorInterp=Green Band 3 Block=475x1 Type=Byte, ColorInterp=Blue
– user30184
Dec 24 '14 at 11:09
nope. I had a PNG and I opened it with MS Paint saved it as a 256 BMP ^^ But I solved it. I used gdal_translate -a_ullr 0 0 8250 4090 -of "BMP" source.bmp target.bmp Thx for your efforts!
– Selphiron
Dec 24 '14 at 15:09
1
If you solved your question, add the answer in the answer box. See gis.stackexchange.com/help/self-answer. Tks.
– Andre Silva
7 hours ago