Yes, I see. Maybe find yourself a tutorial about how to use the command prompt or the power shell. Things might become clearer then.sorry, im kinda new at typing code to run things...
Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.
Yes, I see. Maybe find yourself a tutorial about how to use the command prompt or the power shell. Things might become clearer then.sorry, im kinda new at typing code to run things...
I found you have to add "-imagery" argument in-front of the filemask files location (ie. *.tif) or else you get that error, documentation needs to be updated on docs site, but help in the command line shows the argument is required.Trying this for the first time today but I am running into an issue that left me scratching my head.
I'm experimenting with elevation files. I run the command: msfs elev "C:\Users\Mike\Documents\KCLT\source\USGS_13_n36w081.tif" -border "C:\Users\Mike\Documents\KCLT\source\KCLT.kml" -airport "C:\Users\Mike\Documents\KCLT\mkb-airport-charlotte-douglas.xml" -res 10 "C:\Users\Mike\Documents\KCLT\PackageSources\elevation\KCLT_elev.xml"
It is returning the message in red: ERROR argument dest: XML name must end with '.xml'
Ideas as to what I'm doing wrong?
Thanks
msfs elev -imagery "C:\Users\Mike\Documents\KCLT\source\USGS_13_n36w081.tif" -border "C:\Users\Mike\Documents\KCLT\source\KCLT.kml" -airport "C:\Users\Mike\Documents\KCLT\mkb-airport-charlotte-douglas.xml" -res 10 "C:\Users\Mike\Documents\KCLT\PackageSources\elevation\KCLT_elev.xml"
D:\msfs-toolkit-0.53> py .\msfs_elev.py -help
Traceback (most recent call last):
File "D:\msfs-toolkit-0.53\msfs_elev.py", line 36, in <module>
os.add_dll_directory(pathlib.Path(os.environ["osgeo_root"]) / "bin")
File "C:\Python310\lib\os.py", line 679, in __getitem__
raise KeyError(key) from None
KeyError: 'osgeo_root'
if i launch msfs.bat , the windows open, after 5 sec and close Auto no choice possible no other menu , i click right and open manually shell, but i cant find any solution,Ahh ) Just a help on the installation, indeed, at home, after having correctly installed the package, launched the Bat, installed python 3.10, I absolutely can't manage for 3 days to solve this error:
I specify that I launch the shell from the directory : msfs-toolkit-0.53
sorry for my bad english im french )
Code:D:\msfs-toolkit-0.53> py .\msfs_elev.py -help Traceback (most recent call last): File "D:\msfs-toolkit-0.53\msfs_elev.py", line 36, in <module> os.add_dll_directory(pathlib.Path(os.environ["osgeo_root"]) / "bin") File "C:\Python310\lib\os.py", line 679, in __getitem__ raise KeyError(key) from None KeyError: 'osgeo_root'
ok, Format Arcgis *.shp its no comptatible , i have converted to kmz, and Task completewath is wrong? resolution 5 need to 8.3?
MSFS AIRPORT ELEVATION TOOL NOOL AEROSYSTEMS OÜ
Personal license - for non-commercial use only https://www.nool.ee/
======================================================================================================================================================================================================================================
Collecting imagery 1/1 (100.00%)
Imagery has 8.29 m resolution
Output will be 5.00 m
Initializing grid
Traceback (most recent call last):
File "D:\msfs-toolkit-0.53\msfs_elev.py", line 374, in <module>
sys.exit(main(sys.argv[1:]))
File "D:\msfs-toolkit-0.53\msfs_elev.py", line 117, in main
rect_grid = grid.ElevRectGrid(args.bounds if args.bounds else args.border)
File "D:\msfs-toolkit-0.53\noolaero\grid.py", line 43, in __init__
self.InitFromFile(params)
File "D:\msfs-toolkit-0.53\noolaero\grid.py", line 81, in InitFromFile
self.coverage = util.LoadPolygonsFromFile(filename)
File "D:\msfs-toolkit-0.53\noolaero\util.py", line 74, in LoadPolygonsFromFile
ds = gdal.VectorTranslate("", str(filename), format = "Memory", dstSRS = f"EPSG:{epsg}", reproject = True)
File "D:\msfs-toolkit-0.53\OSGeo4W_v2\Apps\Python39\lib\site-packages\osgeo\gdal.py", line 818, in VectorTranslate
srcDS = OpenEx(srcDS, gdalconst.OF_VECTOR)
File "D:\msfs-toolkit-0.53\OSGeo4W_v2\Apps\Python39\lib\site-packages\osgeo\gdal.py", line 4018, in OpenEx
return _gdal.OpenEx(*args, **kwargs)
RuntimeError: Unable to open D:\Projects\EDDS\source\contourEdds.shx or D:\Projects\EDDS\source\contourEdds.SHX. Set SHAPE_RESTORE_SHX config option to YES to restore or create it.
PS D:\msfs-toolkit-0.53>
Can you post the entire command?What should I do to correct the error ?