klightspeed / EliteDangerousRegionMap

Elite Dangerous codex region map data, and various sample scripts / modules using it to place systems in codex regions
MIT License
15 stars 3 forks source link

Coordinates Map's Corners? #2

Closed kochmich closed 1 year ago

kochmich commented 3 years ago

You do very great work and research! Thanks a lot! I've a question to the both basemaps "RegionMap.png" and "Region.Map.svg"" and I hope, you can help me. Think it is easy for you to answer...

I'm seeking the coordinates for the Map's Corners left-down and right-up. So it would be possible to use your maps in other mapping projects...

Many thanks in advance for your reply. Cmdr Latenoid

klightspeed commented 3 years ago

The bottom-left corner of the map is at the origin point of the Elite Dangerous coordinate system (X=-49985, Z=-24105). There are then 83 pixels every 4096ly. Given that both the svg and png are 2048x2048, this puts the top right corner at X=8388608/83-49985 and Z=8388608/83-24105 or approximately X=51082.566 and Z=76962.566

kochmich commented 3 years ago

Thank you very much for your quick reply. Your information is a great help to me. In a German E:D Forum we talk a lot about mapping life forms. This is how we found your project, because we need a map base that is as precise as possible. If you want, our thread can be found here: https://elitedangerous.de/forum/index.php?thread/22481-atlas-of-life/

When we draw maps, we of course always name the author of the data. It is common to use the name of the commander. Do you have a commander name? Or should I use your nickname 'klightspeed'? Please let me know your wish.

I have another suggestion for your project that might arouse your interest. Would it be possible to plot the points of the regional boundaries as an Excel document? The results should correspond to the E: D coordinate system.

Greetings from Germany, Cmdr Latenoid

klightspeed commented 3 years ago

My in-game name is CMDR Bravada Cadelanne.

I began investigating the region borders in March last year https://forums.frontier.co.uk/threads/determining-the-region-of-a-system.537845/page-3#post-8329890

After tracing the borders, I posted about this in the #developers channel of the EDCD discord in September last year.

As mentioned in the above, at the edges of regions some parts of the game (e.g. the region display when jumping to a system, or the true assignment of codex discoveries) use the actual position of the system, while other parts of the game (e.g. the region displayed on the codex front page or the region codex discoveries are assigned to in the journal) use the "boxel" position of the system (i.e. the bottom left coordinate of the "boxel" the star is in, where e.g. a mass-code stars have 10ly boxels, d mass-code stars have 80ly boxels, and h mass-code stars have 1280ly boxels - see http://disc.thargoid.space/Sector_Naming#The_System_Identifiers for more info on mass-code).

klightspeed commented 3 years ago

I have another suggestion for your project that might arouse your interest. Would it be possible to plot the points of the regional boundaries as an Excel document? The results should correspond to the E: D coordinate system.

As in a 2048x2048 spreadsheet with each cell containing what region that cell is in, and an index formula that can be used to look up a position based on its X and Z coordinates?

klightspeed commented 3 years ago

https://drive.google.com/file/d/1FjlHWFm_DKm6q8VhiZRz3xgu8fjGFCtf/view?usp=sharing

kochmich commented 3 years ago

Holla! That looks crazy. But I'm not sure if I meant it that way. Basically I mean a 3-column table based on your map. Or instead of this, a calculation on your data.

E.g.

x / y (z) / value (1 = black, 0 = white) 0/0/0 1/1/0 1/2/1 1/3/0

... i.e. at coord. 1/2 there is 1 black pixel.

Then eliminate the "0" values, so that a relatively small table of coordinates comes out (instead of a table with about 4 million lines). The coordinates of the bitmap would then have to be shifted to an E: D-coordinate via Excel.

I attach the map from you converted as BW.GIF Galaxis Regionen SW (GIF)

.

kochmich commented 3 years ago

Note on the Map: I removed the outer ring as it is not relevant to the result, because End of Galaxy and no Stars.

kochmich commented 3 years ago

Thanks to your help with the basic coordinates, I was able to make the attached graphic. There I compare the distribution of four species and their relationship to regional borders. The left column of the image is based on your card. The right column to that of CMDR Qohen Leth. As you can easily see, mapping based on your data is much more precise. So I was able to verify your work and confirm your result. I published this in Frontierforum.

Nachweis cmdr Cadelanne vs cmdr Leth  cmdr Latenoid  (Kopie)

klightspeed commented 3 years ago

If you only care about the borders, and do not need to be pixel-perfect, then here is the SVG of the segment borders (with outer ring removed): RegionMap2.svg.txt If you do need it to be pixel perfect, then here is the SVG of the region borders (each path in the SVG is 1 region): RegionMap1.svg.txt Coordinates scaled and offset to E:D coordinates: RegionMap1a.svg.txt

kochmich commented 3 years ago

Thanks a lot, you are very fast! And thank you for taking the time. I need a file like the third one.

I just plotted it and got an interesting result. The regions do not look like what we are used to. See picture 1.

I then swapped columns A and B. See picture 2.

And then I turned it -90 degrees. Now the galaxy apears like we are used, but the labels are of course somewhere else. See picture 3.

As you can see, your coordinates have been swirled around. It is interesting to see that the point density decreases towards the main coordinates.

It's probably very complicated, but do you think you can tweak it?

Step 1

Step 2

Step 3

klightspeed commented 3 years ago

Sorry, I forgot that the Y coordinates are flipped when I scaled and offset them. The point density reduces near the axes due to the points describing the ends of line segments. Here is a modified one where each line segment is the same length, and the Y coordinates are correctly flipped: RegionMap1b.svg.txt

klightspeed commented 3 years ago

Sorry, just realized that there is an error in the above. One moment.

Edit: Zero-length segments removed: RegionMap1b.svg.txt

kochmich commented 3 years ago

You made it :-) !

Here's the result - thanks a lot.

You are a very great programmer!

New Basemap