All,
I have a postGIS table of multipolygons, type geography, many of which cross the international date line. Some of these display fine. but many "take the long way around"--do not cross the IDL. Is there a way to correct this behavior?
One note: these data were originally digitized in Google Earth. I wrote a python hack to convert KML to sql to insert in table. All the features are comprised of outer ring polygons, no inner rings. So my data entry could be an issue, but it seems straightforward.
postGIS 2.1, Geoserver 2.5.3
Thanks,
Steve
--
Stephen Crawford
Center for Environmental Informatics
The Pennsylvania State University
I have a postGIS table of multipolygons, type geography, many of which
cross the international date line. Some of these display fine. but many
"take the long way around"--do not cross the IDL. Is there a way to
correct this behavior?
Can you give a list of points from polygon that is problematic versus one that isnt? Is longitude expressed in 0-360 or -180:180?
Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.
Hi, just noticed this response to my question. I have attached a file withe the coordinates for a polygon. If I enter it as a geometry via ST_GeomFromText it displays fine in Geoserver. If I enter it as geometry using ST_GeogFromText I get a message "NOTICE: Coordinate values were coerced into range [-180 -90, 180 90] for GEOGRAPHY", and then in Geoserver it is displayed "inside out" because it will not cross the dateline.
Thanks,
Steve
On 11/23/2014 3:28 PM, Phil Scadden wrote:
I have a postGIS table of multipolygons, type geography, many of which
cross the international date line. Some of these display fine. but many
"take the long way around"--do not cross the IDL. Is there a way to
correct this behavior?
Can you give a list of points from polygon that is problematic versus
one that isnt? Is longitude expressed in 0-360 or -180:180?
Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Stephen Crawford
Center for Environmental Informatics
The Pennsylvania State University
src176@anonymised.com
814.865.9905
geog_vs_geom.txt (27.9 KB)