From: Oleksandr H. <guz...@gm...> - 2011-07-13 03:16:54
|
Hi, thank you Andrea and Larry for the suggestions. I decided to go with shifting since when I split into multipolygon I get a small gap between the subpolygons, but in my case this is crucial, since later I check whether a point belongs to the polygon. thank you -- Oleksandr 2011/7/8 Andrea Aime <and...@ge...> > On Fri, Jul 8, 2011 at 5:20 PM, Oleksandr Huziy <guz...@gm...>wrote: > >> Hello, >> >> I am again returning to my problem of polygons. >> >> Is it possible to define a polygon in geotools that looks like this >> >> 0-................(-179,20) __________ (179,20) ................ +0 >> | | >> | | >> |_________| >> 0-................(-179,10) (179,10) >> ................+0 >> W <- -> E >> >> in a way that 0 lies outside the rectangle. I tried to use 2 separate >> polygons, >> but there are some cases when it does not work. >> >> What I am looking for, maybe the directed polygon or geometry. >> >> thanks in advance for any suggestions. >> > > The common solution to this problem is to go beyond the valid > range of geographic data, 179 -> 181 > > Cheers > Andrea > > -- > ------------------------------------------------------- > Ing. Andrea Aime > GeoSolutions S.A.S. > Tech lead > > Via Poggio alle Viti 1187 > 55054 Massarosa (LU) > Italy > > phone: +39 0584 962313 > fax: +39 0584 962313 > > http://www.geo-solutions.it > http://geo-solutions.blogspot.com/ > http://www.youtube.com/user/GeoSolutionsIT > http://www.linkedin.com/in/andreaaime > http://twitter.com/geowolf > > ------------------------------------------------------- > |