org.geotools.geometry.GeneralEnvelope.intersects() returns TRUE for below
envelopes:
requestedEnvelope=GeneralEnveloope
--> crs=DefaultGeographicCRS
--> ordinates=[-128.075, 21.92500000000004, -108.875, 43.075]
nativeEnvelope=GeneralEnvelope
--> crs=DefaultEngineeringCRS
--> ordinates=[-128.075, 21.92500000000004, -108.875, 43.075]
However, org.geotools.geometry.GeneralEnvelope.intersects() returns FALSE
for below envelopes.
requestedEnvelope=GeneralEnveloope
--> crs=DefaultGeographicCRS
--> ordinates=[231.925, 21.92500000000004, 251.925, 43.075]
nativeEnvelope=GeneralEnvelope
--> crs=DefaultEngineeringCRS
--> ordinates=[-128.075, 21.92500000000004, -108.875, 43.075]
The first envelope was created from WPS post request with below envelope
information:
<ns1:Envelope srsName="EPSG:4326">
<gml:pos xmlns:gml="
http://www.opengis.net/gml">-128.075 21.925</gml:pos>
<gml:pos xmlns:gml="
http://www.opengis.net/gml">-108.875 43.075</gml:pos>
</ns1:Envelope>
The second envelope was created from WPS post request with below envelope
information:
<ns1:Envelope srsName="EPSG:4326">
<gml:pos xmlns:gml="
http://www.opengis.net/gml">231.925 21.925</gml:pos>
<gml:pos xmlns:gml="
http://www.opengis.net/gml">251.925 43.075</gml:pos>
</ns1:Envelope>
*For both cases, the requestedEnvelope references the same area. The only
difference is that one is in [-180:180] format and the other is in [0:360]
format for longitudes.*
Is this known issue? Or is the requestedEnvelope in second case
incorrectly created and should be using some other CRS?
--
Joseph Shin
We are what we repeatedly do. Excellence then is not an act but a habit.
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users