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 <[email protected]>

> On Fri, Jul 8, 2011 at 5:20 PM, Oleksandr Huziy <[email protected]>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
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to