Butschi Posted April 28, 2023 Author Share Posted April 28, 2023 1 hour ago, Pinetree said: Is it possible to have the same options for geotiffs as dgm? Having an rotatable bounding box and water level correction would be great. In principle, yes, but I'm undecided if it's worth the effort. In fact, I'm think about shutting down geotiff2cm entirely because it is so easy to convert geotiffs to xyz files. You can use QGis or the python package rasterio for that. Having to maintain only one tool is way more attractive for me than having two or three (.asc files are also used frequently, e.g. by France, and they can be converted to .xyz, too). You are using the python sources, anyway, right? Then I'll post how to use rasterio for that later. 0 Quote Link to comment Share on other sites More sharing options...
Pinetree Posted April 28, 2023 Share Posted April 28, 2023 That would be cool, thanks 0 Quote Link to comment Share on other sites More sharing options...
Butschi Posted April 28, 2023 Author Share Posted April 28, 2023 3 hours ago, Pinetree said: That would be cool, thanks rio.exe convert your_geotiff.tif your_geotiff.xyz Caveat: a) The resulting file can get (very) large. b) The result will probably only be useful if your geotiff is projected (i.e. in metres not degrees) and the resolution is 1m x 1m. If the geotiff is not already in that format, you can use QGis to extract a region of interest and reproject and resample it. 0 Quote Link to comment Share on other sites More sharing options...
Pinetree Posted April 28, 2023 Share Posted April 28, 2023 Thanks. Yeah, I'll have to brush up on QGis, as I'm doing a CMFI map and the geotiffs for Italy are at 10m resolution plus I'm very rusty. I recall having to do that years ago. 0 Quote Link to comment Share on other sites More sharing options...
samuraiman Posted April 30, 2023 Share Posted April 30, 2023 (edited) On 4/12/2023 at 3:07 PM, Butschi said: I also released update 2.0.1. Minor update that adds support for comma separated xyz data. https://github.com/DerButschi/CMAutoEditor/releases/latest/download/release.zip @samuraiman This should fix the issue with your data. Yes it works brilliantly. I just produced a huge 6400x2576 map and it is gorgeous. I will need to go in and edit the buildings, fences and hedges, flavor objects, and many other details, but the basic map does get generated saving massive amounts of work. It took about 4 hours to render the elevation and about 10 hours to render the rest over night. The only issue is maybe my xyz data was corrupted because the bottom of the generated map did not match the rest of the map and I had to trim it off by about 350 meters. I will re-download the xyz data and try it again. I would post a photo but forum says I have no space. Excellent tool. Edited April 30, 2023 by samuraiman 1 Quote Link to comment Share on other sites More sharing options...
Butschi Posted May 2, 2023 Author Share Posted May 2, 2023 (edited) On 4/30/2023 at 4:20 PM, samuraiman said: Yes it works brilliantly. I just produced a huge 6400x2576 map and it is gorgeous. I will need to go in and edit the buildings, fences and hedges, flavor objects, and many other details, but the basic map does get generated saving massive amounts of work. It took about 4 hours to render the elevation and about 10 hours to render the rest over night. The only issue is maybe my xyz data was corrupted because the bottom of the generated map did not match the rest of the map and I had to trim it off by about 350 meters. I will re-download the xyz data and try it again. I would post a photo but forum says I have no space. Excellent tool. I use imgur to upload screenshots and such and link them here. I'm actually quite curious about your map. I've never tried to go beyond the standard 4160m allowed in one direction and it is not really by design if it works with CMAutoEditor - more a byproduct of the "scrolling" mechanism... So, not sure, might even be that your issue with the bottom part is somehow related to that. Edited May 2, 2023 by Butschi 0 Quote Link to comment Share on other sites More sharing options...
Artkin Posted May 2, 2023 Share Posted May 2, 2023 I never got my geotiff2cm to work either. Same issues as before, I think I should try a different system before speaking up again. It sucks because I would leave my computer on every night pumping out terrains for people. 1 Quote Link to comment Share on other sites More sharing options...
Butschi Posted May 2, 2023 Author Share Posted May 2, 2023 (edited) 1 hour ago, Artkin said: I never got my geotiff2cm to work either. Same issues as before, I think I should try a different system before speaking up again. It sucks because I would leave my computer on every night pumping out terrains for people. Again, can I ask you guys to please use the issue template here https://github.com/DerButschi/CMAutoEditor/issues for stuff like that? I really do want to help you but I don't want to let this thread devolve IT-support hotline style into me asking questions about the details of your system (and if you have tried to turn it off and on again ) that must surely be boring for 99% of the other forumites. Thanks, would help me a great deal! Edited May 2, 2023 by Butschi 0 Quote Link to comment Share on other sites More sharing options...
Butschi Posted May 2, 2023 Author Share Posted May 2, 2023 (edited) New Release: CMFI Profile for CMAutoEditor https://github.com/DerButschi/CMAutoEditor/releases/tag/2.1 Edited May 2, 2023 by Butschi 2 Quote Link to comment Share on other sites More sharing options...
nathangun Posted May 3, 2023 Share Posted May 3, 2023 @Butschi do you ever sleep. 0 Quote Link to comment Share on other sites More sharing options...
Butschi Posted May 3, 2023 Author Share Posted May 3, 2023 2 hours ago, nathangun said: @Butschi do you ever sleep. Isn't that what coffee is for? 2 Quote Link to comment Share on other sites More sharing options...
NorseNerd Posted May 4, 2023 Share Posted May 4, 2023 New release doesn't seem to work for me, have logged the issue on github @Butschi The autoeditor window just closes when told to run and I'm hella stumped! 0 Quote Link to comment Share on other sites More sharing options...
Butschi Posted May 4, 2023 Author Share Posted May 4, 2023 (edited) 9 hours ago, NorseNerd said: New release doesn't seem to work for me, have logged the issue on github @Butschi The autoeditor window just closes when told to run and I'm hella stumped! *sigh* That will take longer. Sorry, the .exe files are not working in version 2.1, so I'm removing them for now. Btw. if you start the .exe files from the Power Shell or command prompt, the shell won't close the moment a program crashes and you are able to see the error message. Edited May 4, 2023 by Butschi 1 Quote Link to comment Share on other sites More sharing options...
Artkin Posted May 4, 2023 Share Posted May 4, 2023 On 4/22/2023 at 2:49 PM, NorseNerd said: Love the look of your tool Butschi! As a mapper this makes me excited- but! The campaign I'm about to start is gonna be SF2 and I don't own CW, but do own FI. Do you foresee any issues with- - Me making the map in SF2 with just the normal CW or FI profile? Or -Making the map in FI and porting it to SF2? I know non-modular buildings break converting maps from one CM title to another but I have no extra cross-title knowledge than that really xD Any help or advice would be grand! Unfortunately not, CMSF2 doesn't play nice with ANY title except the 1.0 versions of CM. So like, the very original CD. If you have a 1.0 game you can convert between them. SF1 was 1.0 - 3.0 and SF2 was the bump to 4.0 0 Quote Link to comment Share on other sites More sharing options...
samuraiman Posted May 5, 2023 Share Posted May 5, 2023 (edited) On 5/2/2023 at 2:46 PM, Butschi said: I use imgur to upload screenshots and such and link them here. I'm actually quite curious about your map. I've never tried to go beyond the standard 4160m allowed in one direction and it is not really by design if it works with CMAutoEditor - more a byproduct of the "scrolling" mechanism... So, not sure, might even be that your issue with the bottom part is somehow related to that. Here you go. Looks like the bottom portion of the map shifted to the left at seen in the first image. Not sure why. https://imgur.com/fmNtiCB https://imgur.com/NK9GYyF https://imgur.com/eZIcx4R https://imgur.com/v4uq1hl https://imgur.com/P3jPwNj https://imgur.com/LvhTX4D Edited May 5, 2023 by samuraiman 0 Quote Link to comment Share on other sites More sharing options...
Butschi Posted May 8, 2023 Author Share Posted May 8, 2023 On 5/5/2023 at 3:09 AM, samuraiman said: Here you go. Looks like the bottom portion of the map shifted to the left at seen in the first image. Not sure why. https://imgur.com/fmNtiCB https://imgur.com/NK9GYyF https://imgur.com/eZIcx4R https://imgur.com/v4uq1hl https://imgur.com/P3jPwNj https://imgur.com/LvhTX4D I did a quick check. As I thought, this is related to the scrolling mechanism. This "scrolling" is actually done by extending the map to one side (and then shrinking on the other side but that doesn't matter here). As you certainly know, in the Scenario Editor you can only go up to 4160m in one direction. So that is what happens with the first "line". When going to 6000m, CMAutoEditor hits the limit at 4160m and tries to scroll further which doesn't work (but which it can't know). It then scroll back the full 6000m, which is possible, and then starts then next line from there, so the other "lines" above the first one are ok. So, in principle, it could work with larger maps if CMAutoEditor starts by scrolling to the right there. I will make a note to look into it but no promises whatsoever as to when that will happen. 0 Quote Link to comment Share on other sites More sharing options...
Butschi Posted May 9, 2023 Author Share Posted May 9, 2023 For all of you who want to extract elevation data from geotiffs: I did a short tutorial on how to convert geotiffs to xyz data so you can use the data with dgm2cm. @Pinetree @Artkin 3 Quote Link to comment Share on other sites More sharing options...
Artkin Posted May 9, 2023 Share Posted May 9, 2023 21 minutes ago, Butschi said: For all of you who want to extract elevation data from geotiffs: I did a short tutorial on how to convert geotiffs to xyz data so you can use the data with dgm2cm. @Pinetree @Artkin Ive been pretty busy but ill remember to check this out. Thanks for this, its super important to me. Everyday I learn more and more about Fall Blau. 1 Quote Link to comment Share on other sites More sharing options...
Pinetree Posted May 11, 2023 Share Posted May 11, 2023 On 5/10/2023 at 10:15 AM, Butschi said: For all of you who want to extract elevation data from geotiffs: I did a short tutorial on how to convert geotiffs to xyz data so you can use the data with dgm2cm. @Pinetree @Artkin Great stuff, thank you. I was doing it slightly differently (using the GDAL processing toolbox) but your process makes a lot more sense. 0 Quote Link to comment Share on other sites More sharing options...
Butschi Posted May 13, 2023 Author Share Posted May 13, 2023 On 5/5/2023 at 1:18 AM, Butschi said: *sigh* That will take longer. Sorry, the .exe files are not working in version 2.1, so I'm removing them for now. Btw. if you start the .exe files from the Power Shell or command prompt, the shell won't close the moment a program crashes and you are able to see the error message. The issue is fixed now. https://github.com/DerButschi/CMAutoEditor/releases/tag/2.1.1 1 Quote Link to comment Share on other sites More sharing options...
Artkin Posted May 13, 2023 Share Posted May 13, 2023 Damn that file grew in size. I'll give the gui a shot. 0 Quote Link to comment Share on other sites More sharing options...
Butschi Posted May 13, 2023 Author Share Posted May 13, 2023 And while I'm at it: https://github.com/DerButschi/CMAutoEditor/releases/tag/2.2 Special thanks to @NorseNerd! There is now a CMSF2 profile. Please note: I don't own SF2 myself, I can't test how it actually works. I just checked that the tools didn't crash instantly. 2 Quote Link to comment Share on other sites More sharing options...
samuraiman Posted May 14, 2023 Share Posted May 14, 2023 On 5/8/2023 at 3:02 PM, Butschi said: I did a quick check. As I thought, this is related to the scrolling mechanism. This "scrolling" is actually done by extending the map to one side (and then shrinking on the other side but that doesn't matter here). As you certainly know, in the Scenario Editor you can only go up to 4160m in one direction. So that is what happens with the first "line". When going to 6000m, CMAutoEditor hits the limit at 4160m and tries to scroll further which doesn't work (but which it can't know). It then scroll back the full 6000m, which is possible, and then starts then next line from there, so the other "lines" above the first one are ok. So, in principle, it could work with larger maps if CMAutoEditor starts by scrolling to the right there. I will make a note to look into it but no promises whatsoever as to when that will happen. I retried the elevation generation and had no problems with the bottom shifting. Maybe I know why the bottom portion of the map shifted left on the first map. I left out a particular xyz zone that was outside the area I was working on but in the same row as other areas in the map. Perhaps that missing zone caused a shift among the others. 0 Quote Link to comment Share on other sites More sharing options...
Butschi Posted May 14, 2023 Author Share Posted May 14, 2023 (edited) 31 minutes ago, samuraiman said: I retried the elevation generation and had no problems with the bottom shifting. Maybe I know why the bottom portion of the map shifted left on the first map. I left out a particular xyz zone that was outside the area I was working on but in the same row as other areas in the map. Perhaps that missing zone caused a shift among the others. I won't complain if it works. (That's the kind of thing where I like to be wrong. ) Still, I don't think it actually can work... In your case, the OSM part is probably fine when you start from a pre-existing map with elevations. But I guess when you take a close look at whether the elevations are correct in the first row, you are going to discover that they are in fact not. Come to think of it, it may be a workaround to just make a new (empty) map with the correct size (look into elevation csv file and take the maximum x and y value x8), go to the upper left corner and then start the process from there (checking "Take start size from file")... Edited May 14, 2023 by Butschi 0 Quote Link to comment Share on other sites More sharing options...
JM Stuff Posted May 25, 2023 Share Posted May 25, 2023 (edited) Hi Nico, @Butschi I try again your tool and I was also downloaded the geoportal but this one is only for germany and only NRW not another part, when I try to working on the triangle from lux bel france just on the border, do you know how I can have the same infos with another tool, and eventual everywhere I will try to build a scenario ? Edited May 25, 2023 by JM Stuff 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.