510 Commits

Author SHA1 Message Date
Justin Kunimune
d7140e69f4 increase max image size 2025-02-12 06:28:58 -08:00
Justin Kunimune
858db84f64
move website link up in readme 2025-02-03 17:43:23 -05:00
Justin Kunimune
da0a6caecc fix some booleans
idk how I keep messing these up so badly.
2025-01-21 16:05:05 -05:00
Justin Kunimune
24191b91bb rebuild with the correct version 2025-01-18 18:00:24 -05:00
Justin Kunimune
b166796503 rebuild!
thank goodness; I had wanted to release this, like, a week ago.
2025-01-18 17:49:48 -05:00
Justin Kunimune
6f8f6f9571 fix spiral map for good
well, there are a couple of nubs I don't understand that appear when you turn the number of loops down.  but this is fine, I think.  it finally hits the good enuff metric for which I had been aiming.  I just had to pull out the poles and handle them totally separately.
2025-01-18 17:41:41 -05:00
Justin Kunimune
282383abeb optimized outline for spiral projection
it's almost there.  man, I keep trying to get a shitty but presentable version of this projection and it keeps being more challenging than I expected.  this one looks alrite, tho, and I think with one more modification I can remove those annoying gaps that shouldn't be there.
2025-01-18 16:58:10 -05:00
Justin Kunimune
4bd6f3c2c9 add Solid Earth projection
there was also a bug where the Liquid Earth projection threw an error if you tried to use a map with points on the pole or antimeridian.  but that's fixd now.  I also fixed a minor issue where it said that the Equal Earth projection had a closed-form inverse when it in fact does not.  I also renamed the liquid earth mesh files.
2025-01-16 21:07:53 -05:00
Justin Kunimune
08ca187e7b make the spiral a bit better
now it has a nicer boundary polygon and an inverse projection!  the inverse projection isn't great, but it's close.
2025-01-12 21:20:36 -05:00
Justin Kunimune
299e2d2632 new euler spiral map projection
it *kind of* works, and for now that's good enuff for me.
2025-01-04 20:07:37 -10:00
Justin Kunimune
81541afef2 rename Azimuthal.POLAR to Azimuthal.EQUIDISTANT
bruh I can't beleve I thaut the name of this map projection was "polar".  I wonder where I read that.
2025-01-04 17:15:24 -10:00
Justin Kunimune
f9d7a91f16 fix more 2-point equidistant edge-cases
what a heinus map projection.
2025-01-03 10:37:36 -10:00
Justin Kunimune
782f15b018 fix that annoying line in 2-point equidistant
it became a little bit obvius what the problem was when I just lookd at it agen.  signum is not suitable for this purpose!
2025-01-03 10:21:01 -10:00
Justin Kunimune
08b2976f4d fix Danseiji projections
I feel so silly for not catching this before.  but in my defense I really don't want to do tests because I don't understand dependency management in java.
2025-01-03 09:51:21 -10:00
Justin Kunimune
6a775fbe30 bin triangles more finely for Liquid E.
this raised a roundoff issue I had to fix.
2024-11-23 17:22:24 -05:00
Justin Kunimune
9bc41b93c2 redeploy (again) 2024-11-03 14:30:29 -05:00
Justin Kunimune
e5b22ec0e3 fix projection booleans
I'm not sure how these got so messed up, but they should be fine now.
2024-11-03 14:03:05 -05:00
Justin Kunimune
c6994f177b use new mesh files for Liquid Earth
I knew I was forgetting something!
2024-11-03 09:40:14 -05:00
Justin Kunimune
06cf352dda redeploy for new minor version 2024-11-03 09:16:50 -05:00
Justin Kunimune
05ac321060 handle a wider range of Lagrange projection parameters
I allowed the user to set the longitude scale of the Lagrange projection as low as 0.01 and as high as 1.5.  in order for this to work at all I needed to make the shape calculation much more complex.  now it will calculate the actual envelope, which can become infinitely large, and crop that to a square that scales to keep Africa at ruffly the same scale.  this may now be one of my most complicated projection shape calculations, which I think is a little funny given that I only decided to generalize this projection on a whim, and it really doesn't seem all that complicated.
2024-11-03 08:40:03 -05:00
Justin Kunimune
a948a8e06c generalized Lagrange projection
dude, the math for this took me so long.  at the end of the day it's not that complicated, but boy is it tricky to figure out.  maybe my issue is that I don't use complex math. 🤷.  it works now for multiple longitudinal scales.
2024-11-02 17:43:17 -04:00
Justin Kunimune
43fce57533 make Lagrange projection extendable
actually this atan2 was really bizzare in the first place.  I must have seen the arctangent of a fraction in some book somewhere and just assumed it was supposed to be fully signed.
2024-11-02 17:31:53 -04:00
Justin Kunimune
cfa0455218 add creator's name to projection info
now when you select a map projection in the "More..." menu, you'll see the name of the person who first introduced it in addition to its geometry, special property, and description.  I did this because now that I no longer have an "Invented by Justin" category, I want to make it clearer which are invented by others and which are my own, just as a conflict of interest disclosure thing.
2024-10-29 21:04:32 -04:00
Justin Kunimune
bf6c58bd05 make "Extend map area" work with Liquid Earth 2024-10-28 20:38:51 -04:00
Justin Kunimune
aba9b054fc fix central meridian on Liquid Earth
this is the only reason for those artifacts.  once agen I am shocked how minor these bugs are.
2024-10-28 20:27:02 -04:00
Justin Kunimune
193e9d303c clean up triangle caching
this was much more correct than I was expecting.  apparently the reason each bin had 10× more triangles than it was supposed to was just that the way I expanded each triangle to account for curvature (using what I described as "pretty conservative estimates") was too conservative.  basicly each triangle on the antimeridian ended up being put in every single bin, just in case.  not good.  I cleaned up the binning and now it works perfectly!
2024-10-28 20:16:42 -04:00
Justin Kunimune
1f8f48d982 Liquid Earth projection
I implemented Robert Sargent's new Liquid Earth projection.  it works sort of, but there are some issues I still need to work out.  "Extend map area" is effectively always turned on, there are some bizzare artifacts that I don't think are right, and it's really slow because the caching is messed up.  but this is an excellent start.
2024-10-28 19:13:34 -04:00
Justin Kunimune
08d8774594 add screenshot of GUI to readme 2024-10-01 11:08:39 -04:00
Justin Kunimune
cb96d0b21c rebuild! 2024-09-14 12:56:55 -04:00
Justin Kunimune
2efaee9eff account for various advanced SVG <path> features
this adds support for the S and T Bezier shortcuts and commands with multiple sets of arguments, and also has better error handling for when the number of arguments is not what we expect.  I also refactord it a bit to be much cleaner in general, because wow was this poorly written.
2024-09-14 12:34:07 -04:00
Justin Kunimune
dd48177767 bruh have you never seen a Bezier curve before? 2024-09-14 10:14:47 -04:00
Justin Kunimune
7d9136b1bd I hate Adobe Illustrator
apparently in addition to dropping the delimiter before negative numbers, because you can infer from the hyphen that it's the start of a new number, they also drop it before numbers that start with a decimal point iff the previus number has a decimal point in it.  this is awful.  why did they do this.  it can't possibly have been worth it.  whatever, I account for it now.
2024-09-14 09:30:09 -04:00
Justin Kunimune
5143922038 rebuild 2024-06-29 07:59:54 -07:00
Justin Kunimune
8ca6a9aedf Merge branch 'master' of https://github.com/jkunimune/Map-Projections 2024-06-29 07:59:40 -07:00
Justin Kunimune
6b62a5ee0a fix Waterman projection bug
when I redefined the Waterman projection coordinates (I don't even remember when) to use four-times-larger units, I apparently missed *one* constant, and it was increasing the slope of this line between these two pieces of the Waterman face that was causing the projections at that interface to not line up.  goodness, what an asinine bug.  good on me for finding it in less than an our of its reporting, tho!
2024-06-29 07:39:47 -07:00
Justin Kunimune
f722048ab4
write that blurb 2024-05-02 07:32:57 -04:00
Justin Kunimune
b1dfeaec50
fix link in readme 2024-05-02 07:08:13 -04:00
Justin Kunimune
ce7ddeb028 build new version
new year, also!
2024-04-25 21:03:37 -04:00
Justin Kunimune
4c89fd8ffb enable extension of gores map
I can imagine this could be useful if you're making a globe and you want to minimize the visibility of the cuts.
2024-04-25 20:34:38 -04:00
Justin Kunimune
1f49c5b16f add option for number of gores
I had to adjust the projection code a little bit to account for odd numbers.
2024-04-25 20:32:38 -04:00
Justin Kunimune
9098c4d87d Miller is more common than Gall-stereographic 2024-02-10 08:49:10 -05:00
Justin Kunimune
71dd66bb2c fix issue with unicode in SVG
apparently map projections with unicode in their names create invalid SVG when using the executable (even tho it works fine when I run the source code...).  something about the encoding I gess?  I don't really understand, but it's better to escape the map projection names anyway just to be consistent with the templates that are already escaped.  I did that and now it seems fine.
2024-01-09 15:23:56 -05:00
Justin Kunimune
bd07cf8e11 improve SVG descriptions 2024-01-09 15:03:09 -05:00
Justin Kunimune
71e99191c9 I don't know when this changed 😭 2024-01-09 13:16:44 -05:00
Justin Kunimune
00c7fd9193 new blanker world map template
to complete the trifecta.  it has rivers, and no political borders.
2024-01-09 13:16:23 -05:00
Justin Kunimune
3d35c305b6 fix fed up file description 2024-01-09 13:15:10 -05:00
Justin Kunimune
b417e0ba18 fix weird coastlines
they were getting Zed by fuse_russia.
2024-01-08 22:02:03 -05:00
Justin Kunimune
990205bec6 thin lines between sub-country units
I ended up not really using the new political boundary data structure.  oh, well.
2024-01-08 21:42:44 -05:00
Justin Kunimune
793e5e8be6 refactor political map generation
I refactord the ploitical map generation.  I broke the plot_political_shapes function into two parts: the loading part (which generates a nested dictionary) and the plotting part.  this will enable me to process the data between those two steps.  I haven't gotten to that yet, but that's my next step in thinning the lines between geounits within countries.
2024-01-07 16:30:16 -05:00
Justin Kunimune
eb2834bc60 delete Population.svg
I still think this bubble plot is a good idea, but this is not the way I want to go about it and it's cluttering up the directory.  someday I'll rite a python script outside of github to modify Template provinces.svg with population bubbles.
2024-01-07 09:58:08 -05:00