Ticket #454 (assigned enhancement)

Opened 3 years ago

Last modified 17 months ago

ST_WrapX

Reported by: strk Owned by: strk
Priority: medium Milestone: PostGIS Future
Component: postgis Version: trunk
Keywords: Cc:

Description

Still looking for a good name, anyway the idea is to allow people to "split" a set of geometries in a table so that every component falling off a given X-value is X-shifted by a given amount. Tipical use is to make a wgs84 map visible as 0,360 rather than -180,180 or as whatever makes sense of a specific use (think pacific).

This was referred to as ST_ShiftLongitude on the mailing list  http://postgis.refractions.net/pipermail/postgis-devel/2010-February/008886.html

But the "Longitude" part is misleading as it may be useful in mercator too for example..

Attachments

longitudeWrap.sql Download (1.9 KB) - added by strk 3 years ago.
longitudeWrap version
ST_WrapX.sql Download (2.2 KB) - added by strk 3 years ago.

Change History

Changed 3 years ago by strk

longitudeWrap version

Changed 3 years ago by strk

  • owner changed from pramsey to strk
  • status changed from new to assigned
  • milestone set to PostGIS 2.0.0

Changed 3 years ago by strk

  • summary changed from ST_Wrap ? to ST_HWrap

I think ST_HWrap is a good name. Now we have a name, half work is done :)

Changed 3 years ago by strk

  • summary changed from ST_HWrap to ST_WrapX

HWrap I still didn't like as it assumes X is horizontal. So it's now called ST_WrapX. The attached version also makes use of the new ST_Split function and calls ST_Union as the last step.

Now it seems a pretty good and complete function to let down to C.

Changed 3 years ago by strk

Changed 17 months ago by strk

  • version changed from 1.5.X to trunk
  • milestone changed from PostGIS 2.0.0 to PostGIS Future
Note: See TracTickets for help on using tickets.