View Issue Details

IDProjectCategoryView StatusLast Update
0002558SkyChart1-Softwarepublic22-10-21 16:10
ReporterAngelo Besani Assigned ToPatrick Chevalley  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
PlatformPCOSWindowsOS Version7
Product Version4.2 
Summary0002558: Strange behaviour for catalog build with catgen
DescriptionI've been playing with CatGen and the generation of "nebulae outlines" as a way to add markers and annotations to my charts indicating things I need.
It's more or less working fine, but with a few problems.
Since these problems are all related to the same thing, I'm compiling only this issue with all the problems I've found. I hope this is ok.

Files for these first two problems are Test2.Prj and CatalogSource2.txt.

The first problem I have is that for the life of me I don't understand how to show the description for the objects I add via CatGen. The description IS in the input catalog file but I have not understood which field is supposed it to be. I've tried "Catalog ID", "Comments", "String 1", but none of them makes the text show in the chart. I've also explored all the CdC settings in case it's an option that has to be enabled, but I've found nothing.
I've tried both creating a "binary indexed catalog" or a "text file catalog" but found no difference. This particular catalog should be a "binary indexed one" though.

Another problem, always with this catalog, is that I'd like to build the catalog from a (windows) batch file. From what I understood, CatGen from the current beta is supposed to have command line switches to handle this exact case. I found no documentation about command line switches but from what I've understood the switch I want is -p so I can "compile" a saved project.
I've build a test project and it works fine compiling it with the interactive version of CatGen V 3.0 (Run, "Load project" button, "Next" button 3 times, "Build Catalog") which builds "Tst2.dat" and "tst2.hdr" which then works fine.
But if I run:
"\Program Files\Ciel\catgen.exe" -p Test2.prj
catgen builds "tst2.hdr", "tst2.ixr" and 50 files named "tst201.dat" to "tst250.dat" which don't works correclty (some of the objects are sometimes rendered wrong). Is -p the wrong command line switch or is there something else?

Files for the following problems are CatalogSource.txt, Test(Binary).prj and Test(Text).prj.

A third problem I've found is with a different catalog I'd like to compile as a "text file catalog" in which there are 3 "outlines" but with different drawing type, color and line size.
Changing line sizes works.
Line color works as expected for "binary indexed catalog" but with "text file catalog" the objects are always drawn white, regardless of the color set in the start operation OR in the "Default outline parameters"
Drawing types behaves strangely: I've tested line and outline types only.
Version 4.2.1 (4072-ee8141c3 2019/11/24 15:48:06) seems ok with "binary indexed catalog", while it's difficult to understand what happens for "text file catalog" because everything is white.
Version 4.3 beta-4521-9574038 2022/08/29 04:06:07 handles "surface" objects more like a "filled spline" than a "filled polygon" both for "binary indexed catalogs" and for "text file catalogs".

Thanks for your support.
Ciao
Angelo
TagsNo tags attached.

Activities

Angelo Besani

22-09-29 22:41

reporter  

CatalogSource.txt (661 bytes)   
00.878947 -028.083278 0 2 1 8 Near NGC253, blue background filled surface
00.865981 -018.611155 2       type=2 (surface), size=1, color=8 (assigned as color8=4128768)
00.225313 -018.578314 2  
00.205675 -028.056919 1  
00.878947 -028.083278 0 0 1 9 Gray border for the previous filled surface
00.865981 -018.611155 2       type=0 (line), size=1, color=9 (assigned as color9=8355711)
00.225313 -018.578314 2
00.205675 -028.056919 1
00.774048 -027.115771 0 0 2 1 Small white rectangle on top of the filled surface
00.765142 -024.578183 2       type=0 (line), size=1, color=1 (normal color assignment)
00.888748 -024.488003 2  
00.900280 -027.023975 1
CatalogSource.txt (661 bytes)   
CatalogSource2.txt (1,106 bytes)   
20.689239 +033.909618 0 NGC6992 NGC6960 Nebulosa Velo                           !
20.696674 +028.029805 2
20.992524 +028.013146 2
21.003333 +033.892444 1
20.542904 +034.249347 0 NGC6992 NGC6960 Nebulosa Velo                           !
20.566160 +025.678263 2
20.988809 +025.695331 2
21.004595 +034.284420 1
20.705929 +031.952502 0 NGC6960 Nebulosa Velo 0vest                             !
20.708943 +029.713547 2
20.823474 +029.729068 2
20.823072 +031.966981 1
18.569020 -015.473465 0 Via Lattea                                              !
17.032248 -011.198497 2
16.726875 -026.729412 2
18.433742 -031.445488 1
19.067711 -021.355049 0 Via Lattea                                              !
17.446061 -019.659979 2
17.214166 -035.432215 2
19.106232 -037.518568 1
19.310926 +076.507973 0 Startrails                                              !
02.345581 +074.835581 2
06.733784 +075.509888 2
14.271672 +077.262184 1
21.385394 +033.984058 0 Cigno nord                                              !
20.733848 +057.468127 2
19.117673 +049.814499 2
20.190015 +028.587905 1
CatalogSource2.txt (1,106 bytes)   

Patrick Chevalley

22-09-30 08:28

administrator   ~0007945

Angelo,

The .prj file was not attached because of restriction on accepted files to protect the web server.
Can you put them in a zip file to upload here.

Angelo Besani

22-09-30 10:36

reporter   ~0007946

Here they are!

Ciao
Angelo
Prjs.zip (4,664 bytes)

Patrick Chevalley

22-10-12 10:52

administrator   ~0007947

Thank you,
I start to look at the different problem now.

At the moment the line catalog are only used for nebula outline in addition of another catalog that show the label and other information. This is why labeling directly from the outline is not implemented.
But this is easy to add, I do a quick testing with one of your file. Please look at the attached screenshot and tell me if this is what you need.

-p is the right option for catgen command line. There is also -i to specify another input file than the one in the .prj file.
This is new and not well tested way to use catgen so a bug is possible, I look at that later.
line_label.png (193,609 bytes)   
line_label.png (193,609 bytes)   

Angelo Besani

22-10-12 12:00

reporter   ~0007949

Thanks a lot. This is exactly what I need.

Btw, I'm using this catalog to display on the chart what I've already photographed, and the label will be the name of the picture.

Ciao
Angelo

Patrick Chevalley

22-10-17 08:07

administrator   ~0007951

The three problem are now fixed in today beta version: https://sourceforge.net/projects/skychart/files/0-beta/2022-10-17/

- use the field "Catalog ID" for the label on the chart.
- use type=3 for "filled polygon", type=2 is still for "filled spline"

Tell me if this work for you.

Angelo Besani

22-10-19 11:33

reporter   ~0007954

So far everything works 100% fine.

Thanks a lot.

Just a question... the 10 colors defined in the CatGen project file, are PER CATALOG or they are shared betweens all the loaded catalog? For me it's ok either way, anyway.

Thanks again
Ciao
Angelo

Patrick Chevalley

22-10-21 16:10

administrator   ~0007962

The 10 colors are stored in the catalog header file so they are per catalog and can be different in different catalog.

I close the issue now but you can reopen if you have other question.

Issue History

Date Modified Username Field Change
22-09-29 22:41 Angelo Besani New Issue
22-09-29 22:41 Angelo Besani File Added: CatalogSource.txt
22-09-29 22:41 Angelo Besani File Added: CatalogSource2.txt
22-09-30 08:28 Patrick Chevalley Assigned To => Patrick Chevalley
22-09-30 08:28 Patrick Chevalley Status new => feedback
22-09-30 08:28 Patrick Chevalley Note Added: 0007945
22-09-30 10:36 Angelo Besani Note Added: 0007946
22-09-30 10:36 Angelo Besani File Added: Prjs.zip
22-09-30 10:36 Angelo Besani Status feedback => assigned
22-10-12 10:52 Patrick Chevalley Note Added: 0007947
22-10-12 10:52 Patrick Chevalley File Added: line_label.png
22-10-12 12:00 Angelo Besani Note Added: 0007949
22-10-17 08:07 Patrick Chevalley Status assigned => feedback
22-10-17 08:07 Patrick Chevalley Note Added: 0007951
22-10-19 11:33 Angelo Besani Note Added: 0007954
22-10-19 11:33 Angelo Besani Status feedback => assigned
22-10-21 16:10 Patrick Chevalley Status assigned => resolved
22-10-21 16:10 Patrick Chevalley Resolution open => fixed
22-10-21 16:10 Patrick Chevalley Note Added: 0007962