I am seeing an image clipping problem in Geoserver during re-projection of 
whole-world geotiffs from epsg:4326 to a custom pacific centered projection 
that I've tracked down to this method:



org.geotools.referencing.CRS.transform(CoordinateOperation, Envelope)



not returning the correctly re-projected envelope when called by 
org.geotools.coverage.processing.operation.Resampler2D.reproject() during 
GetMap processing.



The envelope is whole-world, so I would expect (-180,-90),(180,90) to be 
re-projected to approximately (-2E7,-1E7), (2E7,1E7) which is whole-world 
centered on 150 longitude.  But instead it is transformed to



[(-1.6697923618991036E7, -1.0074413916791257E7), (1.3330509022494508E7, 
1.0074413916791257E7)]



which is approximately 0 degrees longitude to -90 longitude (crossing the 
anti-meridian).  So the envelope is clipped on the left by about 30 degrees and 
on the right by about 60 degrees.  Is this a bug?  Can anyone shed some light 
on this behavior?



I am using geoserver 2.7.2/Geotools 13.2 but CRS.transform(CoordinateOperation, 
Envelope) looks identical on the master.  My custom projection is defined by 
the following WKT:



PROJCS["Pacific World Equidistant Cylindrical",\
  GEOGCS["WGS 84",\
    DATUM["World Geodetic System 1984",\
      SPHEROID["WGS 84",6378137,298.257223563,\
        AUTHORITY["EPSG","7030"]], \
      AUTHORITY["EPSG","6326"]],\
    PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],\
    UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9108"]],\
    AXIS["Geodetic longitude", EAST], \
    AXIS["Geodetic latitude", NORTH], \
    AUTHORITY["EPSG","4326"]], \
  PROJECTION["Equidistant_Cylindrical", AUTHORITY["EPSG","1028"]],\
  PARAMETER["central_meridian",150],\
  PARAMETER["latitude_of_origin",0],\
  PARAMETER["standard_parallel_1",0],\
  PARAMETER["false_easting",0],\
  PARAMETER["false_northing",0],\
  UNIT["m",1.0], \
  AXIS["Easting", EAST], \
  AXIS["Northing", NORTH],\
  AUTHORITY["EPSG","904326"]]

Thanks for any insight you can provide,

Tom Ruff




________________________________

This communication (including any attachments) may contain information that is 
proprietary, confidential or exempt from disclosure. If you are not the 
intended recipient, please note that further dissemination, distribution, use 
or copying of this communication is strictly prohibited. Anyone who received 
this message in error should notify the sender immediately by telephone or by 
return email and delete it from his or her computer.
------------------------------------------------------------------------------
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to