Skip to main content
replaced http://gis.stackexchange.com/ with https://gis.stackexchange.com/
Source Link

This is related to determining the interior of a Polygondetermining the interior of a Polygon.

My difficulty is that if I specify a Polygon covering the Earth going from East to West, it will still have a boundary along the antemeridian, which would show up in azimuthal projections. For example, in GeoJSON:

{
  "type": "Polygon",
  "coordinates": [
    [[-180, -90], [-180, 90], [180, 90], [180, -90], [-180, -90]]
  ]
}

Is there a standard way to specify a whole-sphere Polygon, with no boundary?

I've thought about using an empty exterior ring:

{
  "type": "Polygon",
  "coordinates": [
    []
  ]
}

The logic being that I could specify further rings as holes to be punched into the whole-sphere Polygon.

Unfortunately, GeoJSON stipulates that LinearRings must have at least 4 points, so this would be straying from the specification. However, I'm still interested in understanding whether this approach is taken anywhere else.

This is related to determining the interior of a Polygon.

My difficulty is that if I specify a Polygon covering the Earth going from East to West, it will still have a boundary along the antemeridian, which would show up in azimuthal projections. For example, in GeoJSON:

{
  "type": "Polygon",
  "coordinates": [
    [[-180, -90], [-180, 90], [180, 90], [180, -90], [-180, -90]]
  ]
}

Is there a standard way to specify a whole-sphere Polygon, with no boundary?

I've thought about using an empty exterior ring:

{
  "type": "Polygon",
  "coordinates": [
    []
  ]
}

The logic being that I could specify further rings as holes to be punched into the whole-sphere Polygon.

Unfortunately, GeoJSON stipulates that LinearRings must have at least 4 points, so this would be straying from the specification. However, I'm still interested in understanding whether this approach is taken anywhere else.

This is related to determining the interior of a Polygon.

My difficulty is that if I specify a Polygon covering the Earth going from East to West, it will still have a boundary along the antemeridian, which would show up in azimuthal projections. For example, in GeoJSON:

{
  "type": "Polygon",
  "coordinates": [
    [[-180, -90], [-180, 90], [180, 90], [180, -90], [-180, -90]]
  ]
}

Is there a standard way to specify a whole-sphere Polygon, with no boundary?

I've thought about using an empty exterior ring:

{
  "type": "Polygon",
  "coordinates": [
    []
  ]
}

The logic being that I could specify further rings as holes to be punched into the whole-sphere Polygon.

Unfortunately, GeoJSON stipulates that LinearRings must have at least 4 points, so this would be straying from the specification. However, I'm still interested in understanding whether this approach is taken anywhere else.

Tweeted twitter.com/#!/StackGIS/status/274453195810537472
Source Link

How do I represent the whole Earth as a Polygon?

This is related to determining the interior of a Polygon.

My difficulty is that if I specify a Polygon covering the Earth going from East to West, it will still have a boundary along the antemeridian, which would show up in azimuthal projections. For example, in GeoJSON:

{
  "type": "Polygon",
  "coordinates": [
    [[-180, -90], [-180, 90], [180, 90], [180, -90], [-180, -90]]
  ]
}

Is there a standard way to specify a whole-sphere Polygon, with no boundary?

I've thought about using an empty exterior ring:

{
  "type": "Polygon",
  "coordinates": [
    []
  ]
}

The logic being that I could specify further rings as holes to be punched into the whole-sphere Polygon.

Unfortunately, GeoJSON stipulates that LinearRings must have at least 4 points, so this would be straying from the specification. However, I'm still interested in understanding whether this approach is taken anywhere else.