Skip to main content
English usage
Source Link
Vince
  • 20.5k
  • 16
  • 49
  • 65

I have some data for country borders. I am making a small program that need to load a border on demand when a position in the program gets close to a country (which consists of multiple loops of GPS points).

It does not have to be super accurate, but on the other hand, loading a long country like italyItaly should not be as simple as a single GPS with a distance check. But maybe 4 points would be ok.

I need to keep a small database I reckon of each country with some precomputed params that determine when to load it, so its not cpuCPU intensive. How do I automate generation of such params, I am a bit out of ideas..

I have some data for country borders. I am making a small program that need to load a border on demand when a position in the program gets close to a country (which consists of multiple loops of GPS points).

It does not have to be super accurate, but on the other hand, loading a long country like italy should not be as simple as a single GPS with a distance check. But maybe 4 points would be ok.

I need to keep a small database I reckon of each country with some precomputed params that determine when to load it, so its not cpu intensive. How do I automate generation of such params, I am a bit out of ideas..

I have some data for country borders. I am making a small program that need to load a border on demand when a position in the program gets close to a country (which consists of multiple loops of GPS points).

It does not have to be super accurate, but on the other hand, loading a long country like Italy should not be as simple as a single GPS with a distance check. But maybe 4 points would be ok.

I need to keep a small database I reckon of each country with some precomputed params that determine when to load it, so its not CPU intensive. How do I automate generation of such params, I am a bit out of ideas..

Source Link

Detect in a program if a point is close to a country outline

I have some data for country borders. I am making a small program that need to load a border on demand when a position in the program gets close to a country (which consists of multiple loops of GPS points).

It does not have to be super accurate, but on the other hand, loading a long country like italy should not be as simple as a single GPS with a distance check. But maybe 4 points would be ok.

I need to keep a small database I reckon of each country with some precomputed params that determine when to load it, so its not cpu intensive. How do I automate generation of such params, I am a bit out of ideas..