crusheerpl / demgen Goto Github PK
View Code? Open in Web Editor NEWA Py3-powered tool for terrain heightmap generation for Farming Simulator mod-maps (PL/CZ/SK)
License: BSD 3-Clause "New" or "Revised" License
A Py3-powered tool for terrain heightmap generation for Farming Simulator mod-maps (PL/CZ/SK)
License: BSD 3-Clause "New" or "Revised" License
Consider refactoring the code to be able to add ther countries easily - now it has hardcoded PL and CZ, in the future someone would add other countries. To do that, think about dividing code into classes and namespaces.
This will make project more robust, but also more scalable.
This is idea for the future, not bug
It would be nice feature if we had possibility to enter only center of map, not border points.
Now user is forced to do math (with KML exporter, etc...) which can be done (from my point of view) in script.
This is idea for the future, not bug
Since some time there's a problem with elevation data collecting from Czech Geoportal – the 'getSamples' query type (used by demGen) is "forbidden by administrative rules" – so you can see 403 Forbidden instead of the data.
I'm working on the big demGen update, I'll look for any solutions.
You must insert tile number for mod2 script to generate heights. It would be nice feature to have posibility to simply insert folder path and script will generate heighs
a
As of now, scripts have hardcoded config path (demGenerator_config.txt
) and workspace folder (demGen_data
). It would be nice to be able to configure where to load configuraiton and where to store intermediate results (if needed). Current values can be used as defaults
Python 3.8
RomanCZ via YouTube (https://www.youtube.com/watch?v=4WGZ4wCk-Es&lc=UgwTAvRJvJdw-RSFuqt4AaABAg)
(Screenshot taken by RusheerPL in Win7 (64bit) PC)
The mod2 has no support for Python 3.8 or newer, and Python older than 3.5. 44fcaf0
Run this script in the Python 3.5 - 3.7 environment instead of Python 3.8.
When generating heights for the map (country=CZ), script (mod2) tends to create download peaks.
I would expect constant network usage when downloading heights data. Also consider bit refactor of mod2. In the script, "stupid" str.split is used to get data out of json. Thats one thing, another thing is, that in case when you will generate 4x4 map (my case), it will open ~4227136 connections just to get one number. Web protection services can detect this ammount of connections as an attack and will cause slow down for that user.
TODO:
Impact:
Because of this issue, this script hard to use for large maps in czech environment.
jak kończe z tymi dem generator 1 itd to ak patrze tam gdzie mają być pliki ortho to jest sam zielony ekran help
Traceback (most recent call last):
File "C:\Users\...\Desktop\demGenerator-master\demGenerator-master\demGenerator_mod2.py", line 113, in <module>
hstr = list(tqdm.tqdm(p.imap(getHeightPL, rqs), total=len(rqs)))
File "C:\Python\Python37\lib\site-packages\tqdm\std.py", line 1081, in __iter__
for obj in iterable:
File "C:\Python\Python37\lib\multiprocessing\pool.py", line 748, in next
raise value
multiprocessing.pool.MaybeEncodingError: Error sending result: '<multiprocessing.pool.ExceptionWithTraceback object at 0x000001EF13C26400>'. Reason: 'TypeError("cannot serialize '_io.BufferedReader' object")'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.