convert a lat/lon to x , y based on the mercator projection concode_field_sep PlaceHolder placeHolder concode_field_sep double sec concode_elem_sep double mercatorToLat concode_elem_sep int lat2tiley concode_elem_sep int numTiles concode_elem_sep Coordinate tile2latlon concode_elem_sep int lon2tilex concode_elem_sep Coordinate lonEdges concode_elem_sep Coordinate latlon2xy concode_elem_sep BoundingBox tileEdges concode_elem_sep Coordinate latlon2relativeXY concode_elem_sep Coordinate latEdges
Coordinate function ( double arg0 , double arg1 , int arg2 , int arg3 ) { int loc0 = numTiles ( arg2 ) * arg3 ; double loc1 = toRadians ( arg0 ) ; return new Coordinate ( loc0 * ( arg1 + 180.0 ) / 360.0 , loc0 * ( 1.0 - log ( tan ( loc1 ) + sec ( loc1 ) ) / PI ) / 2.0 ) ; }