News for hackers. Stuff that matters.
Re:Every map of China is wrong by throwaway4good on Friday May 03, 2024 @02:22AM (#40244714)
Here is an open source implementation that converts from WGS84 to GJC2:

https://github.com/googollee/eviltransform/blob/master/java/...

https://github.com/googollee/eviltransform/blob/master/java/...

And converting the other way by a kind of binary search, I guess using a flaw in the obfuscation:

https://github.com/googollee/eviltransform/blob/master/java/...

All seems very silly by today standards and I would think it hardly made sense back in 2002 when this was apparently devised.

Re:Every map of China is wrong by jillesvangurp on Friday May 03, 2024 @02:35AM (#40244809)
As a means to keep detailed maps out of the hands of an enemy it's indeed not great. As it's all rather obvious to reverse engineer this and people have indeed done so.

But as a means to force foreign companies to use Chinese data suppliers this works perfectly. Because using this software would be illegal in China and anyone looking to business there legally would end up having to use Chinese data centers, Chinese data suppliers, Chinese infrastructure, etc.

Re:Every map of China is wrong by throwaway4good on Friday May 03, 2024 @02:40AM (#40244842)
Some elaborate technical trade barrier? I think that is giving them too much credit.

This is thinking from a military apparatus stuck in the 1950es.

Re:Every map of China is wrong by masklinn on Friday May 03, 2024 @03:40AM (#40245198)
> Some elaborate technical trade barrier? I think that is giving them too much credit.

One-way knowledge flows is an ubiquitous and consistent facet of china's commercial policies.

Re:Every map of China is wrong by red_trumpet on Friday May 03, 2024 @03:30AM (#40245144)
Maybe not planned as a barrier, but effectively being one now? So this could be a reason why not to revert it.
Re:Every map of China is wrong by throwaway4good on Friday May 03, 2024 @05:15AM (#40245693)
Once you make something a standard it is hard to get rid of it even if there is an obvious better approach.

Mapping is explicitly regulated so no need for an indirect barrier.

AFAIK it is the same other places. If a Chinese company wanted to do an extensive commercial map of the US it would face all sorts of regulative hurdles.

Re:Every map of China is wrong by nikisweeting on Friday May 03, 2024 @04:57AM (#40245585)
> Promote the development of surveying and mapping in the service of national economic construction.

It was very transparently an economic and technical development policy from the start, it was never intended as a military policy to hinder enemy mapping ability.

They do similar information control across many other industries besides maps. The CCP is very good at gatekeeping access to foreign/uncensored information through a few state-owned enterprises, then metering it out as they see fit for economic progress.

Re:Every map of China is wrong by barrkel on Friday May 03, 2024 @08:25AM (#40246883)
China has been for some time a mercantile state that believed trade surplus and subsidising local production would create geopolitical strategic outcomes in its favour.

It's a bit less like that now as Xi drifts into a more personal dictatorship.

Re:Every map of China is wrong by dahart on Friday May 03, 2024 @09:30AM (#40247466)
No need to speculate. The reasons for it were stated explicitly, as the article mentions. They are, briefly, to “promote mapping” for “national economic construction”, “national defense”, and “social development”.
Re:Every map of China is wrong by Workaccount2 on Friday May 03, 2024 @10:12AM (#40247886)
To be fair, they say that about literally every initiative they undertake.
Re:Every map of China is wrong by tivert on Friday May 03, 2024 @05:05PM (#40252391)
> Some elaborate technical trade barrier? I think that is giving them too much credit.

> This is thinking from a military apparatus stuck in the 1950es.

Even if it started like that, I wouldn't be surprised if they now appreciate the unintended consequence of it serving as a "elaborate technical trade barrier."

Re:Every map of China is wrong by pookha on Friday May 03, 2024 @09:27AM (#40247428)
Pretty nuts. The entire chinese population lives in a state of perpetual formation and "harmony" with the crony capitalist thugs that operate from behind the curtain. And this is just another case of crony capitalist bullshit. It's not at all about "protecting maps from the enemy". It's about controlling and delving out access to a good-ole boy network (party members and their cronies)...The US and Europe are heading down the same paths but they'll never get to the level of maniac cult-like manipulation that China has achieved over a billion people.
Re:Every map of China is wrong by rrrrrrrrrrrryan on Friday May 03, 2024 @06:51PM (#40253225)
I mean those cronies kinda made it rain money over that billion people. They transitioned the nation from an agrarian society to a major geopolitical economic player, and they've averaged double-digit annual GDP growth for over 3 decades, which is unprecedented in all of human history.

The real question is what happens when they inevitably have a major economic downturn. Will the cronies lose power? Will they cling to power using violence against the opposition? Will they start a war to distract and rally their population?

Re:Every map of China is wrong by fennecbutt on Friday May 03, 2024 @08:46PM (#40253880)
Lmao no. Only a small fraction ever see that wealth, the same fraction who are selling the cheap labour of the factory worker underclass: https://www.marketplace.org/2023/04/17/why-more-workers-in-c...

No money raining down on the poor workers who gotta buy their own safety equipment or just deal without having any. Your job is to drip your hands in mercury every day don't like it then there are a thousand waiting to step in to replace you.

Re:Every map of China is wrong by throw3737284 on Friday May 03, 2024 @10:23PM (#40254307)
Lmao no. It's a large majority that have seen the wealth.

Why do you think companies are leaving China? It's because the workers are now demanding more money because everyone is richer.

Re:Every map of China is wrong by igammarays on Friday May 03, 2024 @02:31AM (#40244773)
Maybe GJC2 can be modified on the fly, by changing offset parameters? So in a hypothetical war situation, only providers obtaining data in realtime from "authorized" sources would have access to accurate targeting information.
Re:Every map of China is wrong by throwaway4good on Friday May 03, 2024 @02:38AM (#40244836)
Not unless you want to change all the map data.
Re:Every map of China is wrong by TechnicalVault on Friday May 03, 2024 @04:59AM (#40245590)
Nah, because the thing is the Russian and US militaries will have their own maps of China anyway. There's a reason the UK's mapping agency retains the historic name of the Ordinance Survey, maps has always been a military thing and they've always retained surveyors.
Re:Every map of China is wrong by jhbadger on Friday May 03, 2024 @10:07AM (#40247828)
This reminds me of a fascinating book titled "The Red Atlas" by John Davies and Alexander Kent which is about the very detailed maps of Western cities the Soviet Union created during the Cold War.