On 11/7/13, Georg Zotti <[email protected]> wrote:
> [snipped]
> If reading a JSON already works, transforming alt/az text lists to JSONs
> should be simple enough for users. Which one is the best to use?

As the one who proposed that blueprint, I will be very happy if this
gets implemented.

As for the format:

I've updated the link to the example file used in SkyChart:
http://sourceforge.net/p/skychart/code/HEAD/tree/trunk/tools/data/horizon/horizon_Geneve.txt

It would be very nice if the implementation of Stellarium is
compatible with that format. It's not very hard to parse - you need to
read a text file line by line, ignore every line beginning with a #,
read lines that contain a pair of space-separated values and
discard/warn about anything else.

My original vision was to have the same file structure as the other
landscape types, but with the landscape.ini containing a reference to
the .txt file instead of a texture.

Another possibility is to save the alt/az pairs directly into the
landscape.ini file, for example using the "array" feature in
QSettings:
http://qt-project.org/doc/qt-5.0/qtcore/qsettings.html#beginWriteArray

Or we can have multiple implementations/input formats and detect which
one is used in a particular landscape file. :)

If you need help with the data input code, I can make a small program
for creating/parsing such landcapes, similar to the location list
editor. (I have problems with building/running Stellarium at the
moment.)

Regards,
Bogdan Marinov

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Stellarium-pubdevel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel

Reply via email to