PhotoSceneryCreator
===================

Version Number 2.000e

ALPHA VERSION

This tool creates photoscenery BGLs from Imagery, which has been downloaded with Ortho4XP for P3D.
The tool creates the blend- and watermask, based on shapefiles and resamples.
Furthermore, it is able to create 5 seasons (winter, hardwinter (snow), spring, summer and fall) and can change enhance the colors of the Ortho4XP imagery.
To avoid loading problems when creating huge areas, this tool merges around 50-100 single images into one bgl.

To use this script, some preparations are necessary:

1. A working version of ArcGIS Desktop, newer than version 10.5 must be installed.
   For personal use ESRI charges 100 $/year:
   https://www.esri.com/en-us/arcgis/products/arcgis-for-personal-use/overview
   ArcGIS Desktop already comes with Python2.7 and the ArcPy interface.
   This is required for my script to work!

2. Please install pip (python package installer):
   https://pip.pypa.io/en/stable/
   ... and add it to the enivronment by opening the Command Promptwith admin rights and the following command:
   setx PATH "%PATH%;C:\Python27\ArcGIS[VersionNumber]\Scripts"
   for example:
   setx PATH "%PATH%;C:\Python27\ArcGIS10.8\Scripts"
   
3. Install the required modules via the command prompt:
   pip install termcolor
   pip install colorama
   pip install unicodedata
   pip install re

4. Put your shapefile with the area you want to create into the Blend folder (-> This will be the blendmask)

5. Put your shapefile with the water areas into thw Water folder (-> This will be the watermask)

6. Run the PSCreator.py
   Usually, this will be open up in a command prompt window, and follow the instructions.
   At every input line you can enter "help" to get more information about this setting.

Please always remember, that this is still an Alpha version, and errors may occur.
Please report the problems to me!

In the Blend and Water-folder you will find a example shapefile for Schleswig-Holstein/Hamburg.

It is prohibited to use this script or parts of it for any commercial purposes.
It is also prohibited, to upload it to any other server or to share it otherwise.

CHANGELOG:

2020-05-15	Fixed a problem when running PSCreator from a different partitionwhen PSCreator
		Removed unnecessary files
2020-05-21	Fixed an error that incorrectly creates the resample.inf when using seasons
		Path error of ImageMagick fixed
2020-06-08	Better Error handling
		Reading of the paths improved