A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [antimeridian]

The antimeridian, or 180th meridian, is the meridian which is 180° east or west of the Prime Meridian with which it forms a great circle. It is distinctive among meridians in that it is common to both east longitude and west longitude.

Filter by
Sorted by
Tagged with
2
votes
1answer
30 views

Changing projection from 0 360 to -180 180 for a simple raster

I'm trying to convert a raster with projections of (0, 360) to (-180, 180), and I've tried various SO solutions such as this, but it gave me a cropped output that doesn't have the western hemisphere. ...
4
votes
1answer
100 views

GDAL VectorTranslate creates shards/fragments along anti-meridian

I have challenge to take a GeoJSON file and convert the CRS to WGS84/EPSG:4326 and also split the polygons along the anti-meridian. These are both in preparation for presenting the data via mapbox....
2
votes
1answer
67 views

Making XY To Line not give shortest distance in ArcMap

I am creating a very simple map through XY to Line in AcrGIS. However, since the destination is New Zealand and located at the bottom corner of global maps it creates the following. Is there a way ...
0
votes
0answers
56 views

Features crosses 180 meridian rendered wrong in mbtiles

I think it is the common issue - rendering vector map crosses 180 meridian. But still no success - I didn't come to any correct solution. The problem is, I have vector layer (exactly, linestring ...
1
vote
3answers
161 views

Removing 180th meridian line on map of Russia?

I'm not sure how to remove the line that represents the 180th meridian (international dateline) on my polygon. I have the "Russia Country Boundary 2017" feature layer added from the Living Atlas. My ...
2
votes
0answers
42 views

Removing a 'non-gap' gap from a polygon that straddles +/- 180 longitude; looking for an R-based, code solution

I am working with a set of polygons from here: http://lme.edc.uri.edu/index.php/digital-data. In the artic, there are several polygons that straddle the +/- 180 longitude line. These are single ...
2
votes
1answer
81 views

GDALWARP cuts off right edge of image?

I'm reprojecting GFS GRIB files to EPSG:3857 using gdalwarp. Resulting file get little bit shorter to the right so when I zoom in from zoom level 5 and higher, I can see vertical line with missing ...
0
votes
2answers
357 views

Get a bounding box of a geometry that crosses the antimeridian using OGR

I'm trying to get a bounding box of the geometry that crosses the antimeridian using OGR: from osgeo import ogr geom = ogr.CreateGeometryFromJson('{"type":"MultiPolygon","coordinates":[[[[-180.0,-40....
1
vote
0answers
244 views

How to generate a Global Voronoi diagram?

Using arcMap, QGIS and similar software it is easy to create a non-global Voronoi diagram. The resulting shapefile polygons however are showing weird behavior when crossing the -180 meridian or the ...
2
votes
1answer
99 views

Reproject with shifted central meridian - dateline gap in ArcGIS

I have reprojected a file of global ocean zoning to Winkel III shifting the central meridian to -180 to center it on the Pacific using ArcGIS 10.5. Doing so, a gap at the dateline appears: In a ...
2
votes
1answer
87 views

Removing lines from a polygon that has been reprojected to cross the antimeridian

I have a polygon file in qgis3.0 representing global tectonic plates. I have reprojected the original file in WGS84 (EPSG:4326) to PDC Mercator (EPSG:3832) using only the features that are needed. ...
2
votes
1answer
256 views

data reprojection and the antimeridian

I am trying to produce an earthquake map of the south-west pacific ocean area around New Zealand and its surrounding islands. In order to produce a map which crosses the antimeridian, I took two ...
2
votes
1answer
349 views

Line through polygons spanning 180-degree line

In ArcMap 10.2, I am trying to render a shapefile with polygons in the Pacific Ocean, which span the 180-degree line. The resulting image shows a line going through the polygons at the meridian, and I ...
2
votes
0answers
109 views

Hibernate spatial intersects() over antimeridian

I have a DB full of objects that contain a location (usually a polygon). I have a query defined that uses Hibernate Spatial's intersects() method to find all the objects that are with a box that's ...
1
vote
0answers
245 views

How to display the geojson polygon after 180th meridian in leaflet?

Like the vector grid plugin in the leaflet: http://leaflet.github.io/Leaflet.VectorGrid/demo-geojson.html see the above example at zoom level 1 or 2 Is there any way to display geojson, not as a tile ...
4
votes
1answer
583 views

Determine whether a polygon crosses the antimeridian

I'm working on a system that uses bounding boxes as a fast first check for a point-in-polygon filter. My current naive implementation (just taking the min/max lat and lng for all points) fails on ...
3
votes
2answers
410 views

Does exist a Python library to generate polygons avoiding antimeridian issues?

If I need to generate a polygon that crosses the anti-meridian, does it exists a Python library that treat such cases (partitioning such polygon and generate a multipart polygon)?
5
votes
1answer
344 views

Is there an inverse operation to ST_Shift_Longitude in PostGIS < 2.3?

ST_Shift_Longitude(geom) (renamed to ST_Shift_Longitude in PostGIS 2.2) adds 360 to longitudes below 0, thereby (for lon-lat coordinates like WGS84) moving the part of the world "left" (west) of the 0-...
1
vote
1answer
389 views

Is it possible to wrap date line with gdal.VectorTranslate()?

I use '-wrapdateline' option in ogr2ogr to split the polygons at the anti meridian. But in ogr2ogr Python port bWrapDateline is hardcoded to False. Is there a way to pass 'wrapdateline' option to ...
5
votes
1answer
366 views

Transforming a shapefile from EPSG:3338 to EPSG:4326?

I'm trying to transform this shapefile from EPSG:3338 (Alaska Albers) to EPSG:4326. When I display the file in EPSG:3338 in QGIS it looks as you'd expect: But when I display it in EPSG:4326 I see ...
1
vote
0answers
256 views

Define polygon across the 180 meridian in DotSpatial

I am new to DotSpatial and I try to define a polygon that crosses the 180 meridian by following: FeatureSet fs = new FeatureSet(FeatureType.Polygon); Coordinate[] coord = new ...
4
votes
1answer
103 views

Un-splitting data that crosses antimeridian in ArcMap?

I'm working with a set of points in ArcMap that crosses the antimeridian (180°). I need to convert the points to a line but doing so creates a line that doubles back and forth across the globe to ...
4
votes
0answers
1k views

Shapely polygons crossing the antimeridian

Sample data Consider the following WKT Polygon, crossing the international dateline (antimeridian): POLYGON((176 49,-65 49,-65 11,176 11,176 49)) And the following points: POINT(-140 32) # ...
4
votes
1answer
208 views

Use map projections to find closest point over dateline

I want to identify closest points to a polygon over the dateline in an OGR/Python script. I found this workaround for PostGIS but I'm not 100% certain about the applicability in my case. This may be ...
0
votes
2answers
170 views

How to use postgis to reproject 900913 to a different bounding box

The OSM data is in 900913. I need to get 4326, but so that the longitude's range is NOT -180..180, but rather some other, shifted range, based on a parameter. This way, if I need to draw an object ...
2
votes
0answers
157 views

GeoJSON<->TopoJSON roundtrip breaks leaflet on antimeridean

For Wikipedia, I'm writing a service that extracts polygons of a country by a given ID, simplifies them, and produces GeoJSON. The PostGIS query produces this GeoJSON: {"type":"MultiPolygon","...
6
votes
1answer
2k views

xarray slicing across the antimeridian

I'm just starting with using xarray for working with n-dimensional NetCDF datasets. I particularly like the techniques for slicing using both indexes and labels (isel and sel): import xarray as xr ds ...
2
votes
0answers
134 views

Unwanted display of 180 meridian in map [duplicate]

When I use the WGS 84 CRS the Chukotka peninsula east of the 180 meridian is shown on the left of the map. If I project (on-the-fly) the map using a Lambert Azimuth projection, the Chukotka peninsula ...
24
votes
2answers
1k views

Best-practices for databases and APIs with geographic data spanning the antimeridian

What is the best-practice for storing geographic features (lines, polygons and their multipart equivalents) when these features span the antimeridian (±180° longitude), and need to be sent to and ...
3
votes
1answer
672 views

How can I convert PostGIS geography to geometry and split polygons that cross the antimeridian

I have a PostGIS 2.2 table that stores polygons as geography type. The table contains several polygons that cross the antimeridian. I would like to split these polygons at the antimeridian and ...
9
votes
2answers
2k views

Polygons across international dateline [-180..+180 longitude]

I'm trying to generate polygons for satellite orbital swaths. So far I have a method to generate two lines which represent the edge of each swath in [lat,long]. Some of the swath's cross the ...
2
votes
0answers
105 views

how to use st_intersection() with re-projection in POSTGIS?

This is a shipping route from 'Portland to Busan' and I want to check the route against land_polygons like how much distance is traveled by a route through land. And the problem is while checking the ...
1
vote
1answer
169 views

MapProxy and the antimeridian

I am using MapProxy to use my company's tiled map service (TMS) as a web map service (WMS) for consumption by desktop GIS clients. One of the great advantages is being able to add additional ...
5
votes
2answers
1k views

Mapping Russia - Int'l dateline splitting polygon

I am having the issue where the International Dateline is splitting a polygon I am working with. I have a layer of the "Federal Districts" of Russia, and the eastern most federal district is being "...
6
votes
0answers
2k views

How to prevent cross-world lines in ggplot world map?

I'm having issues displaying 'great circles' paths and polygons in ggmap, an extension of ggplot2. Please enter the following code to replicate my issues: https://gist.github.com/Robinlovelace/...
2
votes
2answers
2k views

Using ST_MakeEnvelope over the antimeridian

I'm using ST_MakeEnvelope in PostGIS to try and make geometries that cross the international dateline (antimeridian), but they are making a shape that wraps the other way around the globe. The ...
9
votes
4answers
4k views

Splitting Linestrings on dateline with OpenLayers

A couple of years ago I posted The International Date Line wrap around and @jdeolive suggested I split the features at the dateLine. So I tried. When I try to split my satellite track with splitWith ...
11
votes
4answers
1k views

How to stop gdalwarp creating world-spanning outputs near the dateline?

I'm using gdalwarp to manipulate SRTM tiles near the the dateline (i.e. 180°, aka the antimeridian). SRTM tiles have a very slight (1/2 pixel) overlap with the meridian. You can see this using ...
2
votes
1answer
569 views

Valid ranges for bounding box in WMS 1.1.1

I'm connecting to a WMS server and found that the longitudes LatLonBoundingBox specified for some of the values are slightly outside of the +/-180 range (such as 180.05). Are these values considered ...
11
votes
1answer
3k views

How to compute the bounding box of multiple layers in lat/long?

I am writing an application to performance test all kinds of map services, primarily AGS 9.x, AGS 10, and WMS 1.x. Part of the application involves generating random bounding boxes for individual ...
5
votes
1answer
2k views

Postgis: Is there a way to do an intersection query based on lines while taking into account the dateline?

This is an exact copy of a question I asked on Stackoverflow a few weeks back and still haven't found a good answer for it. The original question is from here: original question. I've been searching ...
13
votes
9answers
8k views

The International Date Line wrap around

Using OpenLayers, I added a WFS layer (on GeoServer) with a filter that returns all features (black) that intersect my polygon (yellow) placed over some Latin American countries within certain dates. ...